File: SoUnits.ivm

package info (click to toggle)
inventor 2.1.5-10-14
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 32,892 kB
  • ctags: 21,729
  • sloc: ansic: 33,867; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 76; csh: 35; sed: 11
file content (54 lines) | stat: -rw-r--r-- 1,544 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
NAME SoUnits SoUnits SO_UNITS_ { node that scales to convert units of length }

INCLUDE nodes/SoUnits.h

DESC {
This node defines a uniform 3D scale about the origin relative to the
previously defined units. The default units for all data are meters.
Adding a units node with the value \kINCHES\. will have the same
effect as adding an \cSoScale\. node with the \vscaleFactor\. of
(.0254, .0254, .0254). Any subsequent \cSoUnits\. node will take the
previous units into account. When building a composite object out of
a bunch of pieces, it would be a good practice to add an \cSoUnits\.
node at the beginning of each of the pieces, under an \cSoSeparator\.
node, to make sure all the pieces fit together with the same scale.
}

ENUM Units {
    METERS		"",
    CENTIMETERS		"",
    MILLIMETERS		"",
    MICROMETERS		"",
    MICRONS		"",
    NANOMETERS		"",
    ANGSTROMS		"",
    KILOMETERS		"",
    FEET		"",
    INCHES		"",
    POINTS		"",
    YARDS		"",
    MILES		"",
    NAUTICAL_MILES	""
}

FIELD units { Defines the current unit. }

METHOD "" SoUnits() {
Creates a unit conversion node with default settings.
}

METHOD "" static SoType getClassTypeId() {
Returns type identifier for this class.
}

ACTION SoGLRenderAction, SoCallbackAction,
       SoGetBoundingBoxAction, SoRayPickAction {
Accumulates the scale that is the ratio of the size from the previous
unit to the current unit into the current transformation.
}

ACTION SoGetMatrixAction {
Returns the matrix corresponding to the units scaling.
}

ALSO { SoScale, SoTransform }