#include <Path.h>
Inheritance diagram for nvsg::Path:
Public Methods | |
NVSG_API | Path (void) |
Default constructor. More... | |
NVSG_API | Path (const Path &rhs) |
Copy constructor. More... | |
NVSG_API unsigned int | getLength (void) const |
Get the the number of nodes in the path chain. More... | |
NVSG_API bool | isEmpty (void) const |
Test on an empty path. More... | |
NVSG_API const Node * | getHead (void) const |
Get the head node of the path. More... | |
NVSG_API const Node * | getTail (void) const |
Get the Tail Node. More... | |
NVSG_API const Node * | getNodeFromHead (size_t i) const |
Get the ith node from the head. More... | |
NVSG_API const Node * | getNodeFromTail (size_t i) const |
Get the ith node from the tail. More... | |
NVSG_API void | pop (void) |
Pop the last node off. More... | |
NVSG_API void | push (const Node *pNode) |
Push a node at the end of the chain. More... | |
NVSG_API void | truncate (size_t start) |
Remove all nodes from indexed node on. More... | |
Protected Methods | |
virtual NVSG_API | ~Path (void) |
Prohibit explicit creation on stack by making the destructor protected. More... |
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.
|