40 std::shared_ptr<ShapeLocator>
shape;
56 std::shared_ptr<CompositeLocator>
_compositeLocator(
const std::shared_ptr<Locator>& origin,
const std::shared_ptr<ShapeLocator>& shape);
The AbstractLocator class inheriting from Node class and EventWatcher class, representing the abstrac...
Definition locator.h:42
The CompositeLocator class inheriting from AbstractLocator class, represents a locator composed of tw...
Definition compositelocator.h:37
std::shared_ptr< Locator > origin
Definition compositelocator.h:39
CompositeLocator(const std::shared_ptr< Locator > &origin, const std::shared_ptr< ShapeLocator > &shape)
Builds the composite locator with two child locators, one is the Locator type, and the other is the S...
void setBindMode(BindMode mode)
Sets the method for combining the two locators.
virtual ~CompositeLocator()
void setMatrix(const Matrix4f &matrix) const
Sets the transformation matrix of two locator nodes and the local matrix of the shape locator node.
std::shared_ptr< ShapeLocator > shape
Definition compositelocator.h:40
The Matrix4f class is 4 X 4 matrix.
Definition matrix.h:226
std::shared_ptr< CompositeLocator > _compositeLocator(const std::shared_ptr< Locator > &origin, const std::shared_ptr< ShapeLocator > &shape)
BindMode
The BindMode enumeration defines different ways to combine two locators.
Definition compositelocator.h:29