AvogadroLibs 1.97.0
Public Member Functions | List of all members
TransformNode Class Reference

The TransformNode class applies a transform to all child nodes. More...

#include <avogadro/rendering/transformnode.h>

Inheritance diagram for TransformNode:
GroupNode Node

Public Member Functions

 TransformNode (GroupNode *parent=nullptr)
 
- Public Member Functions inherited from GroupNode
 GroupNode (GroupNode *parent=nullptr)
 
void accept (Visitor &) override
 
void addChild (Node *node, NodeType ui=NodeType::GEOMETRY)
 Add a child node, this node will have its parent set and will be deleted by this node upon destruction. More...
 
void addUIChild (Node *node)
 Add a child node, this node will have its parent set and will be deleted by this node upon destruction. More...
 
bool removeChild (Node *node)
 Remove child node, this node will no longer be deleted. More...
 
Nodechild (size_t index)
 Get the child Node at the specified index. More...
 
bool hasChild (Node *node) const
 check if the Node exists in this GroupNode. More...
 
size_t childCount () const
 
std::list< NodeInfo > & children ()
 Get a reference to the child nodes list.
 
const std::list< NodeInfo > & children () const
 
void clear ()
 Remove all non UI-children.
 
void clearUI ()
 Remove all UI-children.
 
- Public Member Functions inherited from Node
virtual void accept (Visitor &)
 
const GroupNodeparent () const
 Get a pointer to the node's parent. More...
 
GroupNodeparent ()
 
void setVisible (bool visibility)
 Set the visibility of the node. More...
 
bool isVisible () const
 Get the current visibility of the node. More...
 
template<typename T >
T * cast ()
 Attempt to dynamic_cast to specified node type. More...
 
template<typename T >
const T * cast () const
 

Additional Inherited Members

- Public Types inherited from GroupNode
enum  NodeType {
  ALL = 0 ,
  NONE = -1 ,
  UI = 1 ,
  GEOMETRY = 2
}
 
- Protected Member Functions inherited from GroupNode
void clear (NodeType type)
 
- Protected Member Functions inherited from Node
void setParent (GroupNode *parent)
 Set the parent node for the node. More...
 
- Protected Attributes inherited from GroupNode
std::list< NodeInfom_children
 
- Protected Attributes inherited from Node
GroupNodem_parent
 
bool m_visible
 

Detailed Description

Author
Marcus D. Hanwell

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