Debian Codegraph @

doc/man/man3/ivm/nodekits/SoInteractionKit.ivm

raw
1 NAME SoInteractionKit SoInteractKit SO_INTERACT_KIT_ { base class for all interaction nodekit classes }
2
3 INCLUDE nodekits/SoInteractionKit.h
4
5 DESC {
6 This is the base class for all classes of interaction nodekits. Currently,
7 the only subclass is \cSoDragger\., which reacts to click-drag-release
8 events from the mouse.
9 \p
10 This node has four fields corresponding to those of an
11 \cSoSeparator\.: They are \vrenderCaching\., \vboundingBoxCaching\.,
12 \vrenderCulling\., and \vpickCulling\.. They behave the same here as they
13 do for an \cSoSeparator\.
14 \p
15 The
16 \+\msetPartAsPath()\. method\.\-\mSoInteractKitSetPartAsPath()\. function\.
17 provides support for creating "stand-in" objects for parts in the interaction
18 kit. The "stand-in", or "surrogate" part, is a path to an object that lies
19 somewhere else in the scene graph.
20 }
21
22
23 METHOD "" SoInteractionKit() { Constructor. }
24
25 METHOD "" virtual SbBool setPartAsPath( const SbName &partName,
26 SoPath *surrogatePath ) {
27 Sets any public part in the interaction kit as a
28 "surrogate" path instead. The object at the end of the path serves as
29 a stand-in when a pick occurs, and can thus initiate interaction.
30 \p
31 Instead of the usual \m\+setPart()\.\-SoInteractKitSetPart()\.\., which
32 replaces \apartName\. with a new node, this will
33 remove the node being used for \apartName\. from the scene and remember the
34 \asurrogatePath\. you give it. Later, any pick on \asurrogatePath\. will
35 be regarded as a pick on \apartName\..
36 \p
37 For example, set the \eXRotator\. part of an \cSoTrackballDragger\.
38 to be the path to an object in the scene. The rest of the
39 trackball will look the same, but the \eXRotator\. stripe will disappear.
40 However, click the mouse on the object at the end of \asurrogatePath\. and the
41 ball will start to drag in rotation around its X axis.
42 \p
43 Note that this is different from setting the part to be the node at the end
44 of the path. When you set the part as a node, a second instance will be
45 drawn in the local space of the interaction kit. When you set it as a path,
46 the object itself is used, not a copy.
47 \p
48 The \apartName\. may be any part name that follows the nodekit syntax for
49 parts, such as \achildList[0].shape\. or \arotator.rotatorActive\..
50 (See the \+\mgetPart()\. method\.\-\mSoKitGetPart()\. function\. in the
51 \cSoBaseKit\. reference page for a complete description.)
52 }
53
54 METHOD getClassNkitCat static
55 const SoNodekitCatalog *getClassNodekitCatalog() const
56 { Returns an \cSoNodekitCatalog\. for the class \cSoInteractionKit\.. }
57
58 METHOD "" static SoType getClassTypeId() {
59 Returns type identifier for this class.
60 }
61
62
63 ENUM CacheEnabled {
64 OFF "Never build or use a cache",
65 ON "Always try to build a cache",
66 AUTO "Automatic caching"
67 }
68
69
70 FIELD renderCaching { Set render caching mode. Default is \kAUTO\.. }
71
72
73 FIELD boundingBoxCaching { Set bounding box caching mode.
74 Default is \kON\.. Setting this value to \kAUTO\. is equivalent
75 to \kON\ - automatic culling is not implemented. }
76
77
78 FIELD renderCulling { Set render culling mode. Default is \kOFF\..
79 Setting this value to \kAUTO\. is equivalent to \kON\ -
80 automatic culling is not implemented. }
81
82
83 FIELD pickCulling { Set pick caching mode. Default is \kAUTO\.. }
84
85
86 ALSO {
87 SoBaseKit,
88 SoInteraction,
89 SoNodeKitDetail,
90 SoNodeKitPath,
91 SoNodekitCatalog,
92 SoDragger,
93 SoCenterballDragger,
94 SoDirectionalLightDragger,
95 SoDragPointDragger,
96 SoHandleBoxDragger,
97 SoJackDragger,
98 SoPointLightDragger,
99 SoRotateCylindricalDragger,
100 SoRotateDiscDragger,
101 SoRotateSphericalDragger,
102 SoScale1Dragger,
103 SoScale2Dragger,
104 SoScale2UniformDragger,
105 SoScaleUniformDragger,
106 SoSpotLightDragger,
107 SoTabBoxDragger,
108 SoTabPlaneDragger,
109 SoTrackballDragger,
110 SoTransformBoxDragger,
111 SoTranslate1Dragger,
112 SoTranslate2Dragger
113 }