Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::polygon::axis_transformation Class Reference

#include <transform.hpp>

Public Types

enum  ATR {
  NULL_TRANSFORM = 0,
  BEGIN_TRANSFORM = 0,
  EN = 0,
  EAST_NORTH = 0,
  WN = 1,
  WEST_NORTH = 1,
  FLIP_X = 1,
  ES = 2,
  EAST_SOUTH = 2,
  FLIP_Y = 2,
  WS = 3,
  WEST_SOUTH = 3,
  FLIP_XY = 3,
  NE = 4,
  NORTH_EAST = 4,
  SWAP_XY = 4,
  SE = 5,
  SOUTH_EAST = 5,
  ROTATE_LEFT = 5,
  NW = 6,
  NORTH_WEST = 6,
  ROTATE_RIGHT = 6,
  SW = 7,
  SOUTH_WEST = 7,
  FLIP_SWAP_XY = 7,
  END_TRANSFORM = 7
}
 
enum  INDIVIDUAL_AXIS {
  PX = 0,
  NX = 1,
  PY = 2,
  NY = 3
}
 

Public Member Functions

 axis_transformation ()
 
 axis_transformation (ATR atr)
 
 axis_transformation (const axis_transformation &atr)
 
 axis_transformation (const orientation_2d &orient)
 
 axis_transformation (const direction_2d &dir)
 
axis_transformationoperator= (const axis_transformation &a)
 
axis_transformationoperator= (const ATR &atr)
 
bool operator== (const axis_transformation &a) const
 
bool operator!= (const axis_transformation &a) const
 
bool operator< (const axis_transformation &a) const
 
axis_transformationoperator+= (const axis_transformation &a)
 
axis_transformation operator+ (const axis_transformation &a) const
 
void populate_axis_array (INDIVIDUAL_AXIS axis_array[]) const
 
void get_directions (direction_2d &horizontal_dir, direction_2d &vertical_dir) const
 
void write_back_axis_array (const INDIVIDUAL_AXIS this_array[])
 
axis_transformationset_directions (const direction_2d &horizontal_dir, const direction_2d &vertical_dir)
 
template<typename coordinate_type >
void transform (coordinate_type &x, coordinate_type &y) const
 
axis_transformationinvert ()
 
axis_transformation inverse () const
 

Static Public Member Functions

static void combine_axis_arrays (INDIVIDUAL_AXIS this_array[], const INDIVIDUAL_AXIS that_array[])
 

Member Enumeration Documentation

Enumerator
NULL_TRANSFORM 
BEGIN_TRANSFORM 
EN 
EAST_NORTH 
WN 
WEST_NORTH 
FLIP_X 
ES 
EAST_SOUTH 
FLIP_Y 
WS 
WEST_SOUTH 
FLIP_XY 
NE 
NORTH_EAST 
SWAP_XY 
SE 
SOUTH_EAST 
ROTATE_LEFT 
NW 
NORTH_WEST 
ROTATE_RIGHT 
SW 
SOUTH_WEST 
FLIP_SWAP_XY 
END_TRANSFORM 
Enumerator
PX 
NX 
PY 
NY 

Constructor & Destructor Documentation

boost::polygon::axis_transformation::axis_transformation ( )
inline
boost::polygon::axis_transformation::axis_transformation ( ATR  atr)
inlineexplicit
boost::polygon::axis_transformation::axis_transformation ( const axis_transformation atr)
inline
boost::polygon::axis_transformation::axis_transformation ( const orientation_2d orient)
inlineexplicit
boost::polygon::axis_transformation::axis_transformation ( const direction_2d dir)
inlineexplicit

Member Function Documentation

static void boost::polygon::axis_transformation::combine_axis_arrays ( INDIVIDUAL_AXIS  this_array[],
const INDIVIDUAL_AXIS  that_array[] 
)
inlinestatic
void boost::polygon::axis_transformation::get_directions ( direction_2d horizontal_dir,
direction_2d vertical_dir 
) const
inline
axis_transformation boost::polygon::axis_transformation::inverse ( ) const
inline
axis_transformation& boost::polygon::axis_transformation::invert ( )
inline

References boost::polygon::predicated_swap().

Referenced by inverse().

bool boost::polygon::axis_transformation::operator!= ( const axis_transformation a) const
inline

References boost::a.

axis_transformation boost::polygon::axis_transformation::operator+ ( const axis_transformation a) const
inline

References boost::a.

axis_transformation& boost::polygon::axis_transformation::operator+= ( const axis_transformation a)
inline
bool boost::polygon::axis_transformation::operator< ( const axis_transformation a) const
inline
axis_transformation& boost::polygon::axis_transformation::operator= ( const axis_transformation a)
inline
axis_transformation& boost::polygon::axis_transformation::operator= ( const ATR atr)
inline
bool boost::polygon::axis_transformation::operator== ( const axis_transformation a) const
inline
void boost::polygon::axis_transformation::populate_axis_array ( INDIVIDUAL_AXIS  axis_array[]) const
inline
axis_transformation& boost::polygon::axis_transformation::set_directions ( const direction_2d horizontal_dir,
const direction_2d vertical_dir 
)
inline
template<typename coordinate_type >
void boost::polygon::axis_transformation::transform ( coordinate_type &  x,
coordinate_type &  y 
) const
inline
void boost::polygon::axis_transformation::write_back_axis_array ( const INDIVIDUAL_AXIS  this_array[])
inline

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