mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0026988: Fresh compiler warnings (VC++ 14, GCC 5.2.1, CLang 3.6.2)
Compiler warnings eliminated: - VC++: potential use of uninitialized variable - GCC: potential use of uninitialized variable [-Wmaybe-uninitialized], redundant const on return value [-Wignored-qualifiers] - CLang: missing override specifier on overloaded virtual function [-Winconsistent-missing-override], function call within typeid() [-Wpotentially-evaluated-expression]
This commit is contained in:
@@ -62,7 +62,7 @@ public:
|
||||
//! @param [in] theY Y coordinate
|
||||
//! @param [in] theZ Z coordinate
|
||||
//! @return id of added point
|
||||
Standard_EXPORT virtual IVtk_PointId InsertCoordinate (double theX, double theY, double theZ);
|
||||
Standard_EXPORT virtual IVtk_PointId InsertCoordinate (double theX, double theY, double theZ) Standard_OVERRIDE;
|
||||
|
||||
//! Insert a vertex.
|
||||
//! @param [in] theShapeID id of the subshape to which the vertex belongs.
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
//! @param [in] theMeshType mesh type of the subshape (MT_Undefined by default)
|
||||
Standard_EXPORT virtual void InsertVertex (const IVtk_IdType theShapeID,
|
||||
const IVtk_PointId thePointId,
|
||||
const IVtk_MeshType theMeshType);
|
||||
const IVtk_MeshType theMeshType) Standard_OVERRIDE;
|
||||
|
||||
//! Insert a line.
|
||||
//! @param [in] theShapeID id of the subshape to which the line belongs.
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
Standard_EXPORT virtual void InsertLine (const IVtk_IdType theShapeID,
|
||||
const IVtk_PointId thePointId1,
|
||||
const IVtk_PointId thePointId2,
|
||||
const IVtk_MeshType theMeshType);
|
||||
const IVtk_MeshType theMeshType) Standard_OVERRIDE;
|
||||
|
||||
//! Insert a poly-line.
|
||||
//! @param [in] theShapeID id of the subshape to which the polyline belongs.
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
//! @param [in] theMeshType mesh type of the subshape (MT_Undefined by default)
|
||||
Standard_EXPORT virtual void InsertLine (const IVtk_IdType theShapeID,
|
||||
const IVtk_PointIdList* thePointIds,
|
||||
const IVtk_MeshType theMeshType);
|
||||
const IVtk_MeshType theMeshType) Standard_OVERRIDE;
|
||||
//! Insert a triangle
|
||||
//! @param [in] theShapeID id of the subshape to which the triangle belongs.
|
||||
//! @param [in] thePointId1 id of the first point
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
const IVtk_PointId thePointId1,
|
||||
const IVtk_PointId thePointId2,
|
||||
const IVtk_PointId thePointId3,
|
||||
const IVtk_MeshType theMeshType);
|
||||
const IVtk_MeshType theMeshType) Standard_OVERRIDE;
|
||||
|
||||
|
||||
public: //! @name Specific methods
|
||||
|
@@ -41,33 +41,33 @@ public:
|
||||
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;
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
//! @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_RTTIEXT(IVtkVTK_View,IVtk_IView)
|
||||
|
||||
|
Reference in New Issue
Block a user