Debian Codegraph @

doc/man/man3/ivm/nodes/SoLOD.ivm

raw
1 NAME SoLOD SoLOD "" {
2 distance-based level-of-detail switching group node
3 }
4
5 INCLUDE nodes/SoLOD.h
6
7 DESC {
8 This group node is used to allow applications to switch between
9 various representations of objects automatically. The children of this
10 node typically represent the same object or objects at varying levels
11 of detail, from highest detail to lowest.
12 The distance from the world-space
13 eye point to the transformed center of the LOD is computed, and one
14 child is drawn, based on the values in the ranges field.
15 \p
16 More precisely, if the distance from the world-space eyepoint to the
17 transformed center is D and the ranges array contains LAST_RANGE+1
18 values (numbered 0...LAST_RANGE), then:
19 \p
20 \b
21 if D < ranges[0] : Child 0 is drawn
22 else if ranges[i-1] < D < ranges[i] : Child i is drawn
23 else if D > ranges[LAST_RANGE] : Child LAST_RANGE+1 is drawn
24 \.
25 \p
26 Thus, N ranges and N+1 children should be specified. If you specify
27 too few children, the last child will be used for the extra
28 ranges. If you specify too few ranges, the extra children will
29 never be used.
30 \p
31 It is often useful to define the lowest detail child to be an SoInfo
32 node. This causes the object to completely disappear if it is far enough
33 away from the eyepoint. Defining the highest detail child to be an
34 SoInfo node can also be useful if you want the object to disappear if
35 it gets too close to the eyepoint.
36 }
37
38 FIELD range { World-space distances to use as switching criteria. }
39 FIELD center { Object-space center of the model. }
40
41 METHOD "" SoLOD() {
42 Creates a distance-based level-of-detail node with default settings.
43 }
44
45 METHOD "" static SoType getClassTypeId() {
46 Returns type identifier for this class.
47 }
48
49 ACTION SoGLRenderAction, SoRayPickAction, SoCallbackAction {
50 Only the child with the appropriate level of detail is traversed.
51 }
52
53 ACTION others {
54 All implemented as for \cSoGroup\..
55 }
56
57 ALSO { SoSwitch, SoGroup }