Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | List of all members
limbo::geometry::rectangle_traits< Rectangle > Struct Template Reference

if your rectangle class setting is different from that in the default point_traits, please create a specialization More...

Public Types

typedef Rectangle rectangle_type
 rectangle type
 
typedef int coordinate_type
 coordinate type
 

Static Public Member Functions

static coordinate_type get (const rectangle_type &rect, direction_2d dir)
 access coordinates More...
 
static void set (rectangle_type &rect, direction_2d dir, coordinate_type value)
 set coordinates More...
 
static rectangle_type construct (coordinate_type xl, coordinate_type yl, coordinate_type xh, coordinate_type yh)
 construct rectangle More...
 

Detailed Description

template<>
struct limbo::geometry::rectangle_traits< Rectangle >

if your rectangle class setting is different from that in the default point_traits, please create a specialization

Definition at line 172 of file test_p2r.cpp.

Member Function Documentation

construct rectangle

Parameters
xl,yl,xh,yhcoordinates of rectangle
Returns
a rectangle object

Definition at line 218 of file test_p2r.cpp.

static coordinate_type limbo::geometry::rectangle_traits< Rectangle >::get ( const rectangle_type rect,
direction_2d  dir 
)
inlinestatic

access coordinates

Parameters
recta rectangle object
dircan be LEFT (xl), BOTTOM (yl), RIGHT (xh) or TOP (yh)
Returns
coordinate

Definition at line 185 of file test_p2r.cpp.

static void limbo::geometry::rectangle_traits< Rectangle >::set ( rectangle_type rect,
direction_2d  dir,
coordinate_type  value 
)
inlinestatic

set coordinates

Parameters
recta rectangle object
dircan be LEFT (xl), BOTTOM (yl), RIGHT (xh) or TOP (yh)
valuecoordinate value

Definition at line 202 of file test_p2r.cpp.


The documentation for this struct was generated from the following file: