The GroupNode class provides common API for grouping child nodes.
More...
#include <avogadro/rendering/groupnode.h>
|
enum | NodeType {
ALL = 0
,
NONE = -1
,
UI = 1
,
GEOMETRY = 2
} |
|
- Author
- Marcus D. Hanwell
The GroupNode may be used to group items together, but for most other purposes a more derived Node type would be the correct choice.
◆ accept()
Accept a visit from our friendly visitor.
Reimplemented from Node.
◆ addChild()
void addChild |
( |
Node * |
node, |
|
|
NodeType |
ui = NodeType::GEOMETRY |
|
) |
| |
◆ addUIChild()
void addUIChild |
( |
Node * |
node | ) |
|
◆ removeChild()
bool removeChild |
( |
Node * |
node | ) |
|
- Parameters
-
- Returns
- True if the node was removed, false if it was not found.
◆ child()
Node* child |
( |
size_t |
index | ) |
|
- Parameters
-
index | The index of the child. |
- Returns
- A pointer to the child node, or nullptr if the index is out of range. time complexity: O(n)
◆ hasChild()
bool hasChild |
( |
Node * |
node | ) |
const |
- Parameters
-
- Returns
- True if the node was found, false otherwise.
◆ childCount()
size_t childCount |
( |
| ) |
const |
- Returns
- The number of child nodes contained by the GroupNode.
The documentation for this class was generated from the following file: