1SoOrthographicCamera(3IV)()                        SoOrthographicCamera(3IV)()
2
3
4

NAME

6       SoOrthographicCamera — orthographic camera node
7

INHERITS FROM

9       SoBase > SoFieldContainer > SoNode > SoCamera > SoOrthographicCamera
10

SYNOPSIS

12       #include <Inventor/nodes/SoOrthographicCamera.h>
13
14          Fields from class SoOrthographicCamera:
15
16     SoSFFloat           height
17
18          Fields from class SoCamera:
19
20     SoSFEnum            viewportMapping
21     SoSFVec3f           position
22     SoSFRotation        orientation
23     SoSFFloat           aspectRatio
24     SoSFFloat           nearDistance
25     SoSFFloat           farDistance
26     SoSFFloat           focalDistance
27
28          Methods from class SoOrthographicCamera:
29
30                         SoOrthographicCamera()
31     static SoType       getClassTypeId()
32
33          Methods from class SoCamera:
34
35     void                  pointAt(const SbVec3f &targetPoint)
36     virtual void          scaleHeight(float scaleFactor)
37     virtual SbViewVolume  getViewVolume(float useAspectRatio = 0.0) const
38     void                  viewAll(SoNode  *sceneRoot,  const SbViewportRegion
39                                &vpRegion, float slack = 1.0)
40     void                  viewAll(SoPath *path, const SbViewportRegion &vpRe‐
41                                gion, float slack = 1.0)
42     SbViewportRegion      getViewportBounds(const  SbViewportRegion  &region)
43                                const
44
45          Methods from class SoNode:
46
47     void                setOverride(SbBool state)
48     SbBool              isOverride() const
49     SoNode *            copy(SbBool copyConnections = FALSE) const
50     virtual SbBool      affectsState() const
51     static SoNode *     getByName(const SbName &name)
52     static int          getByName(const SbName &name, SoNodeList &list)
53
54          Methods from class SoFieldContainer:
55
56     void                setToDefaults()
57     SbBool              hasDefaultValues() const
58     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
59     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
60                              copyConnections = FALSE)
61     SbBool              set(const char *fieldDataString)
62     void                get(SbString &fieldDataString)
63     virtual int         getFields(SoFieldList &resultList) const
64     virtual SoField *   getField(const SbName &fieldName) const
65     SbBool              getFieldName(const SoField *field, SbName &fieldName)
66                              const
67     SbBool              isNotifyEnabled() const
68     SbBool              enableNotify(SbBool flag)
69
70          Methods from class SoBase:
71
72     void                ref()
73     void                unref() const
74     void                unrefNoDelete() const
75     void                touch()
76     virtual SoType      getTypeId() const
77     SbBool              isOfType(SoType type) const
78     virtual void        setName(const SbName &name)
79     virtual SbName      getName() const
80
81

DESCRIPTION

83       An orthographic camera defines a parallel projection from a  viewpoint.
84       This  camera  does not diminish objects with distance, as an SoPerspec‐
85       tiveCamera does. The viewing volume for an  orthographic  camera  is  a
86       rectangular parallelepiped (a box).
87
88       By  default, the camera is located at (0,0,1) and looks along the nega‐
89       tive z-axis; the position and orientation fields can be used to  change
90       these  values. The height field defines the total height of the viewing
91       volume; this and the aspectRatio field determine its width.
92

FIELDS

94     SoSFFloat           height
95          Height of the viewing volume.
96
97

METHODS

99                         SoOrthographicCamera()
100          Creates an orthographic camera node with default settings.
101
102     static SoType       getClassTypeId()
103          Returns type identifier for this class.
104
105

ACTION BEHAVIOR

107       SoGLRenderAction,  SoCallbackAction,   SoGetBoundingBoxAction,   SoHan‐
108       dleEventAction, SoRayPickAction
109          Sets the viewport and camera information in the state.
110
111

FILE FORMAT/DEFAULTS

113       OrthographicCamera {
114          viewportMapping  ADJUST_CAMERA
115          position         0 0 1
116          orientation      0 0 1  0
117          aspectRatio      1
118          nearDistance     1
119          farDistance      10
120          focalDistance    5
121          height           2
122     }
123

SEE ALSO

125       SbViewVolume, SoPerspectiveCamera
126
127
128
129
130                                                   SoOrthographicCamera(3IV)()
Impressum