Debian Codegraph @

doc/man/man3/ivm/nodes/SoCube.ivm

raw
1 NAME SoCube "" "" { cube shape node }
2
3 INCLUDE nodes/SoCube.h
4
5 DESC {
6
7 This node represents a cuboid aligned with the coordinate axes. By
8 default, the cube is centered at (0,0,0) and measures 2 units in each
9 dimension, from -1 to +1. The cube is transformed by the current
10 cumulative transformation and is drawn with the current lighting
11 model, drawing style, material, and geometric complexity.
12 \p
13 If the current material binding is \kPER_PART\., \kPER_PART_INDEXED\.,
14 \kPER_FACE\., or \kPER_FACE_INDEXED\., materials will be bound to the
15 faces of the cube in this order: front, back, left, right, top, and
16 bottom.
17 \p
18 Textures are applied individually to each face of the cube; the entire
19 texture goes on each face. On the front, back, right, and left sides
20 of the cube, the texture is applied right side up. On the top, the
21 texture appears right side up when the top of the cube is tilted
22 toward the camera. On the bottom, the texture appears right side up
23 when the top of the cube is tilted away from the camera.
24 }
25
26 FIELD width {}
27 FIELD height {}
28 FIELD depth { Sizes in the x, y, and z dimensions, respectively. }
29
30 METHOD "" SoCube() {
31 Creates a cube node with default settings.
32 }
33
34 METHOD "" static SoType getClassTypeId() {
35 Returns type identifier for this class.
36 }
37
38 ACTION SoGLRenderAction {
39 Draws cube based on the current coordinates, materials,
40 drawing style, and so on.
41 }
42
43 ACTION SoRayPickAction {
44 Intersects the ray with the cube. The face of the cube that was picked
45 is available from the \cSoCubeDetail\..
46 }
47
48 ACTION SoGetBoundingBoxAction {
49 Computes the bounding box that encloses the cube.
50 }
51
52 ACTION SoCallbackAction {
53 If any triangle callbacks are registered with the action, they will
54 be invoked for each successive triangle that approximates the cube.
55 }
56
57 ALSO {
58 SoCone,
59 SoCubeDetail,
60 SoCylinder,
61 SoSphere
62 }