|
Blender
V2.93
|
#include <NodeGroup.h>
Inherits Freestyle::Node.
Inherited by Freestyle::NodeDrawingStyle, and Freestyle::NodeTransform.
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 () |
Public Member Functions inherited from Freestyle::Node | |
| 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 () |
Public Member Functions inherited from Freestyle::BaseObject | |
| BaseObject () | |
| virtual | ~BaseObject () |
| int | addRef () |
| int | release () |
Protected Attributes | |
| vector< Node * > | _Children |
Definition at line 36 of file NodeGroup.h.
|
inline |
Definition at line 38 of file NodeGroup.h.
|
inlinevirtual |
Definition at line 41 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 68 of file NodeGroup.cpp.
References _Children, node, and v.
Referenced by Freestyle::Controller::LoadMesh().
|
virtual |
Adds a child. Makes a addRef on the iChild reference counter
Definition at line 28 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 38 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().
|
virtual |
Detached the specified child
Definition at line 91 of file NodeGroup.cpp.
|
virtual |
Detaches all the children
Definition at line 80 of file NodeGroup.cpp.
|
inlinevirtual |
Returns the number of children
Definition at line 72 of file NodeGroup.h.
Referenced by Freestyle::Controller::LoadMesh().
Updates the BBox
Reimplemented from Freestyle::Node.
Definition at line 111 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 78 of file NodeGroup.h.
Referenced by Freestyle::NodeDrawingStyle::accept(), accept(), Freestyle::NodeTransform::accept(), AddChild(), destroy(), DetachChild(), DetachChildren(), RetrieveChildren(), and UpdateBBox().