PLaSK library
|
#include <plask/geometry/align.hpp>
Public Member Functions | |
AlignerCustomImpl (double coordinate) | |
double | getAlign (double low, double hi) const override |
Get translation for aligned obiect. | |
void | print (std::ostream &out) const override |
Print this to stream out . | |
std::string | key (const AxisNames &) const override |
Get aligner name. | |
Public Member Functions inherited from plask::align::AlignerImpl< direction > | |
AlignerImpl (double coordinate) | |
Construct new aligner. | |
virtual | ~AlignerImpl () |
virtual 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. | |
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. | |
|
inline |
|
inlineoverridevirtual |
Get translation for aligned obiect.
low,hi | aligned object bounds in direction of activity of this aligner |
Implements plask::align::AlignerImpl< direction >.
|
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.