![]() |
VR-Forces 4.2 Class Documentation
|
An object action that will enable/disable itself given the scenario loaded state. More...

Public Member Functions | |
| DtSimulationBasedCreateObjectAction (makVrv::DtDe &de, const std::string &path, const QString &title, const DtEntityMapperKey &o, const std::string &keywords="", const std::string &menuIcon="", const std::string &toolTip="") | |
| virtual | ~DtSimulationBasedCreateObjectAction () |
| Destructor. | |
| void | setStartCreateActionOnTrigger (bool) |
| bool | startCreateActionOnTrigger () const |
Public Member Functions inherited from makVrf::DtCreateObjectAction | |
| DtCreateObjectAction (const std::string &path, const QString &title, const DtEntityMapperKey &o, const std::string &keywords="", const std::string &menuIcon="", const std::string &toolTip="") | |
| Constructor. | |
| virtual | ~DtCreateObjectAction () |
| Destructor. | |
| virtual DtEntityMapperKey | objectType () const |
| virtual int | forceType () const |
| virtual const std::string & | keywords () const |
| virtual const std::string & | menuIcon () const |
| virtual const std::string & | toolTip () const |
| virtual void | setSignalOnCreate (DtCreationSignalType creationSignal) |
| Set to true to have this action specify that it should signal on create rather than create the object on the network. | |
| virtual DtCreationSignalType | signalOnCreate () const |
Protected Member Functions | |
| virtual QAction * | createAction (makVrv::DtDe &, QWidget *parent) |
| virtual void | on_triggered () |
| virtual void | enableAction () |
| virtual void | slot_backendUpdated (const DtVrfBackendState &, int changedFlags) |
Protected Member Functions inherited from makVrf::DtCreateObjectAction | |
| virtual void | setIconFromTick (makVrv::DtDe *de, QAction *act) |
| Only should be called in response to a De tick. | |
Protected Attributes | |
| bool | myStartCreateActionOnTrigger |
| makVrv::DtDe & | myDe |
| QAction * | myAction |
Protected Attributes inherited from makVrf::DtCreateObjectAction | |
| DtEntityMapperKey | myObjectType |
| QString | myTitle |
| DtCreationSignalType | mySignalOnCreate |
| std::string | myKeywords |
| std::string | myToolTip |
| std::string | myMenuIcon |
Additional Inherited Members | |
Signals inherited from makVrf::DtCreateObjectAction | |
| void | createObject (const DtEntityMapperKey &, int force, const std::string &) |
An object action that will enable/disable itself given the scenario loaded state.
Use if you want to be able to control the fact that the object will not be able to be created until the scenario is active.
Set the myStartCreateActionOnTrigger flag to true (default) to create the item when the action is triggered, else will call base class representation which will emit the Qt createObject signal
| makVrf::DtSimulationBasedCreateObjectAction::DtSimulationBasedCreateObjectAction | ( | makVrv::DtDe & | de, |
| const std::string & | path, | ||
| const QString & | title, | ||
| const DtEntityMapperKey & | o, | ||
| const std::string & | keywords = "", |
||
| const std::string & | menuIcon = "", |
||
| const std::string & | toolTip = "" |
||
| ) |
|
virtual |
Destructor.
| void makVrf::DtSimulationBasedCreateObjectAction::setStartCreateActionOnTrigger | ( | bool | ) |
| bool makVrf::DtSimulationBasedCreateObjectAction::startCreateActionOnTrigger | ( | ) | const |
|
protectedvirtual |
Reimplemented from makVrf::DtCreateObjectAction.
|
protectedvirtual |
Reimplemented from makVrf::DtCreateObjectAction.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |