53#include <Inventor/SbBox.h>
54#include <Inventor/SbViewportRegion.h>
55#include <Inventor/nodes/SoNode.h>
56#include <Inventor/fields/SoSFFloat.h>
57#include <Inventor/fields/SoSFRotation.h>
58#include <Inventor/fields/SoSFVec3f.h>
59#include <Inventor/fields/SoSFEnum.h>
60#include <Inventor/SbPImpl.h>
64#pragma warning(disable:4251)
547 virtual void doAction(
SoAction *action);
556 static void initClass();
557 static void exitClass();
560 static void setPostCallback( SoCameraCB *f ) ;
569 void setLightCamera(
bool flag);
572 bool isLightCamera()
const;
588 virtual float getEyeOffset(
SoState* state = NULL );
589 virtual void updateStereoAdjustments(
SoState* state = NULL );
598 virtual void viewBoundingBox(
const SbBox3f &box,
float aspect,
float slack) = 0;
608 void commonConstructor();
616#define SO_ASPECT_SQUARE 1.00
617#define SO_ASPECT_VIDEO 1.333333333
618#define SO_ASPECT_35mm_ACADEMY 1.371
619#define SO_ASPECT_16mm 1.369
620#define SO_ASPECT_35mm_FULL 1.33333
621#define SO_ASPECT_70mm 2.287
622#define SO_ASPECT_CINEMASCOPE 2.35
623#define SO_ASPECT_HDTV 1.777777777
624#define SO_ASPECT_PANAVISION 2.361
625#define SO_ASPECT_35mm 1.5
626#define SO_ASPECT_VISTAVISION 2.301
Class for representing a rotation.
Class for representing a viewport.
Abstract base class for all actions.
Performs a generic traversal of a scene graph or path.
Abstract base class for camera nodes.
virtual void scaleHeight(float scaleFactor)=0
Scales the height of the camera.
SoSFVec3f position
The location of the camera viewpoint.
virtual SoDEPRECATED void allowStereo(SbBool)
Allows the camera to render in stereo.
SoSFRotation orientation
The orientation of the camera viewpoint, defined as a rotation of the viewing direction from its defa...
void setStereoMode(StereoMode mode)
Sets the stereo mode.
SbViewportRegion getViewportBounds(const SbViewportRegion ®ion) const
Returns the viewport region this camera would use to render into the given viewport region,...
SoSFFloat farDistance
The distance from the camera viewpoint to the far clipping plane.
SoSFFloat aspectRatio
The ratio of camera viewing width to height.
ViewportMapping
Viewport mapping.
@ CROP_VIEWPORT_LINE_FRAME
Crops the viewport, but draws a thin frame around the viewport.
@ CROP_VIEWPORT_NO_FRAME
Crops the viewport, but gives no visual feedback as to the viewport dimensions within the window.
@ CROP_VIEWPORT_FILL_FRAME
Crops the viewport within the current window, so that the aspect ratio matches that of the camera.
@ ADJUST_CAMERA
Adjusts the camera aspect ratio and height to make it fit within the given window.
SoSFFloat focalDistance
The distance from the viewpoint to the point of focus.
virtual SbViewVolume getViewVolume(float aspectRatio, float nearDist, float farDist, SbVec3f position, SbRotation rotation) const =0
Computes a view volume from the given parameters.
virtual SoDEPRECATED void setStereoAbsoluteAdjustments(SbBool absolute)
Specifies if stereo adjustments are absolute.
void viewAll(const SbBox3f &bbox, const SbViewportRegion &vpRegion)
Sets the camera to view the region defined by the given bounding box.
virtual SoDEPRECATED void setStereoAdjustment(float adjustment)
Sets the stereo offset (the distance of each eye from the camera position).
virtual SoDEPRECATED void setBalanceAdjustment(float adjustment, SbBool nearFrac=false)
Sets the stereo balance (the position of the zero parallax plane) and specifies whether the balance v...
void viewAll(SoNode *sceneRoot, const SbViewportRegion &vpRegion, float slack=1.0)
Sets the camera to view the scene rooted by the given node.
void viewAll(SoPath *path, const SbViewportRegion &vpRegion, float slack=1.0)
Sets the camera to view the scene defined by the given path.
SoSFFloat nearDistance
The distance from the camera viewpoint to the near clipping plane.
SoDEPRECATED SbBool isBalanceAdjustmentNearFrac() const
Returns TRUE if the stereo balance adjustement is defined as a fraction of the camera near distance.
SoDEPRECATED SbBool getStereoAbsoluteAdjustment() const
Queries the stereo absolute adjustment state.
SoSFEnum viewportMapping
Defines how to map the rendered image into the current viewport, when the aspect ratio of the camera ...
SoDEPRECATED float getBalanceAdjustment() const
Queries the parallax balance.
SoDEPRECATED float getStereoAdjustment() const
Queries the stereo offset.
virtual SbViewVolume getViewVolume(float useAspectRatio=0.0) const =0
Returns a view volume object, based on the camera's viewing parameters.
@ MONOSCOPIC
Monoscopic (i.e., non-stereo) viewing.
@ LEFT_VIEW
Left eye view.
@ RIGHT_VIEW
Right eye view.
StereoMode getStereoMode() const
Queries the stereo mode.
void pointAt(const SbVec3f &targetPoint)
Sets the orientation of the camera so that it points toward the given target point while keeping the ...
Renders a scene graph using Open Inventor's Render Engine.
Computes bounding box of a scene.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Counts number of...
Allows nodes in a graph to receive input events.
Abstract base class for all database nodes.
Path that points to a list of hierarchical nodes.
Intersects objects with a ray cast into scene.
Field containing an enumerated value.
Field containing a floating-point value.
Field containing a rotation.
Field containing a three-dimensional vector.