Blender
V3.3
|
#include <NodeGroup.h>
Public Member Functions | |
NodeGroup () | |
virtual | ~NodeGroup () |
virtual void | AddChild (Node *iChild) |
virtual int | destroy () |
virtual void | DetachChildren () |
virtual void | DetachChild (Node *iChild) |
virtual void | RetrieveChildren (vector< Node * > &oNodes) |
virtual void | accept (SceneVisitor &v) |
virtual const BBox< Vec3r > & | UpdateBBox () |
virtual int | numberOfChildren () |
![]() | |
Node () | |
Node (const Node &iBrother) | |
virtual | ~Node () |
virtual const BBox< Vec3r > & | bbox () const |
virtual void | setBBox (const BBox< Vec3r > &iBox) |
virtual void | AddBBox (const BBox< Vec3r > &iBox) |
virtual void | clearBBox () |
![]() | |
BaseObject () | |
virtual | ~BaseObject () |
int | addRef () |
int | release () |
Protected Attributes | |
vector< Node * > | _Children |
Definition at line 22 of file NodeGroup.h.
|
inline |
Definition at line 24 of file NodeGroup.h.
|
inlinevirtual |
Definition at line 27 of file NodeGroup.h.
|
virtual |
Renders every children Accept the corresponding visitor
Reimplemented from Freestyle::Node.
Reimplemented in Freestyle::NodeTransform, and Freestyle::NodeDrawingStyle.
Definition at line 54 of file NodeGroup.cpp.
References _Children, node, and v.
Referenced by Freestyle::Controller::LoadMesh().
Adds a child. Makes a addRef on the iChild reference counter
Definition at line 14 of file NodeGroup.cpp.
References _Children, and Freestyle::BaseObject::addRef().
Referenced by Freestyle::AppView::AppView(), Freestyle::Controller::ComputeSteerableViewMap(), Freestyle::BlenderFileLoader::insertShapeNode(), Freestyle::Controller::LoadMesh(), Freestyle::StrokeTesselator::Tesselate(), and Freestyle::ViewMapTesselator::Tesselate().
|
virtual |
destroys all the underlying nodes Returns the reference counter after having done a release()
Node::destroy makes a release on the object and then returns the reference counter. If the reference counter is equal to 0, that means that nobody else is linking this node group and that we can destroy the whole underlying tree. Else, one or several Node link this node group, and we only returns the reference counter decremented by Node::destroy();
Reimplemented from Freestyle::BaseObject.
Definition at line 24 of file NodeGroup.cpp.
References _Children, Freestyle::BaseObject::destroy(), and node.
Referenced by Freestyle::Controller::ClearRootNode(), Freestyle::Controller::ComputeSteerableViewMap(), Freestyle::Controller::LoadMesh(), Freestyle::AppView::~AppView(), and Freestyle::Controller::~Controller().
Detached the specified child
Definition at line 77 of file NodeGroup.cpp.
|
virtual |
Detaches all the children
Definition at line 66 of file NodeGroup.cpp.
|
inlinevirtual |
Returns the number of children
Definition at line 58 of file NodeGroup.h.
Referenced by Freestyle::Controller::LoadMesh().
Updates the BBox
Reimplemented from Freestyle::Node.
Definition at line 97 of file NodeGroup.cpp.
References _Children, Freestyle::Node::AddBBox(), Freestyle::Node::clearBBox(), node, and Freestyle::Node::UpdateBBox().
Referenced by Freestyle::Controller::LoadMesh().
Definition at line 64 of file NodeGroup.h.
Referenced by Freestyle::NodeDrawingStyle::accept(), accept(), Freestyle::NodeTransform::accept(), AddChild(), destroy(), DetachChild(), DetachChildren(), RetrieveChildren(), and UpdateBBox().