1 #ifndef COIN_SOCAMERA_H 2 #define COIN_SOCAMERA_H 36 #include <Inventor/nodes/SoSubNode.h> 37 #include <Inventor/SbViewportRegion.h> 38 #include <Inventor/SbViewVolume.h> 39 #include <Inventor/fields/SoSFRotation.h> 40 #include <Inventor/fields/SoSFEnum.h> 41 #include <Inventor/fields/SoSFVec3f.h> 42 #include <Inventor/fields/SoSFFloat.h> 44 #include <Inventor/SbVec3f.h> 45 #include <Inventor/SbMatrix.h> 46 #include <Inventor/SbBox3f.h> 48 #define SO_ASPECT_SQUARE 1.0f 49 #define SO_ASPECT_VIDEO (4.0f/3.0f) 50 #define SO_ASPECT_35mm_ACADEMY 1.371 51 #define SO_ASPECT_16mm 1.369 52 #define SO_ASPECT_35mm_FULL 1.33333 53 #define SO_ASPECT_70mm 2.287 54 #define SO_ASPECT_CINEMASCOPE 2.35 55 #define SO_ASPECT_HDTV (16.0f/9.0f) 56 #define SO_ASPECT_PANAVISION 2.361 57 #define SO_ASPECT_35mm (3.0f/2.0f) 58 #define SO_ASPECT_VISTAVISION 2.301 70 static void initClass(
void);
73 CROP_VIEWPORT_FILL_FRAME,
74 CROP_VIEWPORT_LINE_FRAME,
75 CROP_VIEWPORT_NO_FRAME,
92 void pointAt(
const SbVec3f & targetpoint);
93 void pointAt(
const SbVec3f & targetpoint,
const SbVec3f & upvector);
94 virtual void scaleHeight(
float scalefactor) = 0;
95 virtual SbViewVolume getViewVolume(
float useaspectratio = 0.0f)
const = 0;
97 const float slack = 1.0f);
99 const float slack = 1.0f);
111 void setStereoAdjustment(
float adjustment);
112 float getStereoAdjustment(
void)
const;
113 void setBalanceAdjustment(
float adjustment);
114 float getBalanceAdjustment(
void)
const;
124 virtual void viewBoundingBox(
const SbBox3f & box,
float aspect,
130 virtual void jitter(
int numpasses,
int curpass,
137 const SbBool considermodelmatrix = TRUE);
140 const int viewportmapping,
147 float stereoadjustment;
148 float balanceadjustment;
151 friend class SoCameraP;
154 #endif // !COIN_SOCAMERA_H The SoBase class is the top-level superclass for a number of class-hierarchies.SoBase provides the ba...
Definition: SoBase.h:45
The SoRayPickAction class does ray intersection with scene graphs.For interaction with the scene grap...
Definition: SoRayPickAction.h:50
Definition: SoCamera.h:103
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
Definition: SoNode.cpp:880
SoSFFloat nearDistance
Definition: SoCamera.h:84
ViewportMapping
Definition: SoCamera.h:72
The SoCamera class is the abstract base class for camera definition nodes.To be able to view a scene...
Definition: SoCamera.h:64
The SoSFRotation class is a container for an SbRotation.This field is used where nodes, engines or other field containers needs to store a single rotation definition.
Definition: SoSFRotation.h:40
Definition: SoCamera.h:104
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.This box abstraction class ...
Definition: SbBox3f.h:46
StereoMode
Definition: SoCamera.h:102
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:56
SoSFRotation orientation
Definition: SoCamera.h:82
The SoSFEnum class is a container for an enum value.This field is used where nodes, engines or other field containers needs to store one particular value out of an enumerated set.
Definition: SoSFEnum.h:40
SoSFFloat aspectRatio
Definition: SoCamera.h:83
SoSFVec3f position
Definition: SoCamera.h:81
SoSFFloat focalDistance
Definition: SoCamera.h:86
virtual void rayPick(SoRayPickAction *action)
Definition: SoNode.cpp:1125
virtual void audioRender(SoAudioRenderAction *action)
Definition: SoNode.cpp:1293
The SoPath class is a container class for traversal path descriptions.SoPath objects contain a list o...
Definition: SoPath.h:52
The SoAudioRenderAction class renders the aural parts of the scene graph.Applying this method at a ro...
Definition: SoAudioRenderAction.h:42
The SoAction class is the base class for all traversal actions.Applying actions is the basic mechanis...
Definition: SoAction.h:77
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:51
SoSFFloat farDistance
Definition: SoCamera.h:85
virtual void doAction(SoAction *action)
Definition: SoNode.cpp:795
The SbMatrix class is a 4x4 dimensional representation of a matrix.SbMatrix is used by many other cla...
Definition: SbMatrix.h:46
The SoHandleEventAction class distributes user events to the scene.This is the action used by the GUI...
Definition: SoHandleEventAction.h:46
The SoGetPrimitiveCountAction class counts the primitives in a scene.Apply this action to a scene if ...
Definition: SoGetPrimitiveCountAction.h:44
The SoGetBoundingBoxAction class calculates bounding boxes for nodes and subgraphs.If this action is applied to a path or scene graph root, it will calculate the bounding box and the center point of the geometry contained within the scene.
Definition: SoGetBoundingBoxAction.h:45
static SbMatrix identity(void)
Definition: SbMatrix.cpp:847
The SbViewVolume class is a viewing volume in 3D space.This class contains the necessary information ...
Definition: SbViewVolume.h:50
The SoCallbackAction class invokes callbacks at specific nodes.This action has mechanisms for trackin...
Definition: SoCallbackAction.h:80
SoSFEnum viewportMapping
Definition: SoCamera.h:80
The SoSFFloat class is a container for a floating point value.This field is used where nodes...
Definition: SoSFFloat.h:39
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
Definition: SoNode.cpp:851
The SoSFVec3f class is a container for an SbVec3f vector.This field is used where nodes...
Definition: SoSFVec3f.h:40
The SbViewportRegion class is a viewport within a full window.The SbViewportRegion class contains inf...
Definition: SbViewportRegion.h:40
virtual void GLRender(SoGLRenderAction *action)
Definition: SoNode.cpp:940
virtual void callback(SoCallbackAction *action)
Definition: SoNode.cpp:1012
virtual void handleEvent(SoHandleEventAction *action)
Definition: SoNode.cpp:1069
#define SO_NODE_ABSTRACT_HEADER(classname)
The SoGLRenderAction class renders the scene graph with OpenGL calls.Applying this method at a root n...
Definition: SoGLRenderAction.h:50