#define __IVTKVTK_VIEW_H__
#include <IVtk_IView.hxx>
+#include <vtkSmartPointer.h>
class vtkRenderer;
+class IVtkVTK_View;
DEFINE_STANDARD_HANDLE( IVtkVTK_View, IVtk_IView )
//! @class IVtkVTK_View
Standard_EXPORT virtual ~IVtkVTK_View();
//! @return true if this is a perspective view, and false otherwise.
- Standard_EXPORT virtual bool IsPerspective() const;
+ Standard_EXPORT virtual bool IsPerspective() const Standard_OVERRIDE;
//! @return The focal distance of the view
- Standard_EXPORT virtual double GetDistance() const;
+ Standard_EXPORT virtual double GetDistance() const Standard_OVERRIDE;
//! @return The world coordinates of the view position
- Standard_EXPORT virtual void GetPosition (double& theX, double& theY, double& theZ) const;
+ Standard_EXPORT virtual void GetPosition (double& theX, double& theY, double& theZ) const Standard_OVERRIDE;
//! @return The "view up" direction of the view
- Standard_EXPORT virtual void GetViewUp (double& theDx, double& theDy, double& theDz) const;
+ Standard_EXPORT virtual void GetViewUp (double& theDx, double& theDy, double& theDz) const Standard_OVERRIDE;
//! @return The projection direction vector of this view
Standard_EXPORT virtual void GetDirectionOfProjection (double& theDx,
double& theDy,
- double& theDz) const;
+ double& theDz) const Standard_OVERRIDE;
//! @return Three doubles containing scale components of the view transformation
- Standard_EXPORT virtual void GetScale (double& theX, double& theY, double& theZ) const;
+ Standard_EXPORT virtual void GetScale (double& theX, double& theY, double& theZ) const Standard_OVERRIDE;
//! @return The current view's zoom factor (for parallel projection)
- Standard_EXPORT virtual double GetParallelScale() const;
+ Standard_EXPORT virtual double GetParallelScale() const Standard_OVERRIDE;
//! @return The current view angle (for perspective projection)
- Standard_EXPORT virtual double GetViewAngle() const;
+ Standard_EXPORT virtual double GetViewAngle() const Standard_OVERRIDE;
//! @return Two doubles containing the display coordinates of the view window center
- Standard_EXPORT virtual void GetViewCenter (double& theX, double& theY) const;
+ Standard_EXPORT virtual void GetViewCenter (double& theX, double& theY) const Standard_OVERRIDE;
//! Gets window size in screen coordinates in pixels
Standard_EXPORT virtual void GetWindowSize (int& theX, int& theY) const Standard_OVERRIDE;
//! @param [in] theDisplayPnt 2d point of display coordinates
//! @param [out] theWorldPnt 3d point of world coordinates
//! @return true if conversion was successful, false otherwise
- Standard_EXPORT virtual bool DisplayToWorld (const gp_XY& theDisplayPnt, gp_XYZ& theWorldPnt) const;
+ Standard_EXPORT virtual bool DisplayToWorld (const gp_XY& theDisplayPnt, gp_XYZ& theWorldPnt) const Standard_OVERRIDE;
- DEFINE_STANDARD_RTTI(IVtkVTK_View, IVtk_IView)
+ DEFINE_STANDARD_RTTIEXT(IVtkVTK_View,IVtk_IView)
private:
- vtkRenderer* myRenderer;
+ vtkSmartPointer<vtkRenderer> myRenderer;
};
#endif // __IVTKVTK_VIEW_H__