From: apl Date: Thu, 1 Nov 2012 12:45:20 +0000 (+0000) Subject: Clipping range is not used for synchronization, the property is removed from SUIT_Cam... X-Git-Tag: pal21808_v2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=47101fcc69b645e20fbd7f591e4f5163ec165065;p=modules%2Fgui.git Clipping range is not used for synchronization, the property is removed from SUIT_CameraProperties. --- diff --git a/src/SUIT/SUIT_CameraProperties.cxx b/src/SUIT/SUIT_CameraProperties.cxx index 2c88fc6e1..284888727 100644 --- a/src/SUIT/SUIT_CameraProperties.cxx +++ b/src/SUIT/SUIT_CameraProperties.cxx @@ -51,10 +51,7 @@ SUIT_CameraProperties::SUIT_CameraProperties() 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; @@ -283,42 +280,6 @@ void SUIT_CameraProperties::setFocalPoint(const double theX, const double theY, 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). diff --git a/src/SUIT/SUIT_CameraProperties.h b/src/SUIT/SUIT_CameraProperties.h index 30cfbbe09..366de659b 100644 --- a/src/SUIT/SUIT_CameraProperties.h +++ b/src/SUIT/SUIT_CameraProperties.h @@ -56,9 +56,6 @@ public: 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); @@ -76,7 +73,6 @@ private: 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