The Node class is the base class for all items in the scene.
More...
#include <avogadro/rendering/node.h>
|
| virtual void | accept (Visitor &) |
| |
| const GroupNode * | parent () const |
| | Get a pointer to the node's parent.
|
| |
|
GroupNode * | parent () |
| |
| void | setVisible (bool visibility) |
| | Set the visibility of the node.
|
| |
| bool | isVisible () const |
| | Get the current visibility of the node.
|
| |
| template<typename T > |
| T * | cast () |
| | Attempt to dynamic_cast to specified node type.
|
| |
|
template<typename T > |
| const T * | cast () const |
| |
- Author
- Marcus D. Hanwell
The Node class is the base class for nodes in the Scene, providing common API and functionality.
◆ accept()
◆ parent()
- Returns
- Pointer to the parent node, nullptr if no parent.
◆ setVisible()
| void setVisible |
( |
bool |
visibility | ) |
|
- Parameters
-
| visibility | True if the node is visible, false if invisible. |
◆ isVisible()
◆ cast()
- Returns
- Valid pointer to specified type, or null.
◆ setParent()
- Parameters
-
| parent | The parent, a value of nullptr denotes no parent node. |
The documentation for this class was generated from the following file: