mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0032073: Visualization - implement interface to change myToFlipOutput of OpenGl_View
This commit is contained in:
@@ -96,6 +96,12 @@ public:
|
||||
//! Sets camera used by the view.
|
||||
virtual void SetCamera (const Handle(Graphic3d_Camera)& theCamera) { myCamera = theCamera; }
|
||||
|
||||
//! Returns necessity to flip OY in projection matrix
|
||||
virtual Standard_Boolean IsToFlipOutput() const { return Standard_False; }
|
||||
|
||||
//! Sets state of flip OY necessity in projection matrix
|
||||
virtual void SetToFlipOutput (const Standard_Boolean) {}
|
||||
|
||||
public:
|
||||
|
||||
//! Returns default Shading Model of the view; Graphic3d_TOSM_FRAGMENT by default.
|
||||
|
@@ -348,6 +348,12 @@ public: //! @name obsolete Graduated Trihedron functionality
|
||||
//! @param theMax [in] the maximum point of scene.
|
||||
Standard_EXPORT virtual void GraduatedTrihedronMinMaxValues (const Graphic3d_Vec3 theMin, const Graphic3d_Vec3 theMax) Standard_OVERRIDE;
|
||||
|
||||
//! Returns necessity to flip OY in projection matrix
|
||||
virtual Standard_Boolean IsToFlipOutput() const Standard_OVERRIDE { return myToFlipOutput; }
|
||||
|
||||
//! Sets state of flip OY necessity in projection matrix
|
||||
virtual void SetToFlipOutput (const Standard_Boolean theFlip) Standard_OVERRIDE { myToFlipOutput = theFlip; }
|
||||
|
||||
protected: //! @name Internal methods for managing GL resources
|
||||
|
||||
//! Initializes OpenGl resource for environment texture.
|
||||
|
Reference in New Issue
Block a user