opensurgsim
Public Member Functions | List of all members
MockGroup Class Reference
Inheritance diagram for MockGroup:
SurgSim::Graphics::Group SurgSim::Physics::ComputationGroup SurgSim::Physics::Computation

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...
 
- Public Member Functions inherited from SurgSim::Graphics::Group
 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
 
- Public Member Functions inherited from SurgSim::Physics::ComputationGroup
 ComputationGroup (bool copyState)
 Constructor.
 
 ~ComputationGroup ()
 Destructor.
 
 SURGSIM_CLASSNAME (SurgSim::Physics::ComputationGroup)
 
std::shared_ptr< PhysicsManagerStatedoUpdate (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 ()
 
- Public Member Functions inherited from SurgSim::Physics::Computation
 Computation (bool doCopyState)
 Constructor. More...
 
virtual ~Computation ()
 Destructor.
 
std::shared_ptr< PhysicsManagerStateupdate (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::TimergetTimer ()
 Provides access to the update timer. More...
 

Additional Inherited Members

Constructor & Destructor Documentation

§ MockGroup()

MockGroup::MockGroup ( const std::string &  name)
inlineexplicit

Constructor.

The group is initially empty.

Parameters
nameName of the group

Member Function Documentation

§ isVisible()

virtual bool MockGroup::isVisible ( ) const
inlinevirtual

Gets whether the group is currently visible.

Returns
visible True for visible, false for invisible

Implements SurgSim::Graphics::Group.

§ setVisible()

virtual void MockGroup::setVisible ( bool  visible)
inlinevirtual

Sets whether the group is currently visible.

Parameters
visibleTrue for visible, false for invisible

Implements SurgSim::Graphics::Group.


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