29 #ifndef __SPACEBALLSENSOR_H__
30 #define __SPACEBALLSENSOR_H__
58 Inst< SFNode > _metadata = 0,
59 Inst< SFBool > _isActive = 0,
60 Inst< SFVec3f > _motion = 0,
61 Inst< SFVec3f > _rotation = 0,
62 Inst< MFBool > _buttons = 0 );
67 void addGLUTMotionAction(
int x,
int y,
int z );
69 void addGLUTRotateAction(
int x,
int y,
int z );
71 void addGLUTButtonAction(
int button,
int state );
76 static void glutMotionCallback(
int x,
int y,
int z );
80 static void glutRotateCallback(
int x,
int y,
int z );
84 static void glutButtonCallback(
int button,
int state );
106 static list< SpaceballSensor * > instances;
Contains the MFBool field class.
Contains the SFVec3f field class.
Header file for X3DSensorNode, X3D scene-graph node.
A sensor node for reading GLUT Spaceball values.
Definition: SpaceballSensor.h:53
H3DUniquePtr< SFVec3f > rotation
The rotation component of the Spaceball.
Definition: SpaceballSensor.h:94
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: SpaceballSensor.h:103
H3DUniquePtr< MFBool > buttons
The status of the middle button.
Definition: SpaceballSensor.h:99
H3DUniquePtr< SFVec3f > motion
The translation component of the Spaceball.
Definition: SpaceballSensor.h:89
This abstract node type is the base type for all sensors.
Definition: X3DSensorNode.h:40
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194