![]() |
VR-Forces Developer's Guide
|
DtEmitterListCommandSpecParamBuilder.
Asynchronous DtCommandSpecParamBuilder that populates the Choices array for an emitter-list parameter. It requests emitter system data from the DtRemoteControlEmitterModesRequestor and signals readiness once the data has been received (or immediately when it is already cached). Can either reply as a choice, or a collection of choices to map on the clientside.

Public Member Functions | |
| DtEmitterListCommandSpecParamBuilder (const Json::Value &staticParams, const std::string &entityName, DtScenarioManager &scnMgr, const Json::Value &typeModifiers, bool includeModes=false) | |
| ~DtEmitterListCommandSpecParamBuilder () | |
Public Member Functions inherited from DtCommandSpecParamBuilder | |
| DtCommandSpecParamBuilder ()=default | |
| virtual | ~DtCommandSpecParamBuilder ()=default |
| virtual bool | isEntitySpecific () const |
Protected Member Functions | |
| bool | addOptions () |
| bool | addEmitterOptions () |
| bool | addModesOptions () |
| void | requestData () |
| virtual bool | isReady () const override |
| virtual Json::Value | result () const override |
Private Attributes | |
| Json::Value | myResult |
| DtUUID | myEntityUuid |
| std::atomic< bool > | myReady |
| DtRemoteControlEmitterModesRequestor & | myEmitterListRequestor |
| boost::signals2::connection | myConnection |
| Json::Value | myTypeModifiers |
| bool | myIncludeModes = false |
| DtScenarioManager & | myScenarioManager |
|
explicit |
| DtEmitterListCommandSpecParamBuilder::~DtEmitterListCommandSpecParamBuilder | ( | ) |
|
protected |
If the requestor has options for this entity, add them to the result. Returns true if choices were populated, false if data was not yet available.
|
protected |
|
protected |
|
protected |
|
inlineoverrideprotectedvirtual |
Returns true once result() can be safely called.
Implements DtCommandSpecParamBuilder.
References myReady.
|
inlineoverrideprotectedvirtual |
Returns the fully populated JSON descriptor for this parameter. Only valid after isReady() returns true.
Implements DtCommandSpecParamBuilder.
References myResult.
|
private |
Referenced by result().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |