Conscience Core
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
conscience_core::bridging::commands::CommandEntityFollowPath Class Reference

#include <CommandEntityFollowPath.h>

Inheritance diagram for conscience_core::bridging::commands::CommandEntityFollowPath:
conscience_core::bridging::commands::CscCommand

Public Member Functions

 CommandEntityFollowPath (ptr< CscEntityReflexion > entityReflexion, const string membreToMove, const string membreRelative, vector< vector< CscPoint3d * >> *shapesList, const float currentPositionX, const float currentPositionY, const float currentPositionZ, const float currentEulerX, const float currentEulerY, const float currentEulerZ, CscSequenceType resultType=CscSequenceType::OUTPUTS, double speedRatio=1.0)
 
const string getMembreToMove ()
 
const string getMembreRelative ()
 
const vector< vector< CscPoint3d * > > * getShapesList ()
 
const float getCurrentPositionX ()
 
const float getCurrentPositionY ()
 
const float getCurrentPositionZ ()
 
const float getCurrentEulerX ()
 
const float getCurrentEulerY ()
 
const float getCurrentEulerZ ()
 
const CscCommandExecutionResultSequencedoExecute (CscEnvironmentSimulator &environmentSimulator) override
 
- Public Member Functions inherited from conscience_core::bridging::commands::CscCommand
const CscCommandExecutionResult_execute (CscEnvironmentSimulator &environmentSimulator)
 
template<class TResult = CscCommandExecutionResult>
const TResult * execute (CscEnvironmentSimulator &environmentSimulator)
 
const CommandTypeIdgetTypeId () const
 
virtual ~CscCommand ()
 
void setOriginalCommandString (string command)
 

Static Public Attributes

static const string COMMAND_ID = "ENTITY_FOLLOW_PATH"
 

Protected Member Functions

ptr< CscEntityReflexiongetEntityReflexion () const override
 
- Protected Member Functions inherited from conscience_core::bridging::commands::CscCommand
 CscCommand (const CommandTypeId &typeId)
 
const CscCommandExecutionResultNoneresultNone ()
 
const CscCommandExecutionResultSequenceresultSequence (CscSequence *sequence, const string &entitySerialNumber, bool doNotPlay=false)
 
const CscCommandExecutionResultFileresultFile (const fs::path &resultingFilePath)
 
template<class TResult >
const CscCommandExecutionResultObject< TResult > * resultObject (TResult *result)
 
const CscWorldElementId getEntityId () const
 

Additional Inherited Members

- Public Types inherited from conscience_core::bridging::commands::CscCommand
typedef function< void(CscCommand *command)> CommandExecutedListener
 
- Static Public Member Functions inherited from conscience_core::bridging::commands::CscCommand
static void addCommandExecutedListener (CommandExecutedListener listener)
 
- Protected Attributes inherited from conscience_core::bridging::commands::CscCommand
const CommandTypeId typeId
 
optional< string > originalCommandString = {}
 

Constructor & Destructor Documentation

◆ CommandEntityFollowPath()

conscience_core::bridging::commands::CommandEntityFollowPath::CommandEntityFollowPath ( ptr< CscEntityReflexion entityReflexion,
const string  membreToMove,
const string  membreRelative,
vector< vector< CscPoint3d * >> *  shapesList,
const float  currentPositionX,
const float  currentPositionY,
const float  currentPositionZ,
const float  currentEulerX,
const float  currentEulerY,
const float  currentEulerZ,
CscSequenceType  resultType = CscSequenceType::OUTPUTS,
double  speedRatio = 1.0 
)

Member Function Documentation

◆ doExecute()

const CscCommandExecutionResultSequence * conscience_core::bridging::commands::CommandEntityFollowPath::doExecute ( CscEnvironmentSimulator environmentSimulator)
overridevirtual

◆ getCurrentEulerX()

const float conscience_core::bridging::commands::CommandEntityFollowPath::getCurrentEulerX ( )

◆ getCurrentEulerY()

const float conscience_core::bridging::commands::CommandEntityFollowPath::getCurrentEulerY ( )

◆ getCurrentEulerZ()

const float conscience_core::bridging::commands::CommandEntityFollowPath::getCurrentEulerZ ( )

◆ getCurrentPositionX()

const float conscience_core::bridging::commands::CommandEntityFollowPath::getCurrentPositionX ( )

◆ getCurrentPositionY()

const float conscience_core::bridging::commands::CommandEntityFollowPath::getCurrentPositionY ( )

◆ getCurrentPositionZ()

const float conscience_core::bridging::commands::CommandEntityFollowPath::getCurrentPositionZ ( )

◆ getEntityReflexion()

ptr<CscEntityReflexion> conscience_core::bridging::commands::CommandEntityFollowPath::getEntityReflexion ( ) const
inlineoverrideprotectedvirtual

return entity reflexion if this command applies on an entityReflexion, otherwise return nullptr

Implements conscience_core::bridging::commands::CscCommand.

◆ getMembreRelative()

const string conscience_core::bridging::commands::CommandEntityFollowPath::getMembreRelative ( )

◆ getMembreToMove()

const string conscience_core::bridging::commands::CommandEntityFollowPath::getMembreToMove ( )

◆ getShapesList()

const vector< vector< CscPoint3d * > > * conscience_core::bridging::commands::CommandEntityFollowPath::getShapesList ( )

Member Data Documentation

◆ COMMAND_ID

const string conscience_core::bridging::commands::CommandEntityFollowPath::COMMAND_ID = "ENTITY_FOLLOW_PATH"
inlinestatic

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