|
| OpenGl_GraphicDriver (const Handle< Aspect_DisplayConnection > &theDisp, const Standard_Boolean theToInitialize=Standard_True) |
| Constructor. More...
|
|
virtual | ~OpenGl_GraphicDriver () |
| Destructor. More...
|
|
void | ReleaseContext () |
| Release default context. More...
|
|
Standard_Boolean | InitContext () |
| Perform initialization of default OpenGL context. More...
|
|
Standard_Integer | InquireLightLimit () |
| call_togl_inquirelight More...
|
|
Standard_Integer | InquireViewLimit () |
| call_togl_inquireview More...
|
|
void | DisplayStructure (const Graphic3d_CView &theCView, const Handle< Graphic3d_Structure > &theStructure, const Standard_Integer thePriority) |
| call_togl_displaystructure More...
|
|
void | EraseStructure (const Graphic3d_CView &theCView, const Handle< Graphic3d_Structure > &theStructure) |
| call_togl_erasestructure More...
|
|
void | RemoveStructure (Handle< Graphic3d_CStructure > &theCStructure) |
| call_togl_removestructure More...
|
|
Handle< Graphic3d_CStructure > | Structure (const Handle< Graphic3d_StructureManager > &theManager) |
| Creates new empty graphic structure. More...
|
|
Standard_Boolean | SetImmediateModeDrawToFront (const Graphic3d_CView &theCView, const Standard_Boolean theDrawToFrontBuffer) |
|
void | DisplayImmediateStructure (const Graphic3d_CView &theCView, const Handle< Graphic3d_Structure > &theStructure) |
| Display structure in immediate mode on top of general presentation. More...
|
|
void | EraseImmediateStructure (const Graphic3d_CView &theCView, const Graphic3d_CStructure &theCStructure) |
| Erases immediate structure. More...
|
|
void | ActivateView (const Graphic3d_CView &ACView) |
| call_togl_activateview More...
|
|
void | AntiAliasing (const Graphic3d_CView &ACView, const Standard_Boolean AFlag) |
| call_togl_antialiasing More...
|
|
void | Background (const Graphic3d_CView &ACView) |
| call_togl_background More...
|
|
void | GradientBackground (const Graphic3d_CView &ACView, const Quantity_Color &AColor1, const Quantity_Color &AColor2, const Aspect_GradientFillMethod FillStyle) |
| call_togl_gradient_background More...
|
|
void | BackgroundImage (const Standard_CString FileName, const Graphic3d_CView &ACView, const Aspect_FillMethod FillStyle) |
|
void | SetBgImageStyle (const Graphic3d_CView &ACView, const Aspect_FillMethod FillStyle) |
|
void | SetBgGradientStyle (const Graphic3d_CView &ACView, const Aspect_GradientFillMethod FillStyle) |
|
void | ClipLimit (const Graphic3d_CView &ACView, const Standard_Boolean AWait) |
| call_togl_cliplimit More...
|
|
void | DeactivateView (const Graphic3d_CView &ACView) |
| call_togl_deactivateview More...
|
|
void | DepthCueing (const Graphic3d_CView &ACView, const Standard_Boolean AFlag) |
| call_togl_cliplimit More...
|
|
void | RatioWindow (const Graphic3d_CView &ACView) |
| call_togl_ratio_window More...
|
|
void | Redraw (const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer, const Standard_Integer theX=0, const Standard_Integer theY=0, const Standard_Integer theWidth=0, const Standard_Integer theHeight=0) |
| Redraw content of the view. More...
|
|
void | RedrawImmediate (const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer) |
| Redraw layer of immediate presentations. More...
|
|
void | Invalidate (const Graphic3d_CView &theCView) |
| Invalidates content of the view but does not redraw it. More...
|
|
void | RemoveView (const Graphic3d_CView &ACView) |
| call_togl_removeview More...
|
|
void | SetLight (const Graphic3d_CView &ACView) |
| call_togl_setlight More...
|
|
void | SetClipPlanes (const Graphic3d_CView &theCView) |
| Pass clip planes to the associated graphic driver view. More...
|
|
void | SetCamera (const Graphic3d_CView &theCView) |
| Inform graphic driver if camera assigned to view changes. More...
|
|
void | SetVisualisation (const Graphic3d_CView &ACView) |
| call_togl_setvisualisation More...
|
|
Standard_Boolean | View (Graphic3d_CView &ACView) |
| call_togl_view More...
|
|
void | Environment (const Graphic3d_CView &ACView) |
|
void | ZBufferTriedronSetup (const Graphic3d_CView &theCView, 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) |
| call_togl_ztriedron_setup More...
|
|
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) |
| call_togl_triedron_display More...
|
|
void | TriedronErase (const Graphic3d_CView &ACView) |
| call_togl_triedron_erase More...
|
|
void | TriedronEcho (const Graphic3d_CView &ACView, const Aspect_TypeOfTriedronEcho AType=Aspect_TOTE_NONE) |
| call_togl_triedron_echo More...
|
|
void | GraduatedTrihedronDisplay (const Graphic3d_CView &theView, const Graphic3d_GraduatedTrihedron &theCubic) |
| Displays Graduated trihedron. More...
|
|
void | GraduatedTrihedronErase (const Graphic3d_CView &theView) |
| Erases Graduated Trihedron from the view. theView [in] graphic view. More...
|
|
void | GraduatedTrihedronMinMaxValues (const Graphic3d_CView &theView, const Graphic3d_Vec3 theMin, const Graphic3d_Vec3 theMax) |
| Sets minimum and maximum points of scene bounding box for Graduated Trihedron stored in graphic view object. More...
|
|
void | Layer (Aspect_CLayer2d &ACLayer) |
| call_togl_layer2d More...
|
|
void | RemoveLayer (const Aspect_CLayer2d &ACLayer) |
| call_togl_removelayer2d More...
|
|
void | BeginLayer (const Aspect_CLayer2d &ACLayer) |
| call_togl_begin_layer2d More...
|
|
void | BeginPolygon2d () |
| call_togl_begin_polygon2d More...
|
|
void | BeginPolyline2d () |
| call_togl_begin_polyline2d More...
|
|
void | ClearLayer (const Aspect_CLayer2d &ACLayer) |
| call_togl_clear_layer2d More...
|
|
void | Draw (const Standard_ShortReal X, const Standard_ShortReal Y) |
| call_togl_draw2d More...
|
|
void | Edge (const Standard_ShortReal X, const Standard_ShortReal Y) |
| call_togl_edge2d More...
|
|
void | EndLayer () |
| call_togl_end_layer2d More...
|
|
void | EndPolygon2d () |
| call_togl_end_polygon2d More...
|
|
void | EndPolyline2d () |
| call_togl_end_polyline2d More...
|
|
void | Move (const Standard_ShortReal X, const Standard_ShortReal Y) |
| call_togl_move2d More...
|
|
void | Rectangle (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal Width, const Standard_ShortReal Height) |
| call_togl_rectangle2d More...
|
|
void | SetColor (const Standard_ShortReal R, const Standard_ShortReal G, const Standard_ShortReal B) |
| call_togl_set_color More...
|
|
void | SetTransparency (const Standard_ShortReal ATransparency) |
| call_togl_set_transparency More...
|
|
void | UnsetTransparency () |
| call_togl_unset_transparency More...
|
|
void | SetLineAttributes (const Standard_Integer Type, const Standard_ShortReal Width) |
| call_togl_set_line_attributes More...
|
|
void | SetTextAttributes (const Standard_CString theFontName, const Standard_Integer theType, const Standard_ShortReal theR, const Standard_ShortReal theG, const Standard_ShortReal theB) |
| Set text attributes for under-/overlayer. More...
|
|
void | Text (const Standard_CString AText, const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal AHeight) |
| call_togl_text2d If AHeight < 0 default text height is used by driver (DefaultTextHeight method) More...
|
|
void | TextSize (const Standard_CString AText, const Standard_ShortReal AHeight, Standard_ShortReal &AWidth, Standard_ShortReal &AnAscent, Standard_ShortReal &ADescent) const |
| call_togl_textsize2d More...
|
|
void | SetBackFacingModel (const Graphic3d_CView &aView) |
| call_togl_backfacing More...
|
|
Standard_Boolean | Print (const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer, const Aspect_Handle thePrinterDC, const Standard_Boolean theToShowBackground, const Standard_CString theFileName, const Aspect_PrintAlgo thePrintAlgorithm=Aspect_PA_STRETCH, const Standard_Real theScaleFactor=1.0) const |
| Print the contents of all layers of the view to the printer. More...
|
|
void | SetDepthTestEnabled (const Graphic3d_CView &view, const Standard_Boolean isEnabled) const |
| call_togl_depthtest More...
|
|
Standard_Boolean | IsDepthTestEnabled (const Graphic3d_CView &view) const |
| call_togl_isdepthtest More...
|
|
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 |
| Reads depths of shown pixels of the given rectangle (glReadPixels with GL_DEPTH_COMPONENT) More...
|
|
Graphic3d_PtrFrameBuffer | FBOCreate (const Graphic3d_CView &view, const Standard_Integer width, const Standard_Integer height) |
| Generate offscreen FBO (needs OpenGL2+ hardware). If not supported on hardware returns NULL. More...
|
|
void | FBORelease (const Graphic3d_CView &view, Graphic3d_PtrFrameBuffer &fboPtr) |
| Remove offscreen FBO. More...
|
|
Standard_Boolean | BufferDump (const Graphic3d_CView &theCView, Image_PixMap &theImage, const Graphic3d_BufferType &theBufferType) |
| Dump active rendering buffer into specified memory buffer. More...
|
|
void | SetGLLightEnabled (const Graphic3d_CView &view, const Standard_Boolean isEnabled) const |
| call_togl_gllight More...
|
|
Standard_Boolean | IsGLLightEnabled (const Graphic3d_CView &view) const |
| call_togl_isgllight More...
|
|
Standard_Integer | InquirePlaneLimit () |
| call_togl_inquireplane More...
|
|
Standard_ShortReal | DefaultTextHeight () const |
|
void | FBOGetDimensions (const Graphic3d_CView &view, const Graphic3d_PtrFrameBuffer fboPtr, Standard_Integer &width, Standard_Integer &height, Standard_Integer &widthMax, Standard_Integer &heightMax) |
| Read offscreen FBO configuration. More...
|
|
void | FBOChangeViewport (const Graphic3d_CView &view, Graphic3d_PtrFrameBuffer &fboPtr, const Standard_Integer width, const Standard_Integer height) |
| Change offscreen FBO viewport. More...
|
|
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) |
| 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. More...
|
|
void | AddZLayer (const Graphic3d_CView &theCView, const Graphic3d_ZLayerId theLayerId) |
| 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 index for the structure. More...
|
|
void | RemoveZLayer (const Graphic3d_CView &theCView, const Graphic3d_ZLayerId theLayerId) |
| 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 index from associated structures use method UnsetZLayer (...). More...
|
|
void | UnsetZLayer (const Graphic3d_ZLayerId theLayerId) |
| Unset Z layer ID for all structures. The structure indexes will be set to default layer (the bottom-level z layer with ID = 0). More...
|
|
void | ChangeZLayer (const Graphic3d_CStructure &theCStructure, const Graphic3d_CView &theCView, const Graphic3d_ZLayerId theNewLayerId) |
| Change Z layer of a structure already presented in view. It is recommended to update z layer of already displayed structures with this method before setting new z layer index to the structure. This is usually done by viewer manager. More...
|
|
void | SetZLayerSettings (const Graphic3d_CView &theCView, const Graphic3d_ZLayerId theLayerId, const Graphic3d_ZLayerSettings &theSettings) |
| Sets the settings for a single Z layer of specified view. More...
|
|
void | ChangePriority (const Graphic3d_CStructure &theCStructure, const Graphic3d_CView &theCView, const Standard_Integer theNewPriority) |
| Changes priority of a structure within its Z layer for the specified view. More...
|
|
const OpenGl_Caps & | Options () const |
|
OpenGl_Caps & | ChangeOptions () |
|
void | EnableVBO (const Standard_Boolean theToTurnOn) |
| VBO usage can be forbidden by this method even if it is supported by GL driver. Notice that disabling of VBO will cause rendering performance degradation. Warning! This method should be called only before any primitives are displayed in GL scene! More...
|
|
Standard_Boolean | MemoryInfo (Standard_Size &theFreeBytes, TCollection_AsciiString &theInfo) const |
| Returns information about GPU memory usage. Please read OpenGl_Context::MemoryInfo() for more description. More...
|
|
OpenGl_UserDrawCallback_t & | UserDrawCallback () |
| Method to setup UserDraw callback. More...
|
|
const Handle< OpenGl_Context > & | GetSharedContext () const |
| Method to retrieve valid GL context. Could return NULL-handle if no window created by this driver. More...
|
|
void | InvalidateBVHData (Graphic3d_CView &theCView, const Standard_Integer theLayerId) |
| Marks BVH tree for given priority list as dirty and marks primitive set for rebuild. More...
|
|
OpenGl_StateCounter * | GetStateCounter () const |
| State counter for OpenGl structures. More...
|
|
const Standard_Size | GetNextPrimitiveArrayUID () const |
| Returns unique ID for primitive arrays. More...
|
|
void | PrintBoolean (const Standard_CString AComment, const Standard_Boolean AValue) const |
|
void | PrintCLight (const Graphic3d_CLight &ACLight, 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 |
|
const Handle< Aspect_DisplayConnection > & | GetDisplayConnection () const |
| returns Handle to display connection More...
|
|
Standard_Boolean | IsDeviceLost () const |
|
void | ResetDeviceLostFlag () |
|
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_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. More...
|
|
virtual | ~Standard_Transient () |
| Destructor must be virtual. More...
|
|
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...
|
|