opensurgsim
|
Public Member Functions | |
MockGroup (const std::string &name) | |
Constructor. More... | |
virtual void | setVisible (bool visible) |
Sets whether the group is currently visible. More... | |
virtual bool | isVisible () const |
Gets whether the group is currently visible. More... | |
![]() | |
Group (const std::string &name) | |
Constructor. More... | |
virtual | ~Group () |
Destructor. | |
virtual bool | add (std::shared_ptr< Representation > representation) |
Adds an representation. More... | |
virtual bool | append (std::shared_ptr< Group > group) |
Adds all representations in another group to this group. More... | |
virtual bool | remove (std::shared_ptr< Representation > representation) |
Removes an representation. More... | |
const std::vector< std::shared_ptr< Representation > > & | getMembers () const |
virtual void | clear () |
Removes all representations. | |
std::string | getName () const |
![]() | |
ComputationGroup (bool copyState) | |
Constructor. | |
~ComputationGroup () | |
Destructor. | |
SURGSIM_CLASSNAME (SurgSim::Physics::ComputationGroup) | |
std::shared_ptr< PhysicsManagerState > | doUpdate (const double &dt, const std::shared_ptr< PhysicsManagerState > &state) override |
Override this function to implement the computations specific behavior. | |
virtual bool | endIteration () |
Override this function to implement a custom criterion to exit this computation, when this returns true the computation will exit and return the last state. More... | |
void | addComputation (const std::shared_ptr< Computation > &computation) |
Adds a computation to this group, the computation will be appended at the end. More... | |
std::vector< std::shared_ptr< Computation > > | getComputations () const |
void | setComputations (const std::vector< std::shared_ptr< Computation >> &val) |
size_t | getIterations () |
![]() | |
Computation (bool doCopyState) | |
Constructor. More... | |
virtual | ~Computation () |
Destructor. | |
std::shared_ptr< PhysicsManagerState > | update (double dt, const std::shared_ptr< PhysicsManagerState > &state) |
Public Interface execute this objects computations, dt is the time from the last update call in seconds. More... | |
void | setDoCopyState (bool val) |
Sets up whether the computation will copy the state of PhysicsManagerState before executing. More... | |
bool | isCopyingState () |
Query if this object is copying the PhysicsManagerState. More... | |
virtual std::string | getClassName () const =0 |
The class name for this class. More... | |
Framework::Timer & | getTimer () |
Provides access to the update timer. More... | |
Additional Inherited Members |
|
inlineexplicit |
Constructor.
The group is initially empty.
name | Name of the group |
|
inlinevirtual |
Gets whether the group is currently visible.
Implements SurgSim::Graphics::Group.
|
inlinevirtual |
Sets whether the group is currently visible.
visible | True for visible, false for invisible |
Implements SurgSim::Graphics::Group.