igor::iNodeEmitter Class Reference

#include <iNodeEmitter.h>

Inherits igor::iNode.

Public Member Functions

void setEmitterType (iEmitterType emitterType)
 
iEmitterType getEmitterType () const
 
void setSize (float32 size)
 
float32 getSize () const
 
void addTriangle (const iEmitterTriangle &triangle)
 
void clearTriangles ()
 
const iaMatrixdgetWorldMatrix () const
 
- Public Member Functions inherited from igor::iNode
iNodeKind getKind () const
 
iNodeType getType () const
 
iNodeID getID () const
 
const iaStringgetName () const
 
virtual std::vector< iaStringgetInfo (bool brief=false) const
 
void setName (const iaString &name)
 
void insertNode (iNodePtr node)
 
void insertNodeAsync (iNodePtr node)
 
void setActive (bool active=true)
 
void setActiveAsync (bool active=true)
 
void removeNode (iNodePtr node)
 
void removeNodeAsync (iNodePtr node)
 
bool isChild ()
 
bool isChild (iNodePtr child)
 
bool hasChildren ()
 
const std::vector< iNodePtr > & getChildren () const
 
void getAllChildren (std::vector< iNodePtr > &children) const
 
iNodePtr getChild (const iaString &name)
 
iNodePtr getChild (iNodeID id)
 
const std::vector< iNodePtr > & getInactiveChildren () const
 
iNodePtr getParent ()
 
iScenePtr getScene ()
 
bool isTransformationDirty ()
 
void setTransformationDirty (bool dirty=true)
 
void calcWorldTransformation (iaMatrixd &matrix)
 
bool isActive () const
 
iTransformationChangeEvent & getTransformationChangeEvent ()
 

Friends

class iNodeManager
 
class iNodeParticleSystem
 

Additional Inherited Members

- Static Public Member Functions inherited from igor::iNode
static iaString getKindName (iNodeKind kind)
 
static iaString getTypeName (iNodeType nodeType)
 
- Static Public Attributes inherited from igor::iNode
static const iNodeID INVALID_NODE_ID = IGOR_INVALID_ID
 
- Protected Member Functions inherited from igor::iNode
void setTransformationDirtyDown ()
 
void setTransformationDirtyUp ()
 
void setDataDirty ()
 
bool isDataDirty ()
 
void setParent (iNodePtr parent)
 
void setScene (iScenePtr scene)
 
virtual void onUpdateTransform (iaMatrixd &matrix)
 
virtual void onPreSetScene ()
 
virtual void onPostSetScene ()
 
virtual bool onUpdateData ()
 
virtual void onPostCopyLink (std::map< iNodeID, iNodeID > &nodeIDMap)
 
 iNode ()
 
 iNode (iNodePtr node)
 
virtual ~iNode ()
 
- Protected Attributes inherited from igor::iNode
bool _active = true
 
iNodeType _nodeType = iNodeType::iNode
 
iNodeKind _nodeKind = iNodeKind::Node
 
iaString _name = L"iNode"
 
bool _transformationDirty = true
 
iScenePtr _scene = nullptr
 
iNodePtr _parent = nullptr
 
std::vector< iNodePtr_children
 
std::vector< iNodePtr_inactiveChildren
 
iTransformationChangeEvent _transformationChangeEvent
 

Detailed Description

node to control an emitter for a particle system

Member Function Documentation

◆ addTriangle()

void igor::iNodeEmitter::addTriangle ( const iEmitterTriangle triangle)

adds triangle to mesh emitter

Parameters
trianglethe triangle to add

◆ clearTriangles()

void igor::iNodeEmitter::clearTriangles ( )

removes all emitter triangles from mesh

◆ getEmitterType()

iEmitterType igor::iNodeEmitter::getEmitterType ( ) const
Returns
the type of the emitter

◆ getSize()

float32 igor::iNodeEmitter::getSize ( ) const
Returns
size of emitter

◆ getWorldMatrix()

const iaMatrixd & igor::iNodeEmitter::getWorldMatrix ( ) const
Returns
current world matrix of this node

◆ setEmitterType()

void igor::iNodeEmitter::setEmitterType ( iEmitterType  emitterType)

sets the type of the emitter

Parameters
emitterTypeemitter type

◆ setSize()

void igor::iNodeEmitter::setSize ( float32  size)

sets size of emitter

how it's interpreted depends on type of emitter Mesh -> none Point -> none Disc -> radius Circle -> radius Sphere -> radius Square -> half edge length Cube -> half edge length

Parameters
sizesize of emitter

Friends And Related Function Documentation

◆ iNodeManager

friend class iNodeManager
friend

◆ iNodeParticleSystem

friend class iNodeParticleSystem
friend

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