Debian Codegraph @

doc/man/man3/ivm/nodes/SoComplexity.ivm

raw
1 NAME SoComplexity SoCmplx SO_CMPLX_ { shape complexity node }
2
3 INCLUDE nodes/SoComplexity.h
4
5 DESC {
6 This node sets the current shape complexity value. This is a heuristic
7 value which provides a hint at what geometric complexity to render
8 shape nodes. Values range from 0 to 1, where 0 means minimum
9 complexity and 1 means maximum complexity. Each shape node interprets
10 complexity in its own way.
11 \p
12 Shape complexity always affects rendering and primitive generation for
13 the \cSoCallbackAction\.. For some shapes, it also affects picking.
14 \p
15 There are three ways to interpret shape complexity, depending on the
16 \vtype\. field. \kBOUNDING_BOX\. complexity ignores the \vvalue\.
17 field and renders all shapes as bounding boxes, using the current
18 material, drawing style, etc. The other two types use the \vvalue\.
19 field to determine the tessellation of shapes into polygons.
20 \kOBJECT_SPACE\. complexity uses \vvalue\. directly to determine the
21 tessellation. \kSCREEN_SPACE\. complexity depends on \vvalue\. and the
22 projected size of the shape on the screen; a \vvalue\. of 0 produces
23 the minimum tessellation for a shape, and a \vvalue\. of 1 produces a
24 tessellation that is fine enough that each edge of a polygon is about 1
25 or two pixels in length. Since the projected size depends on the
26 camera position, objects may be tessellated differently every frame if
27 the camera is moving; note that this may have adverse effects on
28 render caching in \cSoSeparator\. nodes.
29 \p
30 The \cSoComplexity\. node also sets a hint for the quality of textures
31 applied to shapes, based on the value of the \vtextureQuality\. field.
32 The texture quality will take effect at the next Texture2 node;
33 Texture2 nodes previously traversed will not be affected.
34 }
35
36 ENUM Type {
37 SCREEN_SPACE "Set complexity based on screen size",
38 OBJECT_SPACE "Set complexity independent of screen size",
39 BOUNDING_BOX "Draw all shapes as bounding boxes"
40 }
41
42 FIELD type { How shape complexity is interpreted. }
43
44 FIELD value { Complexity value. }
45
46 FIELD textureQuality {
47 Hint about texture quality. A value of 0 indicates that the fastest
48 texturing should be used, while a value of 1 indicates that the best
49 quality texturing should be used.
50 }
51
52 METHOD "" SoComplexity() {
53 Creates a complexity node with default settings.
54 }
55
56 METHOD "" static SoType getClassTypeId() {
57 Returns type identifier for this class.
58 }
59
60 ACTION SoGLRenderAction, SoCallbackAction,
61 SoGetBoundingBoxAction, SoRayPickAction {
62 Sets the current complexity in the state.
63 }
64
65 ALSO { SoShape, SoShapeHints, SoTexture2 }