1SoCube(3IV)() SoCube(3IV)()
2
3
4
6 SoCube — cube shape node
7
9 SoBase > SoFieldContainer > SoNode > SoShape > SoCube
10
12 #include <Inventor/nodes/SoCube.h>
13
14 Fields from class SoCube:
15
16 SoSFFloat width
17 SoSFFloat height
18 SoSFFloat depth
19
20 Methods from class SoCube:
21
22 SoCube()
23 static SoType getClassTypeId()
24
25 Methods from class SoNode:
26
27 void setOverride(SbBool state)
28 SbBool isOverride() const
29 SoNode * copy(SbBool copyConnections = FALSE) const
30 virtual SbBool affectsState() const
31 static SoNode * getByName(const SbName &name)
32 static int getByName(const SbName &name, SoNodeList &list)
33
34 Methods from class SoFieldContainer:
35
36 void setToDefaults()
37 SbBool hasDefaultValues() const
38 SbBool fieldsAreEqual(const SoFieldContainer *fc) const
39 void copyFieldValues(const SoFieldContainer *fc, SbBool
40 copyConnections = FALSE)
41 SbBool set(const char *fieldDataString)
42 void get(SbString &fieldDataString)
43 virtual int getFields(SoFieldList &resultList) const
44 virtual SoField * getField(const SbName &fieldName) const
45 SbBool getFieldName(const SoField *field, SbName &fieldName)
46 const
47 SbBool isNotifyEnabled() const
48 SbBool enableNotify(SbBool flag)
49
50 Methods from class SoBase:
51
52 void ref()
53 void unref() const
54 void unrefNoDelete() const
55 void touch()
56 virtual SoType getTypeId() const
57 SbBool isOfType(SoType type) const
58 virtual void setName(const SbName &name)
59 virtual SbName getName() const
60
61
63 This node represents a cuboid aligned with the coordinate axes. By
64 default, the cube is centered at (0,0,0) and measures 2 units in each
65 dimension, from -1 to +1. The cube is transformed by the current cumu‐
66 lative transformation and is drawn with the current lighting model,
67 drawing style, material, and geometric complexity.
68
69 If the current material binding is PER_PART, PER_PART_INDEXED,
70 PER_FACE, or PER_FACE_INDEXED, materials will be bound to the faces of
71 the cube in this order: front, back, left, right, top, and bottom.
72
73 Textures are applied individually to each face of the cube; the entire
74 texture goes on each face. On the front, back, right, and left sides of
75 the cube, the texture is applied right side up. On the top, the texture
76 appears right side up when the top of the cube is tilted toward the
77 camera. On the bottom, the texture appears right side up when the top
78 of the cube is tilted away from the camera.
79
81 SoSFFloat width
82 SoSFFloat height
83 SoSFFloat depth
84 Sizes in the x, y, and z dimensions, respectively.
85
86
88 SoCube()
89 Creates a cube node with default settings.
90
91 static SoType getClassTypeId()
92 Returns type identifier for this class.
93
94
96 SoGLRenderAction
97 Draws cube based on the current coordinates, materials, drawing
98 style, and so on.
99
100 SoRayPickAction
101 Intersects the ray with the cube. The face of the cube that was
102 picked is available from the SoCubeDetail.
103
104 SoGetBoundingBoxAction
105 Computes the bounding box that encloses the cube.
106
107 SoCallbackAction
108 If any triangle callbacks are registered with the action, they will
109 be invoked for each successive triangle that approximates the cube.
110
111
113 Cube {
114 width 2
115 height 2
116 depth 2
117 }
118
120 SoCone, SoCubeDetail, SoCylinder, SoSphere
121
122
123
124
125 SoCube(3IV)()