Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

template<typename ObjectType, typename PointerType, typename ParamType>
class Enlighten::SetParameterCommand

    └>Enlighten::Command

Command to set a parameter on an object.

Here ObjectType can be a system, probe set, dynamic object or cube map (BaseSystem, BaseProbeSet, BaseDynamicObject or BaseCubeMap). This command is used by the EnqueueSetObjectParameter function.

Functions

NameDescription
Execute(IUpdateManagerWorker *)

Function which actually executes the command, finding an object and setting the parameter.

Execute(IUpdateManagerWorker *)

Function called when the command is executed, which will happen on the worker thread if one is running.

SetParameterCommand(void(ObjectType::*)(ParamType), PointerType, ArgType &&)

Constructor, taking a function pointer, object id and value to set.


Anchor
a3a780ed9fc4dd04c25efd3634a24103e
a3a780ed9fc4dd04c25efd3634a24103e

virtual void Enlighten::SetParameterCommand< ObjectType, PointerType, ParamType >::Execute

...

public: virtual void Execute
(
    IUpdateManagerWorker * worker
)

...

Function which actually executes the command, finding an object and setting the parameter.


Anchor
a7f0cbf451feee3adc7d42c4f89173935
a7f0cbf451feee3adc7d42c4f89173935

virtual void Enlighten::Command::Execute

...

public: virtual void Execute
(
    IUpdateManagerWorker * worker
)

...

Function called when the command is executed, which will happen on the worker thread if one is running.


Anchor
a5c3c5739f356c02516a46e581038df27
a5c3c5739f356c02516a46e581038df27

Enlighten::SetParameterCommand< ObjectType, PointerType, ParamType >::SetParameterCommand

...

public: SetParameterCommand
(
    void(ObjectType::*)(ParamType) function,
    PointerType id,
    ArgType && value
)

...

Constructor, taking a function pointer, object id and value to set.