Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
Graphic3d_GraphicDriver Class Reference

This class allows the definition of a graphic driver
(currently only OpenGl driver is used).

#include <Graphic3d_GraphicDriver.hxx>

Inheritance diagram for Graphic3d_GraphicDriver:
Inheritance graph
[legend]

Public Member Functions

virtual Standard_Boolean Begin (const Standard_CString ADisplay)=0
 call_togl_begin

virtual Standard_Boolean Begin (const Aspect_Display ADisplay)=0
 call_togl_begin_display

virtual void End ()=0
 call_togl_end

virtual Standard_Integer InquireLightLimit ()=0
 call_togl_inquirelight

virtual void InquireMat (const Graphic3d_CView &ACView, TColStd_Array2OfReal &AMatO, TColStd_Array2OfReal &AMatM)=0
 call_togl_inquiremat

virtual Standard_Integer InquirePlaneLimit ()=0
 call_togl_inquireplane

virtual Standard_Integer InquireViewLimit ()=0
 call_togl_inquireview

virtual Standard_Boolean InquireTextureAvailable ()=0
 Returns Standard_True if texture is
supported by the graphic driver

virtual void Blink (const Graphic3d_CStructure &ACStructure, const Standard_Boolean Create)=0
 call_togl_blink

virtual void BoundaryBox (const Graphic3d_CStructure &ACStructure, const Standard_Boolean Create)=0
 call_togl_boundarybox

virtual void HighlightColor (const Graphic3d_CStructure &ACStructure, const Standard_ShortReal R, const Standard_ShortReal G, const Standard_ShortReal B, const Standard_Boolean Create)=0
 call_togl_highlightcolor

virtual void NameSetStructure (const Graphic3d_CStructure &ACStructure)=0
 call_togl_namesetstructure

virtual void ClearGroup (const Graphic3d_CGroup &ACGroup)=0
 call_togl_cleargroup

virtual void CloseGroup (const Graphic3d_CGroup &ACGroup)=0
 call_togl_closegroup

virtual void FaceContextGroup (const Graphic3d_CGroup &ACGroup, const Standard_Integer NoInsert)=0
 call_togl_facecontextgroup

virtual void Group (Graphic3d_CGroup &ACGroup)=0
 call_togl_group

virtual void LineContextGroup (const Graphic3d_CGroup &ACGroup, const Standard_Integer NoInsert)=0
 call_togl_linecontextgroup

virtual void MarkerContextGroup (const Graphic3d_CGroup &ACGroup, const Standard_Integer NoInsert)=0
 call_togl_markercontextgroup

virtual void MarkerContextGroup (const Graphic3d_CGroup &ACGroup, const Standard_Integer NoInsert, const Standard_Integer AMarkWidth, const Standard_Integer AMarkHeight, const Handle< TColStd_HArray1OfByte > &ATexture)=0
 call_togl_markercontextgroup

virtual void OpenGroup (const Graphic3d_CGroup &ACGroup)=0
 call_togl_opengroup

virtual void RemoveGroup (const Graphic3d_CGroup &ACGroup)=0
 call_togl_removegroup

virtual void TextContextGroup (const Graphic3d_CGroup &ACGroup, const Standard_Integer NoInsert)=0
 call_togl_textcontextgroup

virtual void ClearStructure (const Graphic3d_CStructure &ACStructure)=0
 call_togl_clearstructure

virtual void Connect (const Graphic3d_CStructure &AFather, const Graphic3d_CStructure &ASon)=0
 call_togl_connect

virtual void ContextStructure (const Graphic3d_CStructure &ACStructure)=0
 call_togl_contextstructure

virtual void Disconnect (const Graphic3d_CStructure &AFather, const Graphic3d_CStructure &ASon)=0
 call_togl_disconnect

virtual void DisplayStructure (const Graphic3d_CView &ACView, const Graphic3d_CStructure &ACStructure, const Standard_Integer APriority)=0
 call_togl_displaystructure

virtual void EraseStructure (const Graphic3d_CView &ACView, const Graphic3d_CStructure &ACStructure)=0
 call_togl_erasestructure

virtual void RemoveStructure (const Graphic3d_CStructure &ACStructure)=0
 call_togl_removestructure

virtual void Structure (Graphic3d_CStructure &ACStructure)=0
 call_togl_structure

virtual void ActivateView (const Graphic3d_CView &ACView)=0
 call_togl_activateview

virtual void AntiAliasing (const Graphic3d_CView &ACView, const Standard_Boolean AFlag)=0
 call_togl_antialiasing

virtual void Background (const Graphic3d_CView &ACView)=0
 call_togl_background

virtual void GradientBackground (const Graphic3d_CView &ACView, const Quantity_Color &AColor1, const Quantity_Color &AColor2, const Aspect_GradientFillMethod FillStyle)=0
 call_togl_gradient_background

virtual void BackgroundImage (const Standard_CString FileName, const Graphic3d_CView &ACView, const Aspect_FillMethod FillStyle)=0
virtual void SetBgImageStyle (const Graphic3d_CView &ACView, const Aspect_FillMethod FillStyle)=0
virtual void SetBgGradientStyle (const Graphic3d_CView &ACView, const Aspect_GradientFillMethod FillStyle)=0
virtual void ClipLimit (const Graphic3d_CView &ACView, const Standard_Boolean AWait)=0
 call_togl_cliplimit

virtual void DeactivateView (const Graphic3d_CView &ACView)=0
 call_togl_deactivateview

virtual void DepthCueing (const Graphic3d_CView &ACView, const Standard_Boolean AFlag)=0
 call_togl_cliplimit

virtual Standard_Boolean ProjectRaster (const Graphic3d_CView &ACView, const Standard_ShortReal AX, const Standard_ShortReal AY, const Standard_ShortReal AZ, Standard_Integer &AU, Standard_Integer &AV)=0
 call_togl_unproject_raster

virtual Standard_Boolean UnProjectRaster (const Graphic3d_CView &ACView, const Standard_Integer Axm, const Standard_Integer Aym, const Standard_Integer AXM, const Standard_Integer AYM, const Standard_Integer AU, const Standard_Integer AV, Standard_ShortReal &AX, Standard_ShortReal &AY, Standard_ShortReal &AZ)=0
 call_togl_unproject_raster

virtual Standard_Boolean UnProjectRasterWithRay (const Graphic3d_CView &ACView, const Standard_Integer Axm, const Standard_Integer Aym, const Standard_Integer AXM, const Standard_Integer AYM, const Standard_Integer AU, const Standard_Integer AV, Standard_ShortReal &AX, Standard_ShortReal &AY, Standard_ShortReal &AZ, Standard_ShortReal &DX, Standard_ShortReal &DY, Standard_ShortReal &DZ)=0
 call_togl_unproject_raster_with_ray

virtual void RatioWindow (const Graphic3d_CView &ACView)=0
 call_togl_ratio_window

virtual void Redraw (const Graphic3d_CView &ACView, const Aspect_CLayer2d &ACUnderLayer, const Aspect_CLayer2d &ACOverLayer, const Standard_Integer x=0, const Standard_Integer y=0, const Standard_Integer width=0, const Standard_Integer height=0)=0
 call_togl_redraw
Warning: when the redraw area has a null size, the full view is redrawn

virtual void RemoveView (const Graphic3d_CView &ACView)=0
 call_togl_removeview

virtual void SetLight (const Graphic3d_CView &ACView)=0
 call_togl_setlight

virtual void SetPlane (const Graphic3d_CView &ACView)=0
 call_togl_setplane

virtual void SetVisualisation (const Graphic3d_CView &ACView)=0
 call_togl_setvisualisation

virtual void TransformStructure (const Graphic3d_CStructure &ACStructure)=0
 call_togl_transformstructure

virtual void DegenerateStructure (const Graphic3d_CStructure &ACStructure)=0
 call_togl_degeneratestructure

virtual void Transparency (const Graphic3d_CView &ACView, const Standard_Boolean AFlag)=0
 call_togl_transparency

virtual void Update (const Graphic3d_CView &ACView, const Aspect_CLayer2d &ACUnderLayer, const Aspect_CLayer2d &ACOverLayer)=0
 call_togl_update

virtual Standard_Boolean View (Graphic3d_CView &ACView)=0
 call_togl_view

virtual void ViewMapping (const Graphic3d_CView &ACView, const Standard_Boolean AWait)=0
 call_togl_viewmapping

virtual void ViewOrientation (const Graphic3d_CView &ACView, const Standard_Boolean AWait)=0
 call_togl_vieworientation

virtual void Environment (const Graphic3d_CView &ACView)=0
virtual void Marker (const Graphic3d_CGroup &ACGroup, const Graphic3d_Vertex &APoint, const Standard_Boolean EvalMinMax=Standard_True)=0
virtual void MarkerSet (const Graphic3d_CGroup &ACGroup, const Graphic3d_Array1OfVertex &ListVertex, const Standard_Boolean EvalMinMax=Standard_True)=0
virtual void Polygon (const Graphic3d_CGroup &ACGroup, const Graphic3d_Array1OfVertex &ListVertex, const Graphic3d_TypeOfPolygon AType=Graphic3d_TOP_CONVEX, const Standard_Boolean EvalMinMax=Standard_True)=0
 call_togl_polygon

virtual void Text (const Graphic3d_CGroup &ACGroup, const Standard_CString AText, const Graphic3d_Vertex &APoint, const Standard_Real AHeight, const Quantity_PlaneAngle AAngle, const Graphic3d_TextPath ATp, const Graphic3d_HorizontalTextAlignment AHta, const Graphic3d_VerticalTextAlignment AVta, const Standard_Boolean EvalMinMax=Standard_True)=0
 call_togl_text

virtual void Text (const Graphic3d_CGroup &ACGroup, const Standard_CString AText, const Graphic3d_Vertex &APoint, const Standard_Real AHeight, const Standard_Boolean EvalMinMax=Standard_True)=0
 call_togl_text

virtual void Text (const Graphic3d_CGroup &ACGroup, const TCollection_ExtendedString &AText, const Graphic3d_Vertex &APoint, const Standard_Real AHeight, const Quantity_PlaneAngle AAngle, const Graphic3d_TextPath ATp, const Graphic3d_HorizontalTextAlignment AHta, const Graphic3d_VerticalTextAlignment AVta, const Standard_Boolean EvalMinMax=Standard_True)=0
 call_togl_text

virtual void Text (const Graphic3d_CGroup &ACGroup, const TCollection_ExtendedString &AText, const Graphic3d_Vertex &APoint, const Standard_Real AHeight, const Standard_Boolean EvalMinMax=Standard_True)=0
 call_togl_text

virtual void PrimitiveArray (const Graphic3d_CGroup &ACGroup, const Graphic3d_PrimitiveArray &parray, const Standard_Boolean EvalMinMax=Standard_True)=0
 call_togl_parray

virtual void UserDraw (const Graphic3d_CGroup &ACGroup, const Graphic3d_CUserDraw &AUserDraw)=0
 call_togl_userdraw

virtual void EnableVBO (const Standard_Boolean status)=0
 enables/disables usage of OpenGL vertex buffer arrays while drawing primitiev arrays

virtual Standard_Boolean MemoryInfo (Standard_Size &theFreeBytes, TCollection_AsciiString &theInfo) const =0
 Returns information about GPU memory usage.

virtual void ZBufferTriedronSetup (const Quantity_NameOfColor XColor=Quantity_NOC_RED, const Quantity_NameOfColor YColor=Quantity_NOC_GREEN, const Quantity_NameOfColor ZColor=Quantity_NOC_BLUE1, const Standard_Real SizeRatio=0.8, const Standard_Real AxisDiametr=0.05, const Standard_Integer NbFacettes=12)=0
 call_togl_ztriedron_setup

virtual void TriedronDisplay (const Graphic3d_CView &ACView, const Aspect_TypeOfTriedronPosition APosition=Aspect_TOTP_CENTER, const Quantity_NameOfColor AColor=Quantity_NOC_WHITE, const Standard_Real AScale=0.02, const Standard_Boolean AsWireframe=Standard_True)=0
 call_togl_triedron_display

virtual void TriedronErase (const Graphic3d_CView &ACView)=0
 call_togl_triedron_erase

virtual void TriedronEcho (const Graphic3d_CView &ACView, const Aspect_TypeOfTriedronEcho AType=Aspect_TOTE_NONE)=0
 call_togl_triedron_echo

virtual void GraduatedTrihedronDisplay (const Graphic3d_CView &view, const Graphic3d_CGraduatedTrihedron &cubic)=0
 call_togl_graduatedtrihedron_display

virtual void GraduatedTrihedronErase (const Graphic3d_CView &view)=0
 call_togl_graduatedtrihedron_erase

virtual void GraduatedTrihedronMinMaxValues (const Standard_ShortReal xmin, const Standard_ShortReal ymin, const Standard_ShortReal zmin, const Standard_ShortReal xmax, const Standard_ShortReal ymax, const Standard_ShortReal zmax)=0
 call_togl_graduatedtrihedron_minmaxvalues

virtual void BeginAnimation (const Graphic3d_CView &ACView)=0
 call_togl_begin_animation

virtual void EndAnimation (const Graphic3d_CView &ACView)=0
 call_togl_end_animation

virtual Standard_Boolean BeginAddMode (const Graphic3d_CView &ACView)=0
 call_togl_begin_ajout_mode

virtual void EndAddMode ()=0
 call_togl_end_ajout_mode

virtual Standard_Boolean BeginImmediatMode (const Graphic3d_CView &ACView, const Aspect_CLayer2d &ACUnderLayer, const Aspect_CLayer2d &ACOverLayer, const Standard_Boolean DoubleBuffer, const Standard_Boolean RetainMode)=0
 call_togl_begin_immediat_mode

virtual void BeginPolyline ()=0
 call_togl_begin_polyline

virtual void ClearImmediatMode (const Graphic3d_CView &ACView, const Standard_Boolean aFlush=Standard_True)=0
 call_togl_clear_immediat_mode

virtual void Draw (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal Z)=0
 call_togl_draw

virtual void DrawStructure (const Graphic3d_CStructure &ACStructure)=0
 call_togl_draw_structure

virtual void EndImmediatMode (const Standard_Integer Synchronize)=0
 call_togl_end_immediat_mode

virtual void EndPolyline ()=0
 call_togl_end_polyline

virtual void Move (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal Z)=0
 call_togl_move

virtual void SetLineColor (const Standard_ShortReal R, const Standard_ShortReal G, const Standard_ShortReal B)=0
 call_togl_set_linecolor

virtual void SetLineType (const Standard_Integer Type)=0
 call_togl_set_linetype

virtual void SetLineWidth (const Standard_ShortReal Width)=0
 call_togl_set_linewidth

virtual void SetMinMax (const Standard_ShortReal X1, const Standard_ShortReal Y1, const Standard_ShortReal Z1, const Standard_ShortReal X2, const Standard_ShortReal Y2, const Standard_ShortReal Z2)=0
 call_togl_set_minmax

virtual void Transform (const TColStd_Array2OfReal &AMatrix, const Graphic3d_TypeOfComposition AType)=0
 call_togl_transform

virtual Standard_Integer CreateTexture (const Graphic3d_TypeOfTexture Type, const Handle< AlienImage_AlienImage > &Image, const Standard_CString FileName, const Handle< TColStd_HArray1OfReal > &TexUpperBounds) const =0
virtual void DestroyTexture (const Standard_Integer TexId) const =0
virtual void ModifyTexture (const Standard_Integer TexId, const Graphic3d_CInitTexture &AValue) const =0
virtual void Layer (Aspect_CLayer2d &ACLayer)=0
 call_togl_layer2d

virtual void RemoveLayer (const Aspect_CLayer2d &ACLayer)=0
 call_togl_removelayer2d

virtual void BeginLayer (const Aspect_CLayer2d &ACLayer)=0
 call_togl_begin_layer2d

virtual void BeginPolygon2d ()=0
 call_togl_begin_polygon2d

virtual void BeginPolyline2d ()=0
 call_togl_begin_polyline2d

virtual void ClearLayer (const Aspect_CLayer2d &ACLayer)=0
 call_togl_clear_layer2d

virtual void Draw (const Standard_ShortReal X, const Standard_ShortReal Y)=0
 call_togl_draw2d

virtual void Edge (const Standard_ShortReal X, const Standard_ShortReal Y)=0
 call_togl_edge2d

virtual void EndLayer ()=0
 call_togl_end_layer2d

virtual void EndPolygon2d ()=0
 call_togl_end_polygon2d

virtual void EndPolyline2d ()=0
 call_togl_end_polyline2d

virtual void Move (const Standard_ShortReal X, const Standard_ShortReal Y)=0
 call_togl_move2d

virtual void Rectangle (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal Width, const Standard_ShortReal Height)=0
 call_togl_rectangle2d

virtual void SetColor (const Standard_ShortReal R, const Standard_ShortReal G, const Standard_ShortReal B)=0
 call_togl_set_color

virtual void SetTransparency (const Standard_ShortReal ATransparency)=0
 call_togl_set_transparency

virtual void UnsetTransparency ()=0
 call_togl_unset_transparency

virtual void SetLineAttributes (const Standard_Integer Type, const Standard_ShortReal Width)=0
 call_togl_set_line_attributes

virtual void SetTextAttributes (const Standard_CString Font, const Standard_Integer Type, const Standard_ShortReal R, const Standard_ShortReal G, const Standard_ShortReal B)=0
 Set text attributes for under-/overlayer.
<Font> argument defines the name of the font to be used,
<Type> argument defines the display type of the text,
<R> <G> values define the color of decal or subtitle background.
To set the color of the text you can use the SetColor method.

virtual void Text (const Standard_CString AText, const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal AHeight)=0
 call_togl_text2d
If AHeight < 0 default text height is used by driver (DefaultTextHeight method)

virtual Standard_ShortReal DefaultTextHeight () const =0
virtual void TextSize (const Standard_CString AText, const Standard_ShortReal AHeight, Standard_ShortReal &AWidth, Standard_ShortReal &AnAscent, Standard_ShortReal &ADescent) const =0
 call_togl_textsize2d

virtual void SetBackFacingModel (const Graphic3d_CView &aView)=0
 call_togl_backfacing

virtual void SetDepthTestEnabled (const Graphic3d_CView &view, const Standard_Boolean isEnabled) const =0
 call_togl_depthtest

virtual Standard_Boolean IsDepthTestEnabled (const Graphic3d_CView &view) const =0
 call_togl_isdepthtest

virtual void ReadDepths (const Graphic3d_CView &view, const Standard_Integer x, const Standard_Integer y, const Standard_Integer width, const Standard_Integer height, const Standard_Address buffer) const =0
 Reads depths of shown pixels of the given
rectangle (glReadPixels with GL_DEPTH_COMPONENT)

virtual Graphic3d_PtrFrameBuffer FBOCreate (const Graphic3d_CView &view, const Standard_Integer width, const Standard_Integer height)=0
 Generate offscreen FBO in the graphic library.
If not supported on hardware returns NULL.

virtual void FBORelease (const Graphic3d_CView &view, Graphic3d_PtrFrameBuffer &fboPtr)=0
 Remove offscreen FBO from the graphic library

virtual void FBOGetDimensions (const Graphic3d_CView &view, const Graphic3d_PtrFrameBuffer fboPtr, Standard_Integer &width, Standard_Integer &height, Standard_Integer &widthMax, Standard_Integer &heightMax)=0
 Read offscreen FBO configuration.

virtual void FBOChangeViewport (const Graphic3d_CView &view, Graphic3d_PtrFrameBuffer &fboPtr, const Standard_Integer width, const Standard_Integer height)=0
 Change offscreen FBO viewport.

virtual Standard_Boolean BufferDump (const Graphic3d_CView &theCView, Image_PixMap &theImage, const Graphic3d_BufferType &theBufferType)=0
 Dump active rendering buffer into specified memory buffer.

virtual void SetGLLightEnabled (const Graphic3d_CView &view, const Standard_Boolean isEnabled) const =0
 call_togl_gllight

virtual Standard_Boolean IsGLLightEnabled (const Graphic3d_CView &view) const =0
 call_togl_isgllight

virtual Standard_Boolean Print (const Graphic3d_CView &ACView, const Aspect_CLayer2d &ACUnderLayer, const Aspect_CLayer2d &ACOverLayer, const Aspect_Handle hPrnDC, const Standard_Boolean showBackground, const Standard_CString filename, const Aspect_PrintAlgo printAlgorithm=Aspect_PA_STRETCH, const Standard_Real theScaleFactor=1.0) const =0
 print the contents of all layers of the view to the printer.
<hPrnDC> : Pass the PrinterDeviceContext (HDC),
<showBackground> : When set to FALSE then print the view without background color
(background is white)
else set to TRUE for printing with current background color.
<filename>: If != NULL, then the view will be printed to a file.
<printAlgorithm>: Select print algorithm: stretch, tile.
<theScaleFactor>: Scaling coefficient, used internally to scale the
printings accordingly to the scale factor selected in the printer
properties dialog.
Returns Standard_True if the data is passed to the printer, otherwise
Standard_False if the print operation failed due to the printer errors,
or insufficient system memory available.

virtual Standard_Boolean Export (const Standard_CString theFileName, const Graphic3d_ExportFormat theFormat, const Graphic3d_SortType theSortType, const Standard_Integer theWidth, const Standard_Integer theHeight, const Graphic3d_CView &theView, const Aspect_CLayer2d &theLayerUnder, const Aspect_CLayer2d &theLayerOver, const Standard_Real thePrecision=0.005, const Standard_Address theProgressBarFunc=NULL, const Standard_Address theProgressObject=NULL)=0
 Export scene into the one of the Vector graphics formats (SVG, PS, PDF...).
In contrast to Bitmaps, Vector graphics is scalable (so you may got quality benefits on printing to laser printer).
Notice however that results may differ a lot and do not contain some elements.

virtual void RemovePrimitiveArray (const Graphic3d_CGroup &theCGroup, const Graphic3d_PrimitiveArray &thePArray)=0
 Clear visualization data in graphical driver and
stop displaying the primitives array of the graphical group
<theCGroup>. This method is internal and should be used
by Graphic3d_Group only.

virtual void AddZLayer (const Graphic3d_CView &theCView, const Standard_Integer theLayerId)=0
 Add a new top-level z layer with ID <theLayerId> for
the view. Z layers allow drawing structures in higher layers
in foreground of structures in lower layers. To add a structure
to desired layer on display it is necessary to set the layer
ID for the structure.

virtual void RemoveZLayer (const Graphic3d_CView &theCView, const Standard_Integer theLayerId)=0
 Remove Z layer from the specified view. All structures
displayed at the moment in layer will be displayed in default layer
( the bottom-level z layer ). To unset layer ID from associated
structures use method UnsetZLayer (...).

virtual void UnsetZLayer (const Standard_Integer theLayerId)=0
 Unset Z layer ID for all structures. The structure
indexes will be set to default layer ( the bottom-level z layer
with ID = 0 ).

virtual void ChangeZLayer (const Graphic3d_CStructure &theCStructure, const Standard_Integer theLayerId)=0
 Change Z layer of a structure. The new z layer ID will
be used to define the associated layer for structure on display.

virtual void ChangeZLayer (const Graphic3d_CStructure &theCStructure, const Graphic3d_CView &theCView, const Standard_Integer theNewLayerId)=0
 Change Z layer of a structure already presented in view.

virtual Standard_Integer GetZLayer (const Graphic3d_CStructure &theCStructure) const =0
 Get Z layer ID of structure. If the structure doesn't
exists in graphic driver, the method returns -1.

void PrintBoolean (const Standard_CString AComment, const Standard_Boolean AValue) const
void PrintCGroup (const Graphic3d_CGroup &ACGroup, const Standard_Integer AField) const
void PrintCLight (const Graphic3d_CLight &ACLight, const Standard_Integer AField) const
void PrintCPick (const Graphic3d_CPick &ACPick, const Standard_Integer AField) const
void PrintCPlane (const Graphic3d_CPlane &ACPlane, const Standard_Integer AField) const
void PrintCStructure (const Graphic3d_CStructure &ACStructure, const Standard_Integer AField) const
void PrintCView (const Graphic3d_CView &ACView, const Standard_Integer AField) const
void PrintFunction (const Standard_CString AFunc) const
void PrintInteger (const Standard_CString AComment, const Standard_Integer AValue) const
void PrintIResult (const Standard_CString AFunc, const Standard_Integer AResult) const
void PrintShortReal (const Standard_CString AComment, const Standard_ShortReal AValue) const
void PrintMatrix (const Standard_CString AComment, const TColStd_Array2OfReal &AMatrix) const
void PrintString (const Standard_CString AComment, const Standard_CString AString) const
void SetTrace (const Standard_Integer ALevel)
Standard_Integer Trace () const

Static Public Member Functions

static Standard_Integer Light (const Graphic3d_CLight &ACLight, const Standard_Boolean Update)
 call_togl_light

static Standard_Integer Plane (const Graphic3d_CPlane &ACPlane, const Standard_Boolean Update)
 call_togl_plane

Protected Member Functions

 Graphic3d_GraphicDriver (const Standard_CString AShrName)
 Initialises the Driver

Protected Attributes

Standard_Integer MyTraceLevel
OSD_SharedLibrary MySharedLibrary

Constructor & Destructor Documentation


Member Function Documentation

virtual void Graphic3d_GraphicDriver::ActivateView ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::AddZLayer ( const Graphic3d_CView theCView,
const Standard_Integer  theLayerId 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::AntiAliasing ( const Graphic3d_CView ACView,
const Standard_Boolean  AFlag 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Background ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::BackgroundImage ( const Standard_CString  FileName,
const Graphic3d_CView ACView,
const Aspect_FillMethod  FillStyle 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::BeginAnimation ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual Standard_Boolean Graphic3d_GraphicDriver::BeginImmediatMode ( const Graphic3d_CView ACView,
const Aspect_CLayer2d ACUnderLayer,
const Aspect_CLayer2d ACOverLayer,
const Standard_Boolean  DoubleBuffer,
const Standard_Boolean  RetainMode 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::BeginLayer ( const Aspect_CLayer2d ACLayer) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::BeginPolygon2d ( ) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::BeginPolyline ( ) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::BeginPolyline2d ( ) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Blink ( const Graphic3d_CStructure ACStructure,
const Standard_Boolean  Create 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::BoundaryBox ( const Graphic3d_CStructure ACStructure,
const Standard_Boolean  Create 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual Standard_Boolean Graphic3d_GraphicDriver::BufferDump ( const Graphic3d_CView theCView,
Image_PixMap theImage,
const Graphic3d_BufferType theBufferType 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::ChangeZLayer ( const Graphic3d_CStructure theCStructure,
const Standard_Integer  theLayerId 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::ChangeZLayer ( const Graphic3d_CStructure theCStructure,
const Graphic3d_CView theCView,
const Standard_Integer  theNewLayerId 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::ClearGroup ( const Graphic3d_CGroup ACGroup) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::ClearLayer ( const Aspect_CLayer2d ACLayer) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::ClearStructure ( const Graphic3d_CStructure ACStructure) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::ClipLimit ( const Graphic3d_CView ACView,
const Standard_Boolean  AWait 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::CloseGroup ( const Graphic3d_CGroup ACGroup) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Connect ( const Graphic3d_CStructure AFather,
const Graphic3d_CStructure ASon 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::ContextStructure ( const Graphic3d_CStructure ACStructure) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::DeactivateView ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::DepthCueing ( const Graphic3d_CView ACView,
const Standard_Boolean  AFlag 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::DestroyTexture ( const Standard_Integer  TexId) const [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::DisplayStructure ( const Graphic3d_CView ACView,
const Graphic3d_CStructure ACStructure,
const Standard_Integer  APriority 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::DrawStructure ( const Graphic3d_CStructure ACStructure) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::EnableVBO ( const Standard_Boolean  status) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::End ( ) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::EndAddMode ( ) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::EndAnimation ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::EndImmediatMode ( const Standard_Integer  Synchronize) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::EndLayer ( ) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::EndPolygon2d ( ) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::EndPolyline ( ) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::EndPolyline2d ( ) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Environment ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::EraseStructure ( const Graphic3d_CView ACView,
const Graphic3d_CStructure ACStructure 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual Standard_Boolean Graphic3d_GraphicDriver::Export ( const Standard_CString  theFileName,
const Graphic3d_ExportFormat  theFormat,
const Graphic3d_SortType  theSortType,
const Standard_Integer  theWidth,
const Standard_Integer  theHeight,
const Graphic3d_CView theView,
const Aspect_CLayer2d theLayerUnder,
const Aspect_CLayer2d theLayerOver,
const Standard_Real  thePrecision = 0.005,
const Standard_Address  theProgressBarFunc = NULL,
const Standard_Address  theProgressObject = NULL 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::FaceContextGroup ( const Graphic3d_CGroup ACGroup,
const Standard_Integer  NoInsert 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::FBOGetDimensions ( const Graphic3d_CView view,
const Graphic3d_PtrFrameBuffer  fboPtr,
Standard_Integer width,
Standard_Integer height,
Standard_Integer widthMax,
Standard_Integer heightMax 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::FBORelease ( const Graphic3d_CView view,
Graphic3d_PtrFrameBuffer fboPtr 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual Standard_Integer Graphic3d_GraphicDriver::GetZLayer ( const Graphic3d_CStructure theCStructure) const [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::GradientBackground ( const Graphic3d_CView ACView,
const Quantity_Color AColor1,
const Quantity_Color AColor2,
const Aspect_GradientFillMethod  FillStyle 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Group ( Graphic3d_CGroup ACGroup) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::InquireMat ( const Graphic3d_CView ACView,
TColStd_Array2OfReal AMatO,
TColStd_Array2OfReal AMatM 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Layer ( Aspect_CLayer2d ACLayer) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::LineContextGroup ( const Graphic3d_CGroup ACGroup,
const Standard_Integer  NoInsert 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Marker ( const Graphic3d_CGroup ACGroup,
const Graphic3d_Vertex APoint,
const Standard_Boolean  EvalMinMax = Standard_True 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::MarkerContextGroup ( const Graphic3d_CGroup ACGroup,
const Standard_Integer  NoInsert 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::MarkerContextGroup ( const Graphic3d_CGroup ACGroup,
const Standard_Integer  NoInsert,
const Standard_Integer  AMarkWidth,
const Standard_Integer  AMarkHeight,
const Handle< TColStd_HArray1OfByte > &  ATexture 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::MarkerSet ( const Graphic3d_CGroup ACGroup,
const Graphic3d_Array1OfVertex ListVertex,
const Standard_Boolean  EvalMinMax = Standard_True 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual Standard_Boolean Graphic3d_GraphicDriver::MemoryInfo ( Standard_Size theFreeBytes,
TCollection_AsciiString theInfo 
) const [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::ModifyTexture ( const Standard_Integer  TexId,
const Graphic3d_CInitTexture AValue 
) const [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::NameSetStructure ( const Graphic3d_CStructure ACStructure) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::OpenGroup ( const Graphic3d_CGroup ACGroup) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual Standard_Boolean Graphic3d_GraphicDriver::Print ( const Graphic3d_CView ACView,
const Aspect_CLayer2d ACUnderLayer,
const Aspect_CLayer2d ACOverLayer,
const Aspect_Handle  hPrnDC,
const Standard_Boolean  showBackground,
const Standard_CString  filename,
const Aspect_PrintAlgo  printAlgorithm = Aspect_PA_STRETCH,
const Standard_Real  theScaleFactor = 1.0 
) const [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::RatioWindow ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Redraw ( const Graphic3d_CView ACView,
const Aspect_CLayer2d ACUnderLayer,
const Aspect_CLayer2d ACOverLayer,
const Standard_Integer  x = 0,
const Standard_Integer  y = 0,
const Standard_Integer  width = 0,
const Standard_Integer  height = 0 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::RemoveGroup ( const Graphic3d_CGroup ACGroup) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::RemoveLayer ( const Aspect_CLayer2d ACLayer) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::RemoveStructure ( const Graphic3d_CStructure ACStructure) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::RemoveView ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::RemoveZLayer ( const Graphic3d_CView theCView,
const Standard_Integer  theLayerId 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::SetBgImageStyle ( const Graphic3d_CView ACView,
const Aspect_FillMethod  FillStyle 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::SetDepthTestEnabled ( const Graphic3d_CView view,
const Standard_Boolean  isEnabled 
) const [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::SetGLLightEnabled ( const Graphic3d_CView view,
const Standard_Boolean  isEnabled 
) const [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::SetLight ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::SetPlane ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::SetTransparency ( const Standard_ShortReal  ATransparency) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Structure ( Graphic3d_CStructure ACStructure) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Text ( const Graphic3d_CGroup ACGroup,
const Standard_CString  AText,
const Graphic3d_Vertex APoint,
const Standard_Real  AHeight,
const Standard_Boolean  EvalMinMax = Standard_True 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::TextContextGroup ( const Graphic3d_CGroup ACGroup,
const Standard_Integer  NoInsert 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::TextSize ( const Standard_CString  AText,
const Standard_ShortReal  AHeight,
Standard_ShortReal AWidth,
Standard_ShortReal AnAscent,
Standard_ShortReal ADescent 
) const [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Transparency ( const Graphic3d_CView ACView,
const Standard_Boolean  AFlag 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::TriedronErase ( const Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::UnsetZLayer ( const Standard_Integer  theLayerId) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::Update ( const Graphic3d_CView ACView,
const Aspect_CLayer2d ACUnderLayer,
const Aspect_CLayer2d ACOverLayer 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::UserDraw ( const Graphic3d_CGroup ACGroup,
const Graphic3d_CUserDraw AUserDraw 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual Standard_Boolean Graphic3d_GraphicDriver::View ( Graphic3d_CView ACView) [pure virtual]

Implemented in OpenGl_GraphicDriver.

virtual void Graphic3d_GraphicDriver::ViewMapping ( const Graphic3d_CView ACView,
const Standard_Boolean  AWait 
) [pure virtual]

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.

Implemented in OpenGl_GraphicDriver.


Field Documentation


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