Open CASCADE Technology 6.6.0
Public Member Functions | Data Fields
OpenGl_View Class Reference

#include <OpenGl_View.hxx>

Inheritance diagram for OpenGl_View:
Inheritance graph
[legend]

Public Member Functions

 OpenGl_View (const CALL_DEF_VIEWCONTEXT &AContext)
virtual ~OpenGl_View ()
void ReleaseGlResources (const Handle< OpenGl_Context > &theCtx)
void SetTextureEnv (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_TextureEnv > &theTexture)
void SetSurfaceDetail (const Visual3d_TypeOfSurfaceDetail AMode)
void SetBackfacing (const Standard_Integer AMode)
void SetLights (const CALL_DEF_VIEWCONTEXT &AContext)
void SetAntiAliasing (const Standard_Boolean AMode)
void SetClippingPlanes (const CALL_DEF_VIEWCONTEXT &AContext)
void SetVisualisation (const CALL_DEF_VIEWCONTEXT &AContext)
void SetClipLimit (const Graphic3d_CView &theCView)
void SetMapping (const Graphic3d_CView &theCView)
void SetOrientation (const Graphic3d_CView &theCView)
void SetFog (const Graphic3d_CView &theCView, const Standard_Boolean theFlag)
void TriedronDisplay (const Handle< OpenGl_Context > &theCtx, const Aspect_TypeOfTriedronPosition thePosition, const Quantity_NameOfColor theColor, const Standard_Real theScale, const Standard_Boolean theAsWireframe)
void TriedronErase (const Handle< OpenGl_Context > &theCtx)
void GraduatedTrihedronDisplay (const Handle< OpenGl_Context > &theCtx, const Graphic3d_CGraduatedTrihedron &theCubic)
void GraduatedTrihedronErase (const Handle< OpenGl_Context > &theCtx)
Standard_Boolean ProjectObjectToRaster (const Standard_Integer w, const Standard_Integer h, const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal z, Standard_ShortReal &xr, Standard_ShortReal &yr)
Standard_Boolean ProjectRasterToObject (const Standard_Integer w, const Standard_Integer h, const Standard_Integer xr, const Standard_Integer yr, Standard_ShortReal &x, Standard_ShortReal &y, Standard_ShortReal &z)
Standard_Boolean ProjectRasterToObjectWithRay (const Standard_Integer w, const Standard_Integer h, const Standard_Integer xr, const Standard_Integer yr, Standard_ShortReal &x, Standard_ShortReal &y, Standard_ShortReal &z, Standard_ShortReal &dx, Standard_ShortReal &dy, Standard_ShortReal &dz)
void GetMatrices (TColStd_Array2OfReal &theMatOrient, TColStd_Array2OfReal &theMatMapping, const Standard_Boolean theIsCustom) const
Standard_Real Height () const
Standard_Real Width () const
Standard_Integer Backfacing () const
const TEL_TRANSFORM_PERSISTENCEBeginTransformPersistence (const TEL_TRANSFORM_PERSISTENCE *ATransPers)
void EndTransformPersistence ()
void DisplayStructure (const OpenGl_Structure *theStructure, const Standard_Integer thePriority)
 Add structure to display list with specified priority. The structure will be added to associated with it z layer. If the z layer is not presented in the view, the structure will be displayed in default bottom-level z layer.
void EraseStructure (const OpenGl_Structure *theStructure)
 Erase structure from display list.
void AddZLayer (const Standard_Integer theLayerId)
 Insert a new top-level z layer with ID <theLayerId>
void RemoveZLayer (const Standard_Integer theLayerId)
 Remove a z layer with ID <theLayerId>
void ChangeZLayer (const OpenGl_Structure *theStructure, const Standard_Integer theNewLayerId)
 Display structure in z layer with ID <theNewLayerId> If the layer with ID <theNewLayerId> is not presented in the view, the structure will be displayed in default bottom-level layer.
void CreateBackgroundTexture (const Standard_CString AFileName, const Aspect_FillMethod AFillStyle)
void SetBackgroundTextureStyle (const Aspect_FillMethod FillStyle)
void SetBackgroundGradient (const Quantity_Color &AColor1, const Quantity_Color &AColor2, const Aspect_GradientFillMethod AType)
void SetBackgroundGradientType (const Aspect_GradientFillMethod AType)
void Render (const Handle< OpenGl_PrinterContext > &thePrintContext, const Handle< OpenGl_Workspace > &theWorkspace, const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer)
DEFINE_STANDARD_RTTI(OpenGl_View)
protected void 
RedrawLayer2d (const Handle< OpenGl_PrinterContext > &thePrintContext, const Handle< OpenGl_Workspace > &theWorkspace, const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCLayer)

Data Fields

Handle< OpenGl_TexturemyTextureEnv
Visual3d_TypeOfSurfaceDetail mySurfaceDetail
Standard_Integer myBackfacing
OPENGL_BG_TEXTURE myBgTexture
OPENGL_BG_GRADIENT myBgGradient
Tmatrix3 myOrientationMatrix
Tmatrix3 myMappingMatrix
OPENGL_ZCLIP myZClip
NCollection_List< OPENGL_CLIP_REPmyClippingPlanes
OPENGL_EXTRA_REP myExtra
OPENGL_FOG myFog
OpenGl_TrihedronmyTrihedron
OpenGl_GraduatedTrihedronmyGraduatedTrihedron
int myVisualization
int myIntShadingMethod
OpenGl_ListOfLight myLights
Standard_Boolean myAntiAliasing
OpenGl_LayerList myZLayers
const TEL_TRANSFORM_PERSISTENCEmyTransPers
Standard_Boolean myIsTransPers

Constructor & Destructor Documentation

OpenGl_View::OpenGl_View ( const CALL_DEF_VIEWCONTEXT AContext)
virtual OpenGl_View::~OpenGl_View ( ) [virtual]

Member Function Documentation

void OpenGl_View::AddZLayer ( const Standard_Integer  theLayerId)
Standard_Integer OpenGl_View::Backfacing ( ) const [inline]
const TEL_TRANSFORM_PERSISTENCE* OpenGl_View::BeginTransformPersistence ( const TEL_TRANSFORM_PERSISTENCE ATransPers)
void OpenGl_View::ChangeZLayer ( const OpenGl_Structure theStructure,
const Standard_Integer  theNewLayerId 
)
void OpenGl_View::CreateBackgroundTexture ( const Standard_CString  AFileName,
const Aspect_FillMethod  AFillStyle 
)
void OpenGl_View::DisplayStructure ( const OpenGl_Structure theStructure,
const Standard_Integer  thePriority 
)
void OpenGl_View::EndTransformPersistence ( )
void OpenGl_View::EraseStructure ( const OpenGl_Structure theStructure)
void OpenGl_View::GetMatrices ( TColStd_Array2OfReal theMatOrient,
TColStd_Array2OfReal theMatMapping,
const Standard_Boolean  theIsCustom 
) const
void OpenGl_View::GraduatedTrihedronDisplay ( const Handle< OpenGl_Context > &  theCtx,
const Graphic3d_CGraduatedTrihedron theCubic 
)
void OpenGl_View::GraduatedTrihedronErase ( const Handle< OpenGl_Context > &  theCtx)
Standard_Real OpenGl_View::Height ( ) const [inline]
Standard_Boolean OpenGl_View::ProjectObjectToRaster ( const Standard_Integer  w,
const Standard_Integer  h,
const Standard_ShortReal  x,
const Standard_ShortReal  y,
const Standard_ShortReal  z,
Standard_ShortReal xr,
Standard_ShortReal yr 
)
Standard_Boolean OpenGl_View::ProjectRasterToObject ( const Standard_Integer  w,
const Standard_Integer  h,
const Standard_Integer  xr,
const Standard_Integer  yr,
Standard_ShortReal x,
Standard_ShortReal y,
Standard_ShortReal z 
)
Standard_Boolean OpenGl_View::ProjectRasterToObjectWithRay ( const Standard_Integer  w,
const Standard_Integer  h,
const Standard_Integer  xr,
const Standard_Integer  yr,
Standard_ShortReal x,
Standard_ShortReal y,
Standard_ShortReal z,
Standard_ShortReal dx,
Standard_ShortReal dy,
Standard_ShortReal dz 
)
DEFINE_STANDARD_RTTI (OpenGl_View) protected void OpenGl_View::RedrawLayer2d ( const Handle< OpenGl_PrinterContext > &  thePrintContext,
const Handle< OpenGl_Workspace > &  theWorkspace,
const Graphic3d_CView theCView,
const Aspect_CLayer2d theCLayer 
)
void OpenGl_View::ReleaseGlResources ( const Handle< OpenGl_Context > &  theCtx)
void OpenGl_View::RemoveZLayer ( const Standard_Integer  theLayerId)
void OpenGl_View::Render ( const Handle< OpenGl_PrinterContext > &  thePrintContext,
const Handle< OpenGl_Workspace > &  theWorkspace,
const Graphic3d_CView theCView,
const Aspect_CLayer2d theCUnderLayer,
const Aspect_CLayer2d theCOverLayer 
)
void OpenGl_View::SetAntiAliasing ( const Standard_Boolean  AMode) [inline]
void OpenGl_View::SetBackfacing ( const Standard_Integer  AMode)
void OpenGl_View::SetBackgroundGradient ( const Quantity_Color AColor1,
const Quantity_Color AColor2,
const Aspect_GradientFillMethod  AType 
)
void OpenGl_View::SetBackgroundGradientType ( const Aspect_GradientFillMethod  AType)
void OpenGl_View::SetBackgroundTextureStyle ( const Aspect_FillMethod  FillStyle)
void OpenGl_View::SetClipLimit ( const Graphic3d_CView theCView)
void OpenGl_View::SetClippingPlanes ( const CALL_DEF_VIEWCONTEXT AContext)
void OpenGl_View::SetFog ( const Graphic3d_CView theCView,
const Standard_Boolean  theFlag 
)
void OpenGl_View::SetLights ( const CALL_DEF_VIEWCONTEXT AContext)
void OpenGl_View::SetMapping ( const Graphic3d_CView theCView)
void OpenGl_View::SetOrientation ( const Graphic3d_CView theCView)
void OpenGl_View::SetSurfaceDetail ( const Visual3d_TypeOfSurfaceDetail  AMode) [inline]
void OpenGl_View::SetTextureEnv ( const Handle< OpenGl_Context > &  theCtx,
const Handle< Graphic3d_TextureEnv > &  theTexture 
)
void OpenGl_View::SetVisualisation ( const CALL_DEF_VIEWCONTEXT AContext)
void OpenGl_View::TriedronDisplay ( const Handle< OpenGl_Context > &  theCtx,
const Aspect_TypeOfTriedronPosition  thePosition,
const Quantity_NameOfColor  theColor,
const Standard_Real  theScale,
const Standard_Boolean  theAsWireframe 
)
void OpenGl_View::TriedronErase ( const Handle< OpenGl_Context > &  theCtx)
Standard_Real OpenGl_View::Width ( ) const [inline]

Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines