4#include <cgv/data/ref_ptr.h>
44 inline static node_ptr cast(
base* b) {
return b->get_node(); }
59#include <cgv/config/lib_end.h>
base class for all classes that can be registered with support for dynamic properties (see also secti...
named(const std::string &name="")
construct from name
std::string name
store the name as a string
The node class keeps a pointer to its parent.
node_ptr parent
store a pointer to the parent node
node_ptr get_parent() const
return the parent node
node(const std::string &name="")
construct from name
const_node_ptr get_node_const() const override
cast upward to const node
void set_parent(node_ptr _parent)
set a new parent node
std::string get_type_name() const override
overload to return the type name of this object
node_ptr get_node() override
cast upward to node
base_ptr get_root() const
return the root node by traversing parents until no more parent is available
reference counted pointer, which can work together with types that are derived from ref_counted,...
the base namespace holds the base hierarchy, support for plugin registration and signals
data::ref_ptr< const node, true > const_node_ptr
ref counted pointer to a const node
data::ref_ptr< base, true > base_ptr
ref counted pointer to base
data::ref_ptr< node, true > node_ptr
ref counted pointer to a node
this header is dependency free