Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Data Fields
OpenGl_View Class Reference

#include <OpenGl_View.hxx>

Inheritance diagram for OpenGl_View:
Inheritance graph
[legend]

Public Types

typedef std::pair
< Standard_Size, Standard_Size
StateInfo
 

Public Member Functions

 OpenGl_View (const CALL_DEF_VIEWCONTEXT &AContext, OpenGl_StateCounter *theCounter)
 
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 SetClipPlanes (const Graphic3d_SequenceOfHClipPlane &thePlanes)
 
void SetVisualisation (const CALL_DEF_VIEWCONTEXT &AContext)
 
void SetClipLimit (const Graphic3d_CView &theCView)
 
void SetMapping (const Handle< OpenGl_Display > &theGlDisplay, 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 Handle< OpenGl_Context > &theCtx, const TEL_TRANSFORM_PERSISTENCE *theTransPers)
 
void EndTransformPersistence (const Handle< OpenGl_Context > &theCtx)
 
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. More...
 
void EraseStructure (const OpenGl_Structure *theStructure)
 Erase structure from display list. More...
 
void AddZLayer (const Standard_Integer theLayerId)
 Insert a new top-level z layer with ID <theLayerId> More...
 
void RemoveZLayer (const Standard_Integer theLayerId)
 Remove a z layer with ID <theLayerId> More...
 
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. More...
 
void SetZLayerSettings (const Standard_Integer theLayerId, const Graphic3d_ZLayerSettings theSettings)
 Sets the settings for a single Z layer of specified view. More...
 
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)
 
void DrawBackground (const Handle< OpenGl_Workspace > &theWorkspace)
 
const OpenGl_LayerListLayerList () const
 Returns list of OpenGL Z-layers. More...
 
const OpenGl_ListOfLightLightList () const
 Returns list of openGL light sources. More...
 
const Handle< OpenGl_Texture > & TextureEnv () const
 Returns OpenGL environment map. More...
 
Visual3d_TypeOfSurfaceDetail SurfaceDetail () const
 Returns visualization mode for objects in the view. More...
 
DEFINE_STANDARD_RTTI(OpenGl_View)
protected void 
RedrawLayer2d (const Handle< OpenGl_PrinterContext > &thePrintContext, const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCLayer)
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void ShallowDump (Standard_OStream &) const
 
virtual const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

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
 
OPENGL_EXTRA_REP myExtra
 
Graphic3d_SequenceOfHClipPlane myClipPlanes
 
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
 
OpenGl_StateCountermyStateCounter
 
Standard_Size myCurrOrientationState
 
Standard_Size myCurrViewMappingState
 
Standard_Size myCurrLightSourceState
 
StateInfo myLastOrientationState
 
StateInfo myLastViewMappingState
 
StateInfo myLastLightSourceState
 

Member Typedef Documentation

Constructor & Destructor Documentation

OpenGl_View::OpenGl_View ( const CALL_DEF_VIEWCONTEXT AContext,
OpenGl_StateCounter theCounter 
)
virtual OpenGl_View::~OpenGl_View ( )
virtual

Member Function Documentation

void OpenGl_View::AddZLayer ( const Standard_Integer  theLayerId)

Insert a new top-level z layer with ID <theLayerId>

Standard_Integer OpenGl_View::Backfacing ( ) const
inline
const TEL_TRANSFORM_PERSISTENCE* OpenGl_View::BeginTransformPersistence ( const Handle< OpenGl_Context > &  theCtx,
const TEL_TRANSFORM_PERSISTENCE theTransPers 
)
void OpenGl_View::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 OpenGl_View::CreateBackgroundTexture ( const Standard_CString  AFileName,
const Aspect_FillMethod  AFillStyle 
)
void OpenGl_View::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 OpenGl_View::DrawBackground ( const Handle< OpenGl_Workspace > &  theWorkspace)
void OpenGl_View::EndTransformPersistence ( const Handle< OpenGl_Context > &  theCtx)
void OpenGl_View::EraseStructure ( const OpenGl_Structure theStructure)

Erase structure from display list.

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
const OpenGl_LayerList& OpenGl_View::LayerList ( ) const
inline

Returns list of OpenGL Z-layers.

const OpenGl_ListOfLight& OpenGl_View::LightList ( ) const
inline

Returns list of openGL light sources.

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 Graphic3d_CView theCView,
const Aspect_CLayer2d theCLayer 
)
void OpenGl_View::ReleaseGlResources ( const Handle< OpenGl_Context > &  theCtx)
void OpenGl_View::RemoveZLayer ( const Standard_Integer  theLayerId)

Remove a z layer with ID <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::SetClipPlanes ( const Graphic3d_SequenceOfHClipPlane thePlanes)
inline
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 Handle< OpenGl_Display > &  theGlDisplay,
const Graphic3d_CView theCView 
)
void OpenGl_View::SetOrientation ( const Graphic3d_CView theCView)
void OpenGl_View::SetSurfaceDetail ( const Visual3d_TypeOfSurfaceDetail  AMode)
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::SetZLayerSettings ( const Standard_Integer  theLayerId,
const Graphic3d_ZLayerSettings  theSettings 
)

Sets the settings for a single Z layer of specified view.

Visual3d_TypeOfSurfaceDetail OpenGl_View::SurfaceDetail ( ) const
inline

Returns visualization mode for objects in the view.

const Handle< OpenGl_Texture >& OpenGl_View::TextureEnv ( ) const
inline

Returns OpenGL environment map.

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

Standard_Boolean OpenGl_View::myAntiAliasing
Standard_Integer OpenGl_View::myBackfacing
OPENGL_BG_GRADIENT OpenGl_View::myBgGradient
OPENGL_BG_TEXTURE OpenGl_View::myBgTexture
Graphic3d_SequenceOfHClipPlane OpenGl_View::myClipPlanes
Standard_Size OpenGl_View::myCurrLightSourceState
Standard_Size OpenGl_View::myCurrOrientationState
Standard_Size OpenGl_View::myCurrViewMappingState
OPENGL_EXTRA_REP OpenGl_View::myExtra
OPENGL_FOG OpenGl_View::myFog
OpenGl_GraduatedTrihedron* OpenGl_View::myGraduatedTrihedron
int OpenGl_View::myIntShadingMethod
Standard_Boolean OpenGl_View::myIsTransPers
StateInfo OpenGl_View::myLastLightSourceState
StateInfo OpenGl_View::myLastOrientationState
StateInfo OpenGl_View::myLastViewMappingState
OpenGl_ListOfLight OpenGl_View::myLights
Tmatrix3 OpenGl_View::myMappingMatrix
Tmatrix3 OpenGl_View::myOrientationMatrix
OpenGl_StateCounter* OpenGl_View::myStateCounter
Visual3d_TypeOfSurfaceDetail OpenGl_View::mySurfaceDetail
Handle< OpenGl_Texture > OpenGl_View::myTextureEnv
const TEL_TRANSFORM_PERSISTENCE* OpenGl_View::myTransPers
OpenGl_Trihedron* OpenGl_View::myTrihedron
int OpenGl_View::myVisualization
OPENGL_ZCLIP OpenGl_View::myZClip
OpenGl_LayerList OpenGl_View::myZLayers

The documentation for this class was generated from the following file: