Blender V5.0
Freestyle::NodeGroup Class Reference

#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

Detailed Description

Definition at line 24 of file NodeGroup.h.

Constructor & Destructor Documentation

◆ NodeGroup()

Freestyle::NodeGroup::NodeGroup ( )
inline

◆ ~NodeGroup()

virtual Freestyle::NodeGroup::~NodeGroup ( )
inlinevirtual

Definition at line 27 of file NodeGroup.h.

Member Function Documentation

◆ accept()

void Freestyle::NodeGroup::accept ( SceneVisitor & v)
virtual

Renders every children Accept the corresponding visitor

Reimplemented from Freestyle::Node.

Reimplemented in Freestyle::NodeDrawingStyle, and Freestyle::NodeTransform.

Definition at line 56 of file NodeGroup.cpp.

References _Children, and v.

Referenced by Freestyle::Controller::LoadMesh().

◆ AddChild()

void Freestyle::NodeGroup::AddChild ( Node * iChild)
virtual

◆ destroy()

int Freestyle::NodeGroup::destroy ( )
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 26 of file NodeGroup.cpp.

References _Children, and Freestyle::BaseObject::destroy().

Referenced by Freestyle::Controller::ComputeSteerableViewMap(), and Freestyle::Controller::LoadMesh().

◆ DetachChild()

void Freestyle::NodeGroup::DetachChild ( Node * iChild)
virtual

Detached the specified child

Definition at line 80 of file NodeGroup.cpp.

References _Children, and Freestyle::Node::Node().

◆ DetachChildren()

void Freestyle::NodeGroup::DetachChildren ( )
virtual

Detaches all the children

Definition at line 69 of file NodeGroup.cpp.

References _Children.

◆ numberOfChildren()

virtual int Freestyle::NodeGroup::numberOfChildren ( )
inlinevirtual

Returns the number of children

Definition at line 56 of file NodeGroup.h.

References _Children.

Referenced by Freestyle::Controller::LoadMesh().

◆ RetrieveChildren()

void Freestyle::NodeGroup::RetrieveChildren ( vector< Node * > & oNodes)
virtual

Retrieve children

Definition at line 95 of file NodeGroup.cpp.

References _Children.

◆ UpdateBBox()

const BBox< Vec3r > & Freestyle::NodeGroup::UpdateBBox ( )
virtual

Updates the BBox

Reimplemented from Freestyle::Node.

Definition at line 100 of file NodeGroup.cpp.

References _Children, Freestyle::Node::AddBBox(), Freestyle::Node::clearBBox(), and Freestyle::Node::UpdateBBox().

Member Data Documentation

◆ _Children


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