This class allows the definition of a graphic driver for 3d interface (currently only OpenGl driver is used).
More...
|
virtual Standard_Integer | InquireLightLimit ()=0 |
| call_togl_inquirelight More...
|
|
virtual Standard_Integer | InquirePlaneLimit ()=0 |
| call_togl_inquireplane More...
|
|
virtual Standard_Integer | InquireViewLimit ()=0 |
| call_togl_inquireview More...
|
|
virtual void | DisplayStructure (const Graphic3d_CView &theCView, const Handle< Graphic3d_Structure > &theStructure, const Standard_Integer thePriority)=0 |
| call_togl_displaystructure More...
|
|
virtual void | EraseStructure (const Graphic3d_CView &theCView, const Handle< Graphic3d_Structure > &theStructure)=0 |
| call_togl_erasestructure More...
|
|
virtual void | RemoveStructure (Handle< Graphic3d_CStructure > &theCStructure)=0 |
| call_togl_removestructure More...
|
|
virtual Handle
< Graphic3d_CStructure > | Structure (const Handle< Graphic3d_StructureManager > &theManager)=0 |
| Creates new empty graphic structure. More...
|
|
virtual void | ActivateView (const Graphic3d_CView &ACView)=0 |
| call_togl_activateview More...
|
|
virtual void | AntiAliasing (const Graphic3d_CView &ACView, const Standard_Boolean AFlag)=0 |
| call_togl_antialiasing More...
|
|
virtual void | Background (const Graphic3d_CView &ACView)=0 |
| call_togl_background More...
|
|
virtual void | GradientBackground (const Graphic3d_CView &ACView, const Quantity_Color &AColor1, const Quantity_Color &AColor2, const Aspect_GradientFillMethod FillStyle)=0 |
| call_togl_gradient_background More...
|
|
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 More...
|
|
virtual void | DeactivateView (const Graphic3d_CView &ACView)=0 |
| call_togl_deactivateview More...
|
|
virtual void | DepthCueing (const Graphic3d_CView &ACView, const Standard_Boolean AFlag)=0 |
| call_togl_cliplimit More...
|
|
virtual void | RatioWindow (const Graphic3d_CView &ACView)=0 |
| call_togl_ratio_window More...
|
|
virtual 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)=0 |
| Redraw content of the view. More...
|
|
virtual void | RedrawImmediate (const Graphic3d_CView &theCView, const Aspect_CLayer2d &theCUnderLayer, const Aspect_CLayer2d &theCOverLayer)=0 |
| Redraw layer of immediate presentations. More...
|
|
virtual void | Invalidate (const Graphic3d_CView &theCView)=0 |
| Invalidates content of the view but does not redraw it. More...
|
|
virtual void | RemoveView (const Graphic3d_CView &ACView)=0 |
| call_togl_removeview More...
|
|
virtual void | SetLight (const Graphic3d_CView &ACView)=0 |
| call_togl_setlight More...
|
|
virtual void | SetClipPlanes (const Graphic3d_CView &theCView)=0 |
| Pass clip planes to the associated graphic driver view. More...
|
|
virtual void | SetCamera (const Graphic3d_CView &theCView)=0 |
| Inform graphic driver if camera assigned to view changes. More...
|
|
virtual void | SetVisualisation (const Graphic3d_CView &ACView)=0 |
| call_togl_setvisualisation More...
|
|
virtual Standard_Boolean | View (Graphic3d_CView &ACView)=0 |
| call_togl_view More...
|
|
virtual void | Environment (const Graphic3d_CView &ACView)=0 |
|
virtual void | EnableVBO (const Standard_Boolean status)=0 |
| enables/disables usage of OpenGL vertex buffer arrays while drawing primitiev arrays More...
|
|
virtual Standard_Boolean | MemoryInfo (Standard_Size &theFreeBytes, TCollection_AsciiString &theInfo) const =0 |
| Returns information about GPU memory usage. More...
|
|
virtual 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)=0 |
| call_togl_ztriedron_setup More...
|
|
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 More...
|
|
virtual void | TriedronErase (const Graphic3d_CView &ACView)=0 |
| call_togl_triedron_erase More...
|
|
virtual void | TriedronEcho (const Graphic3d_CView &ACView, const Aspect_TypeOfTriedronEcho AType=Aspect_TOTE_NONE)=0 |
| call_togl_triedron_echo More...
|
|
virtual void | GraduatedTrihedronDisplay (const Graphic3d_CView &theView, const Graphic3d_GraduatedTrihedron &theCubic)=0 |
| call_togl_graduatedtrihedron_display More...
|
|
virtual void | GraduatedTrihedronErase (const Graphic3d_CView &theView)=0 |
| call_togl_graduatedtrihedron_erase More...
|
|
virtual void | GraduatedTrihedronMinMaxValues (const Graphic3d_CView &theView, const Graphic3d_Vec3 theMin, const Graphic3d_Vec3 theMax)=0 |
| Sets minimum and maximum points of scene bounding box for Graduated Trihedron stored in graphic view object. More...
|
|
virtual Standard_Boolean | SetImmediateModeDrawToFront (const Graphic3d_CView &theCView, const Standard_Boolean theDrawToFrontBuffer)=0 |
|
virtual void | DisplayImmediateStructure (const Graphic3d_CView &theCView, const Handle< Graphic3d_Structure > &theStructure)=0 |
| Display structure in immediate mode on top of general presentation. More...
|
|
virtual void | EraseImmediateStructure (const Graphic3d_CView &theCView, const Graphic3d_CStructure &theCStructure)=0 |
| Erases immediate structure. More...
|
|
virtual void | Layer (Aspect_CLayer2d &ACLayer)=0 |
| call_togl_layer2d More...
|
|
virtual void | RemoveLayer (const Aspect_CLayer2d &ACLayer)=0 |
| call_togl_removelayer2d More...
|
|
virtual void | BeginLayer (const Aspect_CLayer2d &ACLayer)=0 |
| call_togl_begin_layer2d More...
|
|
virtual void | BeginPolygon2d ()=0 |
| call_togl_begin_polygon2d More...
|
|
virtual void | BeginPolyline2d ()=0 |
| call_togl_begin_polyline2d More...
|
|
virtual void | ClearLayer (const Aspect_CLayer2d &ACLayer)=0 |
| call_togl_clear_layer2d More...
|
|
virtual void | Draw (const Standard_ShortReal X, const Standard_ShortReal Y)=0 |
| call_togl_draw2d More...
|
|
virtual void | Edge (const Standard_ShortReal X, const Standard_ShortReal Y)=0 |
| call_togl_edge2d More...
|
|
virtual void | EndLayer ()=0 |
| call_togl_end_layer2d More...
|
|
virtual void | EndPolygon2d ()=0 |
| call_togl_end_polygon2d More...
|
|
virtual void | EndPolyline2d ()=0 |
| call_togl_end_polyline2d More...
|
|
virtual void | Move (const Standard_ShortReal X, const Standard_ShortReal Y)=0 |
| call_togl_move2d More...
|
|
virtual void | Rectangle (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal Width, const Standard_ShortReal Height)=0 |
| call_togl_rectangle2d More...
|
|
virtual void | SetColor (const Standard_ShortReal R, const Standard_ShortReal G, const Standard_ShortReal B)=0 |
| call_togl_set_color More...
|
|
virtual void | SetTransparency (const Standard_ShortReal ATransparency)=0 |
| call_togl_set_transparency More...
|
|
virtual void | UnsetTransparency ()=0 |
| call_togl_unset_transparency More...
|
|
virtual void | SetLineAttributes (const Standard_Integer Type, const Standard_ShortReal Width)=0 |
| call_togl_set_line_attributes More...
|
|
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. More...
|
|
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) More...
|
|
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 More...
|
|
virtual void | SetBackFacingModel (const Graphic3d_CView &aView)=0 |
| call_togl_backfacing More...
|
|
virtual void | SetDepthTestEnabled (const Graphic3d_CView &view, const Standard_Boolean isEnabled) const =0 |
| call_togl_depthtest More...
|
|
virtual Standard_Boolean | IsDepthTestEnabled (const Graphic3d_CView &view) const =0 |
| call_togl_isdepthtest More...
|
|
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) More...
|
|
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. More...
|
|
virtual void | FBORelease (const Graphic3d_CView &view, Graphic3d_PtrFrameBuffer &fboPtr)=0 |
| Remove offscreen FBO from the graphic library. More...
|
|
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. More...
|
|
virtual void | FBOChangeViewport (const Graphic3d_CView &view, Graphic3d_PtrFrameBuffer &fboPtr, const Standard_Integer width, const Standard_Integer height)=0 |
| Change offscreen FBO viewport. More...
|
|
virtual Standard_Boolean | BufferDump (const Graphic3d_CView &theCView, Image_PixMap &theImage, const Graphic3d_BufferType &theBufferType)=0 |
| Dump active rendering buffer into specified memory buffer. More...
|
|
virtual void | SetGLLightEnabled (const Graphic3d_CView &view, const Standard_Boolean isEnabled) const =0 |
| call_togl_gllight More...
|
|
virtual Standard_Boolean | IsGLLightEnabled (const Graphic3d_CView &view) const =0 |
| call_togl_isgllight More...
|
|
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. More...
|
|
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. More...
|
|
virtual void | InvalidateBVHData (Graphic3d_CView &theCView, const Standard_Integer theLayerId)=0 |
| Marks BVH tree and the set of BVH primitives of correspondent priority list with id theLayerId as outdated. More...
|
|
virtual void | AddZLayer (const Graphic3d_CView &theCView, const Graphic3d_ZLayerId 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. More...
|
|
virtual void | RemoveZLayer (const Graphic3d_CView &theCView, const Graphic3d_ZLayerId 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 (...). More...
|
|
virtual void | UnsetZLayer (const Graphic3d_ZLayerId 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 ). More...
|
|
virtual void | ChangeZLayer (const Graphic3d_CStructure &theCStructure, const Graphic3d_CView &theCView, const Graphic3d_ZLayerId theNewLayerId)=0 |
| Change Z layer of a structure already presented in view. More...
|
|
virtual void | SetZLayerSettings (const Graphic3d_CView &theCView, const Graphic3d_ZLayerId theLayerId, const Graphic3d_ZLayerSettings &theSettings)=0 |
| Sets the settings for a single Z layer of specified view. More...
|
|
virtual void | ChangePriority (const Graphic3d_CStructure &theCStructure, const Graphic3d_CView &theCView, const Standard_Integer theNewPriority)=0 |
| Changes the priority of a structure within its Z layer in the specified view. 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...
|
|