Debian Codegraph @

doc/man/man3/ivm/nodes/SoCylinder.ivm

raw
1 NAME SoCylinder SoCyl SO_CYL_ { cylinder shape node }
2
3 INCLUDE nodes/SoCylinder.h
4
5 DESC {
6
7 This node represents a simple capped cylinder centered around the
8 y-axis. By default, the cylinder is centered at (0,0,0) and has a
9 default size of -1 to +1 in all three dimensions. You can use the
10 \cradius\. and \cheight\. fields to create a cylinder with a different
11 size.
12 \p
13 The cylinder is transformed by the current cumulative transformation
14 and is drawn with the current lighting model, drawing style, material,
15 and geometric complexity.
16 \p
17 If the current material binding is \kPER_PART\. or
18 \kPER_PART_INDEXED\., the first current material is used for the sides
19 of the cylinder, the second is used for the top, and the third is used
20 for the bottom. Otherwise, the first material is used for the entire
21 cylinder.
22 \p
23 When a texture is applied to a cylinder, it is applied differently to
24 the sides, top, and bottom. On the sides, the texture wraps
25 counterclockwise (from above) starting at the back of the
26 cylinder. The texture has a vertical seam at the back, intersecting
27 the yz-plane. For the top and bottom, a circle is cut out of the
28 texture square and applied to the top or bottom circle. The top
29 texture appears right side up when the top of the cylinder is tilted
30 toward the camera, and the bottom texture appears right side up when
31 the top of the cylinder is tilted away from the camera.
32 }
33
34 ENUM Part {
35 SIDES "The cylindrical part",
36 TOP "The top circular face",
37 BOTTOM "The bottom circular face",
38 ALL "All parts"
39 }
40
41 FIELD parts { Visible parts of cylinder. }
42
43 FIELD radius {}
44 FIELD height {
45 Define the cylinder's height and radius; values must be greater than
46 0.0.
47 }
48
49 METHOD "" SoCylinder() {
50 Creates a cylinder node with default settings.
51 }
52
53 BEGIN C++
54 METHOD "" void addPart(SoCylinder::Part part) {}
55 METHOD "" void removePart(SoCylinder::Part part) {
56 These are convenience functions that make it easy to turn on or off a
57 part of the cylinder.
58 }
59 METHOD "" SbBool hasPart(SoCylinder::Part part) const {
60 This convenience function returns whether a given part is on or off.
61 }
62 END
63
64 BEGIN C
65 METHOD "" void addPart(SoCylPart part) {}
66 METHOD "" void removePart(SoCylPart part) {
67 These are convenience functions that make it easy to turn on or off a
68 part of the cylinder.
69 }
70 METHOD "" SbBool hasPart(SoCylPart part) const {
71 This convenience function returns whether a given part is on or off.
72 }
73 END
74
75 METHOD "" static SoType getClassTypeId() {
76 Returns type identifier for this class.
77 }
78
79 ACTION SoGLRenderAction {
80 Draws cylinder based on the current coordinates, materials,
81 drawing style, and so on.
82 }
83
84 ACTION SoRayPickAction {
85 Intersects the ray with the cylinder. The part of the cylinder that
86 was picked is available from the \cSoCylinderDetail\..
87 }
88
89 ACTION SoGetBoundingBoxAction {
90 Computes the bounding box that encloses the cylinder.
91 }
92
93 ACTION SoCallbackAction {
94 If any triangle callbacks are registered with the action, they will
95 be invoked for each successive triangle that approximates the cylinder.
96 }
97
98 ALSO {
99 SoCone,
100 SoCube,
101 SoCylinderDetail,
102 SoSphere
103 }