mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0025974: Visualization - fix misprints in method naming of Graphic3d_GraduatedTrihedron
V3d_View::GetGraduatedTrihedron() - return configuration structure directly. OpenGl_View::TriedronDisplay() - do not re-create trihedron on each Display call. OpenGl_Trihedron::Setup() - eliminate global variables. OpenGl_PrimitiveArray::buildVBO() - release old VBOs before initialization. ViewerTest.hxx - move out package header from .cdl file. ViewerTest::ParseColor() - add new method to parse color arguments in common way. vzbufftrihedron - improve command syntax. vgraduatedtrihedron - add options -drawgrid and -drawaxes.
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
#include <OpenGl_LayerList.hxx>
|
||||
#include <OpenGl_Light.hxx>
|
||||
#include <OpenGl_LineAttributes.hxx>
|
||||
#include <OpenGl_Trihedron.hxx>
|
||||
#include <OpenGl_GraduatedTrihedron.hxx>
|
||||
|
||||
#include <Handle_OpenGl_Context.hxx>
|
||||
#include <Handle_OpenGl_GraphicDriver.hxx>
|
||||
@@ -72,9 +74,7 @@ struct OPENGL_FOG
|
||||
};
|
||||
|
||||
struct OpenGl_Matrix;
|
||||
class OpenGl_GraduatedTrihedron;
|
||||
class OpenGl_Structure;
|
||||
class OpenGl_Trihedron;
|
||||
class Handle(OpenGl_PrinterContext);
|
||||
class OpenGl_StateCounter;
|
||||
|
||||
@@ -102,14 +102,14 @@ class OpenGl_View : public MMgt_TShared
|
||||
|
||||
void SetFog (const Graphic3d_CView& theCView, const Standard_Boolean theFlag);
|
||||
|
||||
void TriedronDisplay (const Handle(OpenGl_Context)& theCtx,
|
||||
const Aspect_TypeOfTriedronPosition thePosition,
|
||||
OpenGl_Trihedron& ChangeTrihedron() { return myTrihedron; }
|
||||
void TriedronDisplay (const Aspect_TypeOfTriedronPosition thePosition,
|
||||
const Quantity_NameOfColor theColor,
|
||||
const Standard_Real theScale,
|
||||
const Standard_Boolean theAsWireframe);
|
||||
void TriedronErase (const Handle(OpenGl_Context)& theCtx);
|
||||
|
||||
OpenGl_GraduatedTrihedron* GraduatedTrihedron() const { return myGraduatedTrihedron; }
|
||||
OpenGl_GraduatedTrihedron& ChangeGraduatedTrihedron() { return myGraduatedTrihedron; }
|
||||
void GraduatedTrihedronDisplay (const Handle(OpenGl_Context)& theCtx,
|
||||
const Graphic3d_GraduatedTrihedron& theCubic);
|
||||
void GraduatedTrihedronErase (const Handle(OpenGl_Context)& theCtx);
|
||||
@@ -246,8 +246,10 @@ protected:
|
||||
Handle(Graphic3d_Camera) myCamera;
|
||||
|
||||
OPENGL_FOG myFog;
|
||||
OpenGl_Trihedron* myTrihedron;
|
||||
OpenGl_GraduatedTrihedron* myGraduatedTrihedron;
|
||||
OpenGl_Trihedron myTrihedron;
|
||||
OpenGl_GraduatedTrihedron myGraduatedTrihedron;
|
||||
bool myToShowTrihedron;
|
||||
bool myToShowGradTrihedron;
|
||||
|
||||
//View_LABViewContext
|
||||
int myVisualization;
|
||||
|
Reference in New Issue
Block a user