1 #ifndef COIN_SOHANDLEBOXDRAGGER_H 2 #define COIN_SOHANDLEBOXDRAGGER_H 37 #include <Inventor/tools/SbLazyPimplPtr.h> 38 #include <Inventor/fields/SoSFVec3f.h> 44 class SoHandleBoxDraggerP;
50 SO_KIT_CATALOG_ENTRY_HEADER(arrow1);
51 SO_KIT_CATALOG_ENTRY_HEADER(arrow1Switch);
52 SO_KIT_CATALOG_ENTRY_HEADER(arrow2);
53 SO_KIT_CATALOG_ENTRY_HEADER(arrow2Switch);
54 SO_KIT_CATALOG_ENTRY_HEADER(arrow3);
55 SO_KIT_CATALOG_ENTRY_HEADER(arrow3Switch);
56 SO_KIT_CATALOG_ENTRY_HEADER(arrow4);
57 SO_KIT_CATALOG_ENTRY_HEADER(arrow4Switch);
58 SO_KIT_CATALOG_ENTRY_HEADER(arrow5);
59 SO_KIT_CATALOG_ENTRY_HEADER(arrow5Switch);
60 SO_KIT_CATALOG_ENTRY_HEADER(arrow6);
61 SO_KIT_CATALOG_ENTRY_HEADER(arrow6Switch);
62 SO_KIT_CATALOG_ENTRY_HEADER(arrowTranslation);
63 SO_KIT_CATALOG_ENTRY_HEADER(drawStyle);
64 SO_KIT_CATALOG_ENTRY_HEADER(extruder1);
65 SO_KIT_CATALOG_ENTRY_HEADER(extruder1Active);
66 SO_KIT_CATALOG_ENTRY_HEADER(extruder1Switch);
67 SO_KIT_CATALOG_ENTRY_HEADER(extruder2);
68 SO_KIT_CATALOG_ENTRY_HEADER(extruder2Active);
69 SO_KIT_CATALOG_ENTRY_HEADER(extruder2Switch);
70 SO_KIT_CATALOG_ENTRY_HEADER(extruder3);
71 SO_KIT_CATALOG_ENTRY_HEADER(extruder3Active);
72 SO_KIT_CATALOG_ENTRY_HEADER(extruder3Switch);
73 SO_KIT_CATALOG_ENTRY_HEADER(extruder4);
74 SO_KIT_CATALOG_ENTRY_HEADER(extruder4Active);
75 SO_KIT_CATALOG_ENTRY_HEADER(extruder4Switch);
76 SO_KIT_CATALOG_ENTRY_HEADER(extruder5);
77 SO_KIT_CATALOG_ENTRY_HEADER(extruder5Active);
78 SO_KIT_CATALOG_ENTRY_HEADER(extruder5Switch);
79 SO_KIT_CATALOG_ENTRY_HEADER(extruder6);
80 SO_KIT_CATALOG_ENTRY_HEADER(extruder6Active);
81 SO_KIT_CATALOG_ENTRY_HEADER(extruder6Switch);
82 SO_KIT_CATALOG_ENTRY_HEADER(surroundScale);
83 SO_KIT_CATALOG_ENTRY_HEADER(translator1);
84 SO_KIT_CATALOG_ENTRY_HEADER(translator1Active);
85 SO_KIT_CATALOG_ENTRY_HEADER(translator1Switch);
86 SO_KIT_CATALOG_ENTRY_HEADER(translator2);
87 SO_KIT_CATALOG_ENTRY_HEADER(translator2Active);
88 SO_KIT_CATALOG_ENTRY_HEADER(translator2Switch);
89 SO_KIT_CATALOG_ENTRY_HEADER(translator3);
90 SO_KIT_CATALOG_ENTRY_HEADER(translator3Active);
91 SO_KIT_CATALOG_ENTRY_HEADER(translator3Switch);
92 SO_KIT_CATALOG_ENTRY_HEADER(translator4);
93 SO_KIT_CATALOG_ENTRY_HEADER(translator4Active);
94 SO_KIT_CATALOG_ENTRY_HEADER(translator4Switch);
95 SO_KIT_CATALOG_ENTRY_HEADER(translator5);
96 SO_KIT_CATALOG_ENTRY_HEADER(translator5Active);
97 SO_KIT_CATALOG_ENTRY_HEADER(translator5Switch);
98 SO_KIT_CATALOG_ENTRY_HEADER(translator6);
99 SO_KIT_CATALOG_ENTRY_HEADER(translator6Active);
100 SO_KIT_CATALOG_ENTRY_HEADER(translator6Switch);
101 SO_KIT_CATALOG_ENTRY_HEADER(uniform1);
102 SO_KIT_CATALOG_ENTRY_HEADER(uniform1Active);
103 SO_KIT_CATALOG_ENTRY_HEADER(uniform1Switch);
104 SO_KIT_CATALOG_ENTRY_HEADER(uniform2);
105 SO_KIT_CATALOG_ENTRY_HEADER(uniform2Active);
106 SO_KIT_CATALOG_ENTRY_HEADER(uniform2Switch);
107 SO_KIT_CATALOG_ENTRY_HEADER(uniform3);
108 SO_KIT_CATALOG_ENTRY_HEADER(uniform3Active);
109 SO_KIT_CATALOG_ENTRY_HEADER(uniform3Switch);
110 SO_KIT_CATALOG_ENTRY_HEADER(uniform4);
111 SO_KIT_CATALOG_ENTRY_HEADER(uniform4Active);
112 SO_KIT_CATALOG_ENTRY_HEADER(uniform4Switch);
113 SO_KIT_CATALOG_ENTRY_HEADER(uniform5);
114 SO_KIT_CATALOG_ENTRY_HEADER(uniform5Active);
115 SO_KIT_CATALOG_ENTRY_HEADER(uniform5Switch);
116 SO_KIT_CATALOG_ENTRY_HEADER(uniform6);
117 SO_KIT_CATALOG_ENTRY_HEADER(uniform6Active);
118 SO_KIT_CATALOG_ENTRY_HEADER(uniform6Switch);
119 SO_KIT_CATALOG_ENTRY_HEADER(uniform7);
120 SO_KIT_CATALOG_ENTRY_HEADER(uniform7Active);
121 SO_KIT_CATALOG_ENTRY_HEADER(uniform7Switch);
122 SO_KIT_CATALOG_ENTRY_HEADER(uniform8);
123 SO_KIT_CATALOG_ENTRY_HEADER(uniform8Active);
124 SO_KIT_CATALOG_ENTRY_HEADER(uniform8Switch);
138 static void startCB(
void * f,
SoDragger * d);
139 static void motionCB(
void * f,
SoDragger * d);
140 static void finishCB(
void * f,
SoDragger * d);
141 static void metaKeyChangeCB(
void * f,
SoDragger * d);
143 static void valueChangedCB(
void * f,
SoDragger * d);
145 void dragStart(
void);
147 void dragFinish(
void);
148 void setAllPartsActive(SbBool onoroff);
154 void updateSwitches();
156 SoNode *getNodeFieldNode(
const char *fieldname);
171 SbLazyPimplPtr<SoHandleBoxDraggerP> pimpl;
178 #endif // !COIN_SOHANDLEBOXDRAGGER_H SoFieldSensor * translFieldSensor
Definition: SoHandleBoxDragger.h:150
static void fieldSensorCB(void *, SoSensor *)
Definition: SoInteractionKit.cpp:751
SoSFVec3f scaleFactor
Definition: SoHandleBoxDragger.h:130
The SoHandleBoxDragger class provides support for interactive scaling and translation.Here's how the dragger looks with its default geometry in the inactive state:
Definition: SoHandleBoxDragger.h:46
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:56
The SoInteractionKit class is a base class for draggers.This nodekit class makes it possible to set s...
Definition: SoInteractionKit.h:50
The SoDragger class is the base class for all draggers.Draggers is a mechanism used for letting the e...
Definition: SoDragger.h:64
The SoSensor class is the abstract base class for all sensors.Sensors is a mechanism in Coin for sche...
Definition: SoSensor.h:43
static void initClass(void)
Definition: SoDragger.cpp:407
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:51
SoFieldSensor * scaleFieldSensor
Definition: SoHandleBoxDragger.h:151
The SoFieldSensor class detects changes to a field.Attach a field to a sensor of this type to put it ...
Definition: SoFieldSensor.h:38
The SbMatrix class is a 4x4 dimensional representation of a matrix.SbMatrix is used by many other cla...
Definition: SbMatrix.h:46
The SbPlaneProjector class projects 2D points to 3D points in a plane.The 3D projection of the 2D coo...
Definition: SbPlaneProjector.h:40
The SoSFVec3f class is a container for an SbVec3f vector.This field is used where nodes...
Definition: SoSFVec3f.h:40
SoSFVec3f translation
Definition: SoHandleBoxDragger.h:131
The SbLineProjector class projects 2D points to 3D points along a line.The 3D projection of the 2D co...
Definition: SbLineProjector.h:41
virtual SbBool setUpConnections(SbBool onoff, SbBool doitalways=FALSE)
Definition: SoInteractionKit.cpp:674
virtual void setDefaultOnNonWritingFields(void)
Definition: SoDragger.cpp:1807