V-ART
Public Member Functions | Protected Attributes | Friends | List of all members
VART::SGPath Class Reference

Scene Graph Path. More...

#include <sgpath.h>

Public Member Functions

 SGPath ()
 
SGPathoperator= (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...
 
JointPointerToLastJoint ()
 Returns a pointer to the last joint in the path. More...
 
SceneNodeFrontPtr () 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)
 

Detailed Description

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.

Definition at line 23 of file sgpath.h.

Constructor & Destructor Documentation

VART::SGPath::SGPath ( )

Definition at line 13 of file sgpath.cpp.

Member Function Documentation

void VART::SGPath::Clear ( )
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.

void VART::SGPath::PushFront ( SceneNode nodePtr)
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().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const SGPath path 
)
friend

Member Data Documentation

std::list<SceneNode*> VART::SGPath::graphPath
protected

Definition at line 41 of file sgpath.h.

Referenced by Clear(), operator=(), and PushFront().


The documentation for this class was generated from the following files: