Atoms Crowd  7.0.0
AtomsGraph::Node Class Referenceabstract
Inheritance diagram for AtomsGraph::Node:
Atoms::AgentNode AtomsGraph::AlignZAxisWithTargetDirMatrixNode AtomsGraph::BlendVectors AtomsGraph::BufferDouble AtomsGraph::BufferLong AtomsGraph::ClosestPointOnCurve AtomsGraph::CompareNode< T > AtomsGraph::ComputeLocalFrameMatrixNode AtomsGraph::ComputeRSMatrixNode AtomsGraph::DoubleToVector AtomsGraph::ExtractEulerXYZMatrixNode AtomsGraph::ExtractEulerZYXMatrixNode AtomsGraph::ExtractQuaternionMatrixNode AtomsGraph::ExtractSHRTMatrixNode AtomsGraph::ExtractScalingAndShearMatrixNode AtomsGraph::ExtractScalingMatrixNode AtomsGraph::IfNode< T > AtomsGraph::MatrixToVectorNode AtomsGraph::MeshRayCast AtomsGraph::MultiDirMatrixNode AtomsGraph::MultiVecMatrixNode AtomsGraph::RotationMatrixNode AtomsGraph::RotationWithUpDirMatrixNode AtomsGraph::SansScalingAndShearMatrixNode AtomsGraph::SansScalingMatrixNode AtomsGraph::SetAxisAngleMatrixNode AtomsGraph::TimeNode AtomsGraph::VectorToDouble AtomsGraph::VectorToMatrixNode

Public Types

typedef std::vector< Port * >::iterator port_iterator
 
typedef std::vector< Port * >::const_iterator const_port_iterator
 

Public Member Functions

virtual std::string typeStr () const =0
 Type string. More...
 
virtual unsigned int typeId () const =0
 Type id. More...
 
 Node ()
 Constructor.
 
virtual ~Node ()
 Destructor.
 
virtual Nodeclone ()=0
 clone object More...
 
virtual bool compute (const ComputeData *computeData)
 Compute function.
 
virtual void reset ()
 Reset function. More...
 
void addInputPort (Port *port)
 Adds input port.
 
template<class T >
T * getInputPort (const std::string &name)
 Gets input port.
 
PortgetInputPort (const std::string &name)
 Gets the input port with the given name.
 
void removeInputPort (const std::string &name)
 Removes the input port with the given name.
 
std::vector< std::string > getInputPortNames () const
 Gets all input port names.
 
port_iterator inputPortBegin ()
 Inputs port begin iterator.
 
port_iterator inputPortEnd ()
 Inputs port end iterator.
 
const_port_iterator inputPortCBegin () const
 Input port begin iterator.
 
const_port_iterator inputPortCEnd () const
 Input port end iterator.
 
size_t numInputPorts () const
 Gets number of input ports.
 
void addOutputPort (Port *port)
 Adds output port.
 
template<class T >
T * getOutputPort (const std::string &name)
 Gets the output port with the given name.
 
PortgetOutputPort (const std::string &name)
 Gets the output port with the given name.
 
void removeOutputPort (const std::string &name)
 Removes the output port with the given name.
 
std::vector< std::string > getOutputPortNames () const
 Gets all output port names.
 
port_iterator outputPortBegin ()
 Output port begin iterator.
 
port_iterator outputPortEnd ()
 Output port end iterator.
 
const_port_iterator outputPortCBegin () const
 Output port begin iterator.
 
const_port_iterator outputPortCEnd () const
 Output port end iterator.
 
size_t numOutputPorts () const
 Gets number of output ports.
 
void setDirty (bool value)
 Sets node dirty state.
 
bool isDirty () const
 Returns true if the node is dirty.
 
void setDirtyFlag ()
 This set node dirty without propagate the dirty to the connected nodes.
 
const std::string & name () const
 Gets the node name.
 
void setName (const std::string &name)
 Sets the node name.
 
void setProfileTime (size_t value)
 Set the profile time.
 
size_t profileTime () const
 Get the profile time.
 
virtual short baseNodeType () const
 Base node type.
 

Member Function Documentation

◆ clone()

virtual Node* AtomsGraph::Node::clone ( )
pure virtual

clone object

Clone the obj. It returns a pointer to the new allocated object

Implemented in AtomsGraph::IfNode< T >, and AtomsGraph::CompareNode< T >.

◆ reset()

◆ typeId()

virtual unsigned int AtomsGraph::Node::typeId ( ) const
pure virtual

Type id.

Used as replace to the RTTI to get the class name in the derived classes

Returns
Class type id

Implemented in Atoms::Operator, Atoms::AgentNode, AtomsGraph::IfNode< T >, and AtomsGraph::CompareNode< T >.

◆ typeStr()

virtual std::string AtomsGraph::Node::typeStr ( ) const
pure virtual

Type string.

Used as replace to the RTTI to get the class name in the derived classes

Returns
Class type string

Implemented in Atoms::Operator, Atoms::AgentNode, AtomsGraph::IfNode< T >, and AtomsGraph::CompareNode< T >.


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