myFocalPoint[0] = 0.0;
myFocalPoint[1] = 0.0;
myFocalPoint[2] = 0.0;
-
- myClippingRange[0] = 0.01;
- myClippingRange[1] = 1000;
-
+
myAxialScale[0] = 1.0;
myAxialScale[1] = 1.0;
myAxialScale[2] = 1.0;
myFocalPoint[2] = theZ;
}
-/*!
- \brief get clipping range.
-
- The clipping range defines distances to near and far planes of
- a clipping volume from a camera plane.
-
- The values should be higher than 0.
-
- \param theNear [out] distance to the near clipping plane.
- \param theFar [out] distance to the far clipping plane.
- \sa setClippingRange()
-*/
-void SUIT_CameraProperties::getClippingRange(double& theNear, double& theFar) const
-{
- theNear = myClippingRange[0];
- theFar = myClippingRange[1];
-}
-
-/*!
- \brief set clipping range.
-
- The clipping range defines distances to near and far planes of
- a clipping volume from a camera plane.
-
- The values should be higher than 0.
-
- \param theNear [in] distance to the near clipping plane.
- \param theFar [in] distance to the far clipping plane.
- \sa getClippingRange()
-*/
-void SUIT_CameraProperties::setClippingRange(const double theNear, const double theFar)
-{
- myClippingRange[0] = theNear;
- myClippingRange[1] = theFar;
-}
-
/*!
\brief get window mapping scale (parallel scale).
void getFocalPoint(double& theX, double& theY, double& theZ) const;
void setFocalPoint(const double theX, const double theY, const double theZ);
- void getClippingRange(double& theNear, double& theFar) const;
- void setClippingRange(const double theNear, const double theFar);
-
double getMappingScale() const;
void setMappingScale(const double theScale);
double myUpDir[3]; //!< camera up vector
double myPosition[3]; //!< camera position (eye).
double myFocalPoint[3]; //!< focal point position in world-space coordinates
- double myClippingRange[2]; //!< distance to front and back clipping planes
double myMappingScale; //!< window mapping scale (parallel projection scale)
double myAxialScale[3]; //!< scaling factors for world axes
double myViewAngle; //!< perspective view angle in degrees