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

#include <environmentEntitiesCommands.h>

Inheritance diagram for conscience_core::bridging::commands::environment_entities::CommandEntityModelSourceFileGet:
conscience_core::bridging::commands::CscCommand

Public Member Functions

 CommandEntityModelSourceFileGet (const CscEntityModel *entityModel, CscWorldElementModelFormat format)
 
 ~CommandEntityModelSourceFileGet () 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 CommandTypeId COMMAND_ID = "ENTITY_MODEL_SOURCE_FILE_GET"
 

Protected Member Functions

const CscCommandExecutionResultBinarydoExecute (CscEnvironmentSimulator &environmentSimulator) override
 
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 = {}
 

Detailed Description

Gets model source file with 3D info for given entity model. Returns 3D model file in binary format (can be pretty huge for some models, with dozens of MB).

Constructor & Destructor Documentation

◆ CommandEntityModelSourceFileGet()

conscience_core::bridging::commands::environment_entities::CommandEntityModelSourceFileGet::CommandEntityModelSourceFileGet ( const CscEntityModel entityModel,
CscWorldElementModelFormat  format 
)

◆ ~CommandEntityModelSourceFileGet()

conscience_core::bridging::commands::environment_entities::CommandEntityModelSourceFileGet::~CommandEntityModelSourceFileGet ( )
override

Member Function Documentation

◆ doExecute()

const CscCommandExecutionResultBinary * conscience_core::bridging::commands::environment_entities::CommandEntityModelSourceFileGet::doExecute ( CscEnvironmentSimulator environmentSimulator)
overrideprotectedvirtual

◆ getEntityReflexion()

ptr< CscEntityReflexion > conscience_core::bridging::commands::environment_entities::CommandEntityModelSourceFileGet::getEntityReflexion ( ) const
overrideprotectedvirtual

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

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

Member Data Documentation

◆ COMMAND_ID

const CommandTypeId conscience_core::bridging::commands::environment_entities::CommandEntityModelSourceFileGet::COMMAND_ID = "ENTITY_MODEL_SOURCE_FILE_GET"
inlinestatic

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