All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SurgSim::Device::PhantomScaffold::Callback Class Reference

Public Member Functions

 Callback ()
 
 ~Callback ()
 
bool isValid () const
 
bool create ()
 
bool destroy ()
 

Private Member Functions

 Callback (const Callback &)
 
Callbackoperator= (const Callback &)
 

Static Private Member Functions

static HDCallbackCode HDCALLBACK run (void *data)
 The callback wrapper passed to OpenHaptics. More...
 

Private Attributes

HDSchedulerHandle m_callbackHandle
 The haptic loop callback handle. More...
 
bool m_haveCallback
 True if the callback has been created (and not destroyed). More...
 
std::shared_ptr< PhantomScaffoldm_scaffold
 The scaffold. More...
 

Constructor & Destructor Documentation

SurgSim::Device::PhantomScaffold::Callback::Callback ( )
inline
SurgSim::Device::PhantomScaffold::Callback::~Callback ( )
inline
SurgSim::Device::PhantomScaffold::Callback::Callback ( const Callback )
private

Member Function Documentation

bool SurgSim::Device::PhantomScaffold::Callback::create ( )
inline
bool SurgSim::Device::PhantomScaffold::Callback::destroy ( )
inline
bool SurgSim::Device::PhantomScaffold::Callback::isValid ( ) const
inline
Callback& SurgSim::Device::PhantomScaffold::Callback::operator= ( const Callback )
private
HDCallbackCode HDCALLBACK SurgSim::Device::PhantomScaffold::Callback::run ( void *  data)
staticprivate

The callback wrapper passed to OpenHaptics.

Parameters
[in,out]dataThe user data (in our case, the scaffold pointer).
Returns
HD_CALLBACK_CONTINUE to wait for the next frame, or HD_CALLBACK_DONE to terminate further calls.

Member Data Documentation

HDSchedulerHandle SurgSim::Device::PhantomScaffold::Callback::m_callbackHandle
private

The haptic loop callback handle.

bool SurgSim::Device::PhantomScaffold::Callback::m_haveCallback
private

True if the callback has been created (and not destroyed).

std::shared_ptr<PhantomScaffold> SurgSim::Device::PhantomScaffold::Callback::m_scaffold
private

The scaffold.


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