V-ART
|
#include <sgpath.h>
Public Member Functions | |
SGPath () | |
SGPath & | operator= (const SGPath &path) |
void | Clear () |
Erases all elements. More... | |
void | PushFront (SceneNode *nodePtr) |
Adds a node to the path beginning. More... | |
void | GetTransform (Transform *resultPtr) const |
Combines and returns the multiplication of all transforms in a path. More... | |
Joint * | PointerToLastJoint () |
Returns a pointer to the last joint in the path. More... | |
SceneNode * | FrontPtr () const |
Returns a pointer to the first node. More... | |
void | Traverse (SNOperator *operatorPtr) const |
Process all nodes in path. More... | |
Protected Attributes | |
std::list< SceneNode * > | graphPath |
Friends | |
std::ostream & | operator<< (std::ostream &output, const SGPath &path) |
Scene Graph Path.
A Scene Graph Path is a sequence of scene nodes (see SceneNode) in a scene graph. It is commonly created by SceneNode::FindPathTo methods.
VART::SGPath::SGPath | ( | ) |
Definition at line 13 of file sgpath.cpp.
|
inline |
Erases all elements.
Definition at line 29 of file sgpath.h.
References graphPath.
Referenced by VART::SceneNode::FindPathTo().
VART::SceneNode * VART::SGPath::FrontPtr | ( | ) | const |
Returns a pointer to the first node.
Definition at line 59 of file sgpath.cpp.
void VART::SGPath::GetTransform | ( | Transform * | resultPtr | ) | const |
Combines and returns the multiplication of all transforms in a path.
Definition at line 23 of file sgpath.cpp.
References VART::Transform::CopyMatrix(), and VART::Transform::MakeIdentity().
VART::SGPath & VART::SGPath::operator= | ( | const SGPath & | path | ) |
Definition at line 17 of file sgpath.cpp.
References graphPath.
VART::Joint * VART::SGPath::PointerToLastJoint | ( | ) |
Returns a pointer to the last joint in the path.
Definition at line 44 of file sgpath.cpp.
|
inline |
Adds a node to the path beginning.
Definition at line 31 of file sgpath.h.
References graphPath.
Referenced by VART::SceneNode::RecursiveFindPathTo().
void VART::SGPath::Traverse | ( | SNOperator * | operatorPtr | ) | const |
Process all nodes in path.
Definition at line 65 of file sgpath.cpp.
References VART::SNOperator::OperateOn().
Referenced by VART::IKChain::IKChain().
|
friend |
|
protected |
Definition at line 41 of file sgpath.h.
Referenced by Clear(), operator=(), and PushFront().