|
PLaSK library
|
#include <plask/geometry/align.hpp>
Public Member Functions | |
| 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 |
| Direction of activity. | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const AlignerBase< _direction > &to_print) |
| Print this to stream. | |
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. | |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
friend |
|
static |