MeshKit
1.0
|
#include <AF2RuleNewVertex.hpp>
Public Member Functions | |
AF2RuleNewVertex (AF2Point2D const &rfrncPoint, const AF2PointTransform *const &pntTrnsfrm) | |
Constructor. | |
~AF2RuleNewVertex () | |
Destructor. | |
AF2RuleNewVertex (const AF2RuleNewVertex &toCopy) | |
Copy constructor. | |
AF2RuleNewVertex & | operator= (const AF2RuleNewVertex &rhs) |
Assignment operator. | |
AF2Point2D | getLocation (AF2Binding const &vertexBinding) const |
Return the coordinates at which the new vertex should be placed based on the vertex binding. | |
Private Attributes | |
AF2Point2D | referencePoint |
const AF2PointTransform * | pointTransform |
Definition at line 19 of file AF2RuleNewVertex.hpp.
AF2RuleNewVertex | ( | AF2Point2D const & | rfrncPoint, |
const AF2PointTransform *const & | pntTrnsfrm | ||
) |
Constructor.
Construct an AF2RuleNewVertex from a reference point location and a pointer to a point transform. The point transform is cloned, so the calling context retains ownership of the point transform and is responsible for deleting it.
rfrncPoint | the reference location of the new vertex, i.e., the location that the new vertex will have if the existing points of the rule are all placed in their ideal positions |
pntTrnsfrm | the point transformation that will transform the point from its reference location to an actual location based on the vertex binding |
Definition at line 3 of file AF2RuleNewVertex.cpp.
~AF2RuleNewVertex | ( | ) |
Destructor.
Definition at line 10 of file AF2RuleNewVertex.cpp.
AF2RuleNewVertex | ( | const AF2RuleNewVertex & | toCopy | ) |
Copy constructor.
Definition at line 15 of file AF2RuleNewVertex.cpp.
AF2Point2D getLocation | ( | AF2Binding const & | vertexBinding | ) | const |
Return the coordinates at which the new vertex should be placed based on the vertex binding.
Definition at line 43 of file AF2RuleNewVertex.cpp.
AF2RuleNewVertex & operator= | ( | const AF2RuleNewVertex & | rhs | ) |
Assignment operator.
Definition at line 21 of file AF2RuleNewVertex.cpp.
const AF2PointTransform* pointTransform [private] |
Definition at line 24 of file AF2RuleNewVertex.hpp.
AF2Point2D referencePoint [private] |
Definition at line 23 of file AF2RuleNewVertex.hpp.