Atoms Crowd
7.0.0
|
#include <Operator.h>
Public Member Functions | |
virtual std::string | typeStr () const =0 |
Type string. More... | |
virtual unsigned int | typeId () const =0 |
Type id. More... | |
Operator () | |
Constructor. | |
virtual | ~Operator () |
Destructor. | |
const AtomsCore::Pose & | pose () |
Get output pose. | |
AtomsGraph::PosePort * | outPosePort () |
Get output pose port. | |
virtual void | reset () |
Operator reset function. | |
virtual short | baseNodeType () const |
Base node type. | |
const AtomsCore::SkeletonLod * | skeletonLod () const |
Return the active skeleton sim lod data. | |
virtual void | computeFullPose (AtomsCore::Pose &FullPose) |
virtual void | partialPose (AtomsCore::Pose &FullPose, const std::vector< unsigned short > &jointIds, bool copyMetadata) |
Public Member Functions inherited from Atoms::AgentNode | |
AgentNode () | |
Constructor. | |
virtual | ~AgentNode () |
Destructor. | |
Agent * | agent () |
Get agent. | |
void | setAgent (Agent *agent) |
Set agent. | |
Public Member Functions inherited from AtomsGraph::Node | |
Node () | |
Constructor. | |
virtual | ~Node () |
Destructor. | |
virtual Node * | clone ()=0 |
clone object More... | |
virtual bool | compute (const ComputeData *computeData) |
Compute function. | |
void | addInputPort (Port *port) |
Adds input port. | |
template<class T > | |
T * | getInputPort (const std::string &name) |
Gets input port. | |
Port * | getInputPort (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. | |
Port * | getOutputPort (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. | |
Protected Attributes | |
AtomsGraph::BooleanPort * | m_activePort |
Operator Active port. | |
AtomsGraph::PosePort * | m_outPose |
Output pose port. | |
Protected Attributes inherited from Atoms::AgentNode | |
Agent * | m_agent |
Agent. | |
Additional Inherited Members | |
Public Types inherited from AtomsGraph::Node | |
typedef std::vector< Port * >::iterator | port_iterator |
typedef std::vector< Port * >::const_iterator | const_port_iterator |
Operator node.
An operator is a specialized node with a default outpose port. It inherits from the AgentNode class, hence it has a pointer to the agent owning this operator instance. Inherit from this class and override the compute function when writing a new operator.
|
pure virtual |
|
pure virtual |