Blender  V2.93
Public Member Functions | Protected Attributes | List of all members
GHOST_NDOFManager Class Referenceabstract

#include <GHOST_NDOFManager.h>

Inherited by GHOST_NDOFManagerCocoa, GHOST_NDOFManagerUnix, and GHOST_NDOFManagerWin32.

Public Member Functions

 GHOST_NDOFManager (GHOST_System &)
 
virtual ~GHOST_NDOFManager ()
 
virtual bool available ()=0
 
bool setDevice (unsigned short vendor_id, unsigned short product_id)
 
void setDeadZone (float)
 
void updateTranslation (const int t[3], GHOST_TUns64 time)
 
void updateRotation (const int r[3], GHOST_TUns64 time)
 
void updateButton (int button_number, bool press, GHOST_TUns64 time)
 
void updateButtons (int button_bits, GHOST_TUns64 time)
 
bool sendMotionEvent ()
 

Protected Attributes

GHOST_Systemm_system
 

Detailed Description

Definition at line 103 of file GHOST_NDOFManager.h.

Constructor & Destructor Documentation

◆ GHOST_NDOFManager()

GHOST_NDOFManager::GHOST_NDOFManager ( GHOST_System sys)

Definition at line 147 of file GHOST_NDOFManager.cpp.

◆ ~GHOST_NDOFManager()

virtual GHOST_NDOFManager::~GHOST_NDOFManager ( )
inlinevirtual

Definition at line 106 of file GHOST_NDOFManager.h.

Member Function Documentation

◆ available()

virtual bool GHOST_NDOFManager::available ( )
pure virtual

◆ sendMotionEvent()

bool GHOST_NDOFManager::sendMotionEvent ( )

◆ setDeadZone()

void GHOST_NDOFManager::setDeadZone ( float  dz)

Definition at line 390 of file GHOST_NDOFManager.cpp.

References GHOST_PRINTF.

◆ setDevice()

bool GHOST_NDOFManager::setDevice ( unsigned short  vendor_id,
unsigned short  product_id 
)

◆ updateButton()

void GHOST_NDOFManager::updateButton ( int  button_number,
bool  press,
GHOST_TUns64  time 
)

◆ updateButtons()

void GHOST_NDOFManager::updateButtons ( int  button_bits,
GHOST_TUns64  time 
)

Definition at line 374 of file GHOST_NDOFManager.cpp.

References KDL::diff(), mask(), time, and updateButton().

Referenced by DeviceEvent().

◆ updateRotation()

void GHOST_NDOFManager::updateRotation ( const int  r[3],
GHOST_TUns64  time 
)

Definition at line 289 of file GHOST_NDOFManager.cpp.

References r, and time.

Referenced by DeviceEvent(), and GHOST_NDOFManagerUnix::processEvents().

◆ updateTranslation()

void GHOST_NDOFManager::updateTranslation ( const int  t[3],
GHOST_TUns64  time 
)

Definition at line 282 of file GHOST_NDOFManager.cpp.

References t, and time.

Referenced by DeviceEvent(), and GHOST_NDOFManagerUnix::processEvents().

Member Data Documentation

◆ m_system

GHOST_System& GHOST_NDOFManager::m_system
protected

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