|
PLaSK library
|
Base class for one direction aligners (in 2D and 3D spaces). More...
#include <plask/geometry/align.hpp>
Public Types | |
| enum | { direction2D = DirectionTo2D<_direction>::value } |
Public Member Functions | |
| Aligner () | |
| Aligner (AlignerImpl< _direction > *impl) | |
| void | align (Translation< 2 > &toAlign, const Box2D &childBoundingBox) const |
| Set object coordinate in direction of aligner activity. | |
| void | align (Translation< 2 > &toAlign) const |
| Set object translation in direction of aligner activity. | |
Public Member Functions inherited from plask::align::AlignerBase< _direction > | |
| AlignerBase () | |
| AlignerBase (AlignerImpl< _direction > *impl) | |
| double | getCoordinate () const |
| Get coordinate to which this aligner align. | |
| double | getAlign (double low, double hi) const |
| Get translation for aligned object. | |
| bool | useBounds () const |
| Check if this aligner getAlign use bounds (low and hi parameters) in calculation. | |
| double | align (Translation< 3 > &toAlign, const Box3D &childBoundingBox) const |
| Set object coordinate in direction of aligner activity. | |
| virtual double | align (Translation< 3 > &toAlign) const |
| Set object translation in direction of aligner activity. | |
| virtual std::string | key (const AxisNames &axis_names) const |
| Get aligner name. | |
| std::map< std::string, double > | asDict (const AxisNames &axis_names) const |
| Get aligner as dictionary. | |
| void | writeToXML (XMLElement &dest, const AxisNames &axis_names) const |
| Write this aligner to XML. | |
| std::string | str () const |
| Get string representation of this using print method. | |
Public Member Functions inherited from plask::HolderRef< AlignerImpl< _direction > > | |
| HolderRef () | |
| HolderRef (AlignerImpl< _direction > *held) | |
Construct a holder with given held object. | |
| bool | isNotNull () const |
| bool | isNull () const |
| void | reset (AlignerImpl< _direction > *new_held) |
Static Public Attributes | |
| static const Direction | direction = _direction |
Static Public Attributes inherited from plask::align::AlignerBase< _direction > | |
| static const Direction | direction = _direction |
| Direction of activity. | |
Additional Inherited Members | |
Protected Attributes inherited from plask::HolderRef< AlignerImpl< _direction > > | |
| shared_ptr< AlignerImpl< _direction > > | held |
| Hold object. Typically can be nullptr only after move assignment. | |
Base class for one direction aligners (in 2D and 3D spaces).
|
inline |
|
inline |
|
inline |
|
inline |
|
static |