51# include <Inventor/Qt/viewers/SoQtConstrainedViewer.h>
53# include <Inventor/Win/viewers/SoWinConstrainedViewer.h>
56#ifndef _SO_XT_CONSTRAINED_VIEWER_
57#define _SO_XT_CONSTRAINED_VIEWER_
59#include <Inventor/Xt/viewers/SoXtFullViewer.h>
60#include <Inventor/SbBox.h>
61#include <Inventor/Gui/viewers/SoGuiConstrainedViewer.h>
118 float sceneHeight, sceneSize;
124 SoXtFullViewer::BuildFlag flag,
125 SoXtViewer::Type type,
132 SoXtFullViewer::BuildFlag flag,
133 SoXtViewer::Type type,
142 virtual void tiltCamera(
float deltaAngle );
148 virtual void bottomWheelMotion(
float newVal );
149 virtual void leftWheelMotion(
float newVal );
154 virtual void changeCameraValues(
SoCamera* newCamera );
160 void findUpDirection(
const SbVec2s& mouseLocation );
166 void checkForCameraUpConstrain();
169 virtual void computeSeekFinalOrientation();
173 void constructorCommon(
SbBool buildNow );
Abstract base class for camera nodes.
Base viewer class which adds camera constraints given a world up direction.
virtual void resetToHomePosition()
Restores the camera values.
virtual void saveHomePosition()
Saves the camera values.
SbVec3f getUpDirection()
Returns the upward direction of the viewer.
void setUpDirection(const SbVec3f &newUpDirection)
Specifies the upward direction of the viewer.
virtual void setCamera(SoCamera *newCam)
Sets the edited camera.
virtual void recomputeSceneSize()
This can be used to let the viewer know that the scene graph has changed so that the viewer can recom...
Base viewer class which adds a decoration around the rendering area.