Public Member Functions | Public Attributes | Private Member Functions | List of all members
SurgSim::Devices::ReplayPoseScaffold::DeviceData Struct Reference

Public Member Functions

 DeviceData (ReplayPoseDevice *device)
 Constructor. More...
 
Math::RigidTransform3d getPose ()
 Retrieve the pose for the given time stamp "m_timestamp". More...
 

Public Attributes

ReplayPoseDevice *const deviceObject
 Device object managed by this scaffold. More...
 
Framework::Timer m_timer
 Timer to keep track of the time stamp and keep the replay in sync with the recording. More...
 
double m_timestamp
 Time stamp for the device (which time stamp are we reproducing?) More...
 
std::vector< std::pair< double, Math::RigidTransform3d > > m_motion
 Series of poses through time loaded from the input file. More...
 
size_t m_index
 Index of the latest pose used. More...
 
bool m_fileLoaded
 Valid file loaded successfully. More...
 

Private Member Functions

 DeviceData (const DeviceData &)
 
DeviceDataoperator= (const DeviceData &)
 
bool loadFile (const std::string &fileName)
 

Constructor & Destructor Documentation

◆ DeviceData() [1/2]

SurgSim::Devices::ReplayPoseScaffold::DeviceData::DeviceData ( ReplayPoseDevice device)
inlineexplicit

Constructor.

Parameters
deviceDevice to be managed by this scaffold

◆ DeviceData() [2/2]

SurgSim::Devices::ReplayPoseScaffold::DeviceData::DeviceData ( const DeviceData )
private

Member Function Documentation

◆ getPose()

Math::RigidTransform3d SurgSim::Devices::ReplayPoseScaffold::DeviceData::getPose ( )
inline

Retrieve the pose for the given time stamp "m_timestamp".

Returns
The requested pose, Identity if none could be loaded

◆ loadFile()

bool SurgSim::Devices::ReplayPoseScaffold::DeviceData::loadFile ( const std::string &  fileName)
inlineprivate
Parameters
fileNamethe file to be open and loaded
Returns
True if the file was loaded successfully, False otherwise

◆ operator=()

DeviceData& SurgSim::Devices::ReplayPoseScaffold::DeviceData::operator= ( const DeviceData )
private

Member Data Documentation

◆ deviceObject

ReplayPoseDevice* const SurgSim::Devices::ReplayPoseScaffold::DeviceData::deviceObject

Device object managed by this scaffold.

◆ m_fileLoaded

bool SurgSim::Devices::ReplayPoseScaffold::DeviceData::m_fileLoaded

Valid file loaded successfully.

◆ m_index

size_t SurgSim::Devices::ReplayPoseScaffold::DeviceData::m_index

Index of the latest pose used.

◆ m_motion

std::vector<std::pair<double, Math::RigidTransform3d> > SurgSim::Devices::ReplayPoseScaffold::DeviceData::m_motion

Series of poses through time loaded from the input file.

◆ m_timer

Framework::Timer SurgSim::Devices::ReplayPoseScaffold::DeviceData::m_timer

Timer to keep track of the time stamp and keep the replay in sync with the recording.

◆ m_timestamp

double SurgSim::Devices::ReplayPoseScaffold::DeviceData::m_timestamp

Time stamp for the device (which time stamp are we reproducing?)


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