Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SVTK_SpaceMouseXCB Class Reference

#include <SVTK_SpaceMouse.h>

Inheritance diagram for SVTK_SpaceMouseXCB:
Inheritance graph

Public Member Functions

 SVTK_SpaceMouseXCB ()
 
int initialize (xcb_connection_t *, xcb_window_t)
 
int setWindow (xcb_connection_t *, xcb_window_t)
 
int translateEvent (xcb_connection_t *, xcb_client_message_event_t *, MoveEvent *, double, double)
 
int close (xcb_connection_t *)
 
- Public Member Functions inherited from SVTK_SpaceMouse
bool isSpaceMouseOn () const
 
 SVTK_SpaceMouse ()
 

Static Public Member Functions

static SVTK_SpaceMouseXCBgetInstance ()
 

Private Attributes

xcb_atom_t XCBMotionEvent
 
xcb_atom_t XCBButtonPressEvent
 
xcb_atom_t XCBButtonReleaseEvent
 
xcb_window_t win
 

Static Private Attributes

static SVTK_SpaceMouseXCBmyInstance = 0
 

Additional Inherited Members

- Public Types inherited from SVTK_SpaceMouse
enum  MoveData {
  x, y, z, a,
  b, c
}
 
enum  EventType { SpaceMouseMove = 1, SpaceButtonPress, SpaceButtonRelease }
 
- Protected Attributes inherited from SVTK_SpaceMouse
int spaceMouseOn
 

Constructor & Destructor Documentation

SVTK_SpaceMouseXCB::SVTK_SpaceMouseXCB ( )

Constructor

References win.

Member Function Documentation

int SVTK_SpaceMouseXCB::close ( xcb_connection_t *  connection)
SVTK_SpaceMouseXCB * SVTK_SpaceMouseXCB::getInstance ( )
static
Returns
shared instance of object (creates if there is no one)

References myInstance, and SVTK_SpaceMouseXCB().

int SVTK_SpaceMouseXCB::initialize ( xcb_connection_t *  connection,
xcb_window_t  window 
)
int SVTK_SpaceMouseXCB::setWindow ( xcb_connection_t *  connection,
xcb_window_t  window 
)

Initialize by window

References win.

Member Data Documentation

SVTK_SpaceMouseXCB * SVTK_SpaceMouseXCB::myInstance = 0
staticprivate
xcb_window_t SVTK_SpaceMouseXCB::win
private
xcb_atom_t SVTK_SpaceMouseXCB::XCBButtonPressEvent
private
xcb_atom_t SVTK_SpaceMouseXCB::XCBButtonReleaseEvent
private
xcb_atom_t SVTK_SpaceMouseXCB::XCBMotionEvent
private

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