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::point_traits< Point > Struct Template Reference

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

Public Types

typedef Point point_type
 point type
 
typedef int coordinate_type
 coordinate type
 

Static Public Member Functions

static coordinate_type get (const point_type &point, orientation_2d orient)
 access coordinates More...
 
static void set (point_type &point, orientation_2d orient, coordinate_type value)
 set coordinates More...
 
static point_type construct (coordinate_type x, coordinate_type y)
 construct a point object More...
 

Detailed Description

template<>
struct limbo::geometry::point_traits< Point >

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

The specialization should be in the same scope as the original template struct

Definition at line 60 of file test_p2r.cpp.

Member Function Documentation

static point_type limbo::geometry::point_traits< Point >::construct ( coordinate_type  x,
coordinate_type  y 
)
inlinestatic

construct a point object

Parameters
xx coordinate
yy coordinate
Returns
the point object

Definition at line 97 of file test_p2r.cpp.

static coordinate_type limbo::geometry::point_traits< Point >::get ( const point_type point,
orientation_2d  orient 
)
inlinestatic

access coordinates

Parameters
pointa data point
orientorientation can be HORIZONTAL(x) or VERTICAL(y)
Returns
x or y coordinate

Definition at line 73 of file test_p2r.cpp.

static void limbo::geometry::point_traits< Point >::set ( point_type point,
orientation_2d  orient,
coordinate_type  value 
)
inlinestatic

set coordinates

Parameters
pointa data point
orientorientation can be HORIZONTAL(x) or VERTICAL(y)
valuedata value

Definition at line 85 of file test_p2r.cpp.


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