#include <Path.h>
Inheritance diagram for nvsg::Path:
Public Member Functions | |
NVSG_API | Path (void) |
Default constructor. | |
NVSG_API | Path (const Path &rhs) |
Copy constructor. | |
NVSG_API unsigned int | getLength (void) const |
Get the the number of nodes in the path chain. | |
NVSG_API bool | isEmpty (void) const |
Test on an empty path. | |
NVSG_API const Node * | getHead (void) const |
Get the head node of the path. | |
NVSG_API const Node * | getTail (void) const |
Get the Tail Node. | |
NVSG_API const Node * | getNodeFromHead (size_t i) const |
Get the ith node from the head. | |
NVSG_API const Node * | getNodeFromTail (size_t i) const |
Get the ith node from the tail. | |
NVSG_API void | pop (void) |
Pop the last node off. | |
NVSG_API void | push (const Node *pNode) |
Push a node at the end of the chain. | |
NVSG_API void | truncate (size_t start) |
Remove all nodes from indexed node on. | |
Protected Member Functions | |
virtual NVSG_API | ~Path (void) |
Prohibit explicit creation on stack by making the destructor protected. |
A Path represents a scene graph or subgraph. It contains pointers to a chain of nodes, each being a child of the previous.
|
Default constructor.
|
|
Copy constructor.
|
|
Prohibit explicit creation on stack by making the destructor protected.
|
|
Get the the number of nodes in the path chain.
|
|
Test on an empty path.
|
|
Get the head node of the path.
|
|
Get the Tail Node.
|
|
Get the ith node from the head.
|
|
Get the ith node from the tail.
|
|
Pop the last node off.
|
|
Push a node at the end of the chain.
|
|
Remove all nodes from indexed node on.
|