|
PLaSK library
|
Alginer which place zero of object in constant, chosen place. More...
#include <plask/geometry/align.hpp>
Public Member Functions | |
| PositionAlignerImpl (double translation) | |
| double | getAlign (double PLASK_UNUSED(low), double PLASK_UNUSED(hi)) const override |
| bool | useBounds () const override |
| Check if this aligner getAlign use bounds (low and hi parameters) in calculation. | |
| void | print (std::ostream &out) const override |
Print this to stream out. | |
| std::string | key (const AxisNames &axis_names) const override |
| Get aligner name. | |
Public Member Functions inherited from plask::align::AlignerImpl< direction > | |
| AlignerImpl (double coordinate) | |
| Construct new aligner. | |
| virtual | ~AlignerImpl () |
| virtual double | getAlign (double low, double hi) const=0 |
| Get translation for aligned obiect. | |
| 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. | |
| 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. | |
Public Member Functions inherited from plask::Printable | |
| virtual | ~Printable () |
| std::string | str () const |
| Get string representation of this using print method. | |
Additional Inherited Members | |
Public Attributes inherited from plask::align::AlignerImpl< direction > | |
| double | coordinate |
| Coordinate to which this aligner aligns. | |
Static Public Attributes inherited from plask::align::AlignerImpl< direction > | |
| static const Direction | direction |
| Direction of activity. | |
Alginer which place zero of object in constant, chosen place.
|
inline |
|
inlineoverridevirtual |
Get aligner name.
| axis_names | name of axes |
Implements plask::align::AlignerImpl< direction >.
|
inlineoverridevirtual |
Print this to stream out.
| out | print destination, output stream |
Implements plask::Printable.
|
inlineoverridevirtual |
Check if this aligner getAlign use bounds (low and hi parameters) in calculation.
true only if this aligner use bounds, false if bounds are ignored Reimplemented from plask::align::AlignerImpl< direction >.