|
| D3DHost_View (const Handle< Graphic3d_StructureManager > &theMgr, const Handle< D3DHost_GraphicDriver > &theDriver, const Handle< OpenGl_Caps > &theCaps, OpenGl_StateCounter *theCounter) |
| Constructor.
|
|
virtual | ~D3DHost_View () |
| Default destructor.
|
|
virtual void | ReleaseGlResources (const Handle< OpenGl_Context > &theCtx) override |
| Release OpenGL resources.
|
|
virtual void | SetWindow (const Handle< Graphic3d_CView > &theParentVIew, const Handle< Aspect_Window > &theWindow, const Aspect_RenderingContext theContext) override |
| Creates and maps rendering window to the view.
|
|
virtual void | Resized () override |
| Resizes the window.
|
|
virtual void | Redraw () override |
| Redraw the all content.
|
|
virtual void | RedrawImmediate () override |
| Redraw only immediate layer.
|
|
virtual void | DiagnosticInformation (TColStd_IndexedDataMapOfStringString &theDict, Graphic3d_DiagnosticInfo theFlags) const override |
| Fill in the dictionary with diagnostic info. Should be called within rendering thread.
|
|
bool | isD3dEx () const |
|
IDirect3DDevice9 * | D3dDevice () const |
| Access Direct3D device instance.
|
|
const Handle< D3DHost_FrameBuffer > & | D3dWglBuffer () const |
| Return D3D/WGL FBO.
|
|
IDirect3DSurface9 * | D3dColorSurface () const |
| Return D3D surface.
|
|
| OpenGl_View (const Handle< Graphic3d_StructureManager > &theMgr, const Handle< OpenGl_GraphicDriver > &theDriver, const Handle< OpenGl_Caps > &theCaps, OpenGl_StateCounter *theCounter) |
| Constructor.
|
|
virtual | ~OpenGl_View () |
| Default destructor.
|
|
virtual void | Remove () override |
| Deletes and erases the view.
|
|
Standard_Boolean | SetImmediateModeDrawToFront (const Standard_Boolean theDrawToFrontBuffer) override |
|
virtual Handle< Aspect_Window > | Window () const override |
| Returns window associated with the view.
|
|
virtual Standard_Boolean | IsDefined () const override |
| Returns True if the window associated to the view is defined.
|
|
virtual void | Invalidate () override |
| Marks BVH tree for given priority list as dirty and marks primitive set for rebuild.
|
|
virtual Standard_Boolean | IsInvalidated () override |
| Return true if view content cache has been invalidated.
|
|
virtual Standard_Boolean | BufferDump (Image_PixMap &theImage, const Graphic3d_BufferType &theBufferType) override |
| Dump active rendering buffer into specified memory buffer. In Ray-Tracing allow to get a raw HDR buffer using Graphic3d_BT_RGB_RayTraceHdrLeft buffer type, only Left view will be dumped ignoring stereoscopic parameter.
|
|
virtual void | InvalidateBVHData (const Graphic3d_ZLayerId theLayerId) override |
| Marks BVH tree and the set of BVH primitives of correspondent priority list with id theLayerId as outdated.
|
|
virtual void | InsertLayerBefore (const Graphic3d_ZLayerId theLayerId, const Graphic3d_ZLayerSettings &theSettings, const Graphic3d_ZLayerId theLayerAfter) override |
| Add a layer to the view.
|
|
virtual void | InsertLayerAfter (const Graphic3d_ZLayerId theNewLayerId, const Graphic3d_ZLayerSettings &theSettings, const Graphic3d_ZLayerId theLayerBefore) override |
| Add a layer to the view.
|
|
virtual void | RemoveZLayer (const Graphic3d_ZLayerId theLayerId) override |
| Remove a z layer with the given ID.
|
|
virtual void | SetZLayerSettings (const Graphic3d_ZLayerId theLayerId, const Graphic3d_ZLayerSettings &theSettings) override |
| Sets the settings for a single Z layer of specified view.
|
|
virtual Standard_Integer | ZLayerMax () const override |
| Returns the maximum Z layer ID. First layer ID is Graphic3d_ZLayerId_Default, last ID is ZLayerMax().
|
|
virtual const NCollection_List< Handle< Graphic3d_Layer > > & | Layers () const override |
| Returns the list of layers.
|
|
virtual Handle< Graphic3d_Layer > | Layer (const Graphic3d_ZLayerId theLayerId) const override |
| Returns layer with given ID or NULL if undefined.
|
|
virtual Bnd_Box | MinMaxValues (const Standard_Boolean theToIncludeAuxiliary) const override |
| Returns the bounding box of all structures displayed in the view. If theToIncludeAuxiliary is TRUE, then the boundary box also includes minimum and maximum limits of graphical elements forming parts of infinite and other auxiliary structures.
|
|
virtual Handle< Standard_Transient > | FBO () const override |
| Returns pointer to an assigned framebuffer object.
|
|
virtual void | SetFBO (const Handle< Standard_Transient > &theFbo) override |
| Sets framebuffer object for offscreen rendering.
|
|
virtual Handle< Standard_Transient > | FBOCreate (const Standard_Integer theWidth, const Standard_Integer theHeight) override |
| Generate offscreen FBO in the graphic library. If not supported on hardware returns NULL.
|
|
virtual void | FBORelease (Handle< Standard_Transient > &theFbo) override |
| Remove offscreen FBO from the graphic library.
|
|
virtual void | FBOGetDimensions (const Handle< Standard_Transient > &theFbo, Standard_Integer &theWidth, Standard_Integer &theHeight, Standard_Integer &theWidthMax, Standard_Integer &theHeightMax) override |
| Read offscreen FBO configuration.
|
|
virtual void | FBOChangeViewport (const Handle< Standard_Transient > &theFbo, const Standard_Integer theWidth, const Standard_Integer theHeight) override |
| Change offscreen FBO viewport.
|
|
const Handle< OpenGl_DepthPeeling > & | DepthPeelingFbos () const |
| Returns additional buffers for depth peeling OIT.
|
|
virtual Aspect_GradientBackground | GradientBackground () const override |
| Returns gradient background fill colors.
|
|
virtual void | SetGradientBackground (const Aspect_GradientBackground &theBackground) override |
| Sets gradient background fill colors.
|
|
virtual void | SetBackgroundImage (const Handle< Graphic3d_TextureMap > &theTextureMap, Standard_Boolean theToUpdatePBREnv=Standard_True) override |
| Sets image texture or environment cubemap as background.
|
|
virtual void | SetTextureEnv (const Handle< Graphic3d_TextureEnv > &theTextureEnv) override |
| Sets environment texture for the view.
|
|
virtual Aspect_FillMethod | BackgroundImageStyle () const override |
| Returns background image fill style.
|
|
virtual void | SetBackgroundImageStyle (const Aspect_FillMethod theFillStyle) override |
| Sets background image fill style.
|
|
virtual void | SetImageBasedLighting (Standard_Boolean theToEnableIBL) override |
| Enables or disables IBL (Image Based Lighting) from background cubemap. Has no effect if PBR is not used.
|
|
unsigned int | SpecIBLMapLevels () const |
| Returns number of mipmap levels used in specular IBL map. 0 if PBR environment is not created.
|
|
const gp_XYZ & | LocalOrigin () const |
| Returns local camera origin currently set for rendering, might be modified during rendering.
|
|
void | SetLocalOrigin (const gp_XYZ &theOrigin) |
| Setup local camera origin currently set for rendering.
|
|
virtual const Handle< Graphic3d_LightSet > & | Lights () const override |
| Returns list of lights of the view.
|
|
virtual void | SetLights (const Handle< Graphic3d_LightSet > &theLights) override |
| Sets list of lights for the view.
|
|
virtual const Handle< Graphic3d_SequenceOfHClipPlane > & | ClipPlanes () const override |
| Returns list of clip planes set for the view.
|
|
virtual void | SetClipPlanes (const Handle< Graphic3d_SequenceOfHClipPlane > &thePlanes) override |
| Sets list of clip planes for the view.
|
|
virtual TCollection_AsciiString | StatisticInformation () const override |
| Returns string with statistic performance info.
|
|
virtual void | StatisticInformation (TColStd_IndexedDataMapOfStringString &theDict) const override |
| Fills in the dictionary with statistic performance info.
|
|
const Quantity_ColorRGBA & | BackgroundColor () const |
| Returns background color.
|
|
OpenGl_GraduatedTrihedron & | ChangeGraduatedTrihedron () |
| Change graduated trihedron.
|
|
void | SetTextureEnv (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_TextureEnv > &theTexture) |
|
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) |
|
const OpenGl_LayerList & | LayerList () const |
| Returns list of OpenGL Z-layers.
|
|
const Handle< OpenGl_Window > & | GlWindow () const |
| Returns OpenGL window implementation.
|
|
const Handle< OpenGl_TextureSet > & | GlTextureEnv () const |
| Returns OpenGL environment map.
|
|
const Graphic3d_CullingTool & | BVHTreeSelector () const |
| Returns selector for BVH tree, providing a possibility to store information about current view volume and to detect which objects are overlapping it.
|
|
bool | HasImmediateStructures () const |
| Returns true if there are immediate structures to display.
|
|
virtual void | GraduatedTrihedronDisplay (const Graphic3d_GraduatedTrihedron &theTrihedronData) override |
| Displays Graduated Trihedron.
|
|
virtual void | GraduatedTrihedronErase () override |
| Erases Graduated Trihedron.
|
|
virtual void | GraduatedTrihedronMinMaxValues (const Graphic3d_Vec3 theMin, const Graphic3d_Vec3 theMax) override |
| Sets minimum and maximum points of scene bounding box for Graduated Trihedron stored in graphic view object.
|
|
| Graphic3d_CView (const Handle< Graphic3d_StructureManager > &theMgr) |
| Constructor.
|
|
virtual | ~Graphic3d_CView () |
| Destructor.
|
|
Standard_Integer | Identification () const |
| Returns the identification number of the view.
|
|
virtual void | Activate () |
| Activates the view. Maps presentations defined within structure manager onto this view.
|
|
virtual void | Deactivate () |
| Deactivates the view. Unmaps presentations defined within structure manager. The view in deactivated state will ignore actions on structures such as Display().
|
|
Standard_Boolean | IsActive () const |
| Returns the activity flag of the view.
|
|
Standard_Boolean | IsRemoved () const |
| Returns true if the view was removed.
|
|
virtual const Handle< Graphic3d_Camera > & | Camera () const override |
| Returns camera object of the view.
|
|
virtual void | SetCamera (const Handle< Graphic3d_Camera > &theCamera) |
| Sets camera used by the view.
|
|
Graphic3d_TypeOfShadingModel | ShadingModel () const |
| Returns default Shading Model of the view; Graphic3d_TypeOfShadingModel_Phong by default.
|
|
void | SetShadingModel (Graphic3d_TypeOfShadingModel theModel) |
| Sets default Shading Model of the view. Will throw an exception on attempt to set Graphic3d_TypeOfShadingModel_DEFAULT.
|
|
Graphic3d_TypeOfBackfacingModel | BackfacingModel () const |
| Return backfacing model used for the view; Graphic3d_TypeOfBackfacingModel_Auto by default, which means that backface culling is defined by each presentation.
|
|
void | SetBackfacingModel (const Graphic3d_TypeOfBackfacingModel theModel) |
| Sets backfacing model for the view.
|
|
Graphic3d_TypeOfVisualization | VisualizationType () const |
| Returns visualization type of the view.
|
|
void | SetVisualizationType (const Graphic3d_TypeOfVisualization theType) |
| Sets visualization type of the view.
|
|
void | SetComputedMode (const Standard_Boolean theMode) |
| Switches computed HLR mode in the view.
|
|
Standard_Boolean | ComputedMode () const |
| Returns the computed HLR mode state.
|
|
void | ReCompute (const Handle< Graphic3d_Structure > &theStructure) |
| Computes the new presentation of the structure displayed in this view with the type Graphic3d_TOS_COMPUTED.
|
|
void | Update (const Graphic3d_ZLayerId theLayerId=Graphic3d_ZLayerId_UNKNOWN) |
| Invalidates bounding box of specified ZLayerId.
|
|
void | Compute () |
| Computes the new presentation of the structures displayed in this view with the type Graphic3d_TOS_COMPUTED.
|
|
void | DisplayedStructures (Graphic3d_MapOfStructure &theStructures) const |
| Returns the set of structures displayed in this view.
|
|
virtual Standard_Integer | NumberOfDisplayedStructures () const |
| Returns number of displayed structures in the view.
|
|
Standard_Boolean | IsComputed (const Standard_Integer theStructId, Handle< Graphic3d_Structure > &theComputedStruct) const |
| Returns Standard_True in case if the structure with the given <theStructId> is in list of structures to be computed and stores computed struct to <theComputedStruct>.
|
|
Bnd_Box | MinMaxValues (const Graphic3d_MapOfStructure &theSet, const Standard_Boolean theToIncludeAuxiliary=Standard_False) const |
| Returns the coordinates of the boundary box of all structures in the set <theSet>. If <theToIgnoreInfiniteFlag> is TRUE, then the boundary box also includes minimum and maximum limits of graphical elements forming parts of infinite structures.
|
|
const Handle< Graphic3d_StructureManager > & | StructureManager () const |
| Returns the structure manager handle which manage structures associated with this view.
|
|
virtual void | InvalidateZLayerBoundingBox (const Graphic3d_ZLayerId theLayerId) |
| Returns the bounding box of all structures displayed in the Z layer.
|
|
Standard_Real | ConsiderZoomPersistenceObjects () |
| Returns zoom-scale factor.
|
|
virtual void | CopySettings (const Handle< Graphic3d_CView > &theOther) |
| Copy visualization settings from another view. Method is used for cloning views in viewer when its required to create view with same view properties.
|
|
const Graphic3d_RenderingParams & | RenderingParams () const |
| Returns current rendering parameters and effect settings.
|
|
Graphic3d_RenderingParams & | ChangeRenderingParams () |
| Returns reference to current rendering parameters and effect settings.
|
|
virtual Aspect_Background | Background () const |
| Returns background fill color.
|
|
virtual void | SetBackground (const Aspect_Background &theBackground) |
| Sets background fill color.
|
|
const Handle< Graphic3d_TextureMap > & | BackgroundImage () |
| Returns background image texture map.
|
|
const Handle< Graphic3d_CubeMap > & | BackgroundCubeMap () const |
| Returns cubemap being set last time on background.
|
|
const Handle< Graphic3d_CubeMap > & | IBLCubeMap () const |
| Returns cubemap being set last time on background.
|
|
Graphic3d_TypeOfBackground | BackgroundType () const |
| Returns background type.
|
|
void | SetBackgroundType (Graphic3d_TypeOfBackground theType) |
| Sets background type.
|
|
const Aspect_SkydomeBackground & | BackgroundSkydome () const |
| Returns skydome aspect;.
|
|
void | SetBackgroundSkydome (const Aspect_SkydomeBackground &theAspect, Standard_Boolean theToUpdatePBREnv=Standard_True) |
| Sets skydome aspect.
|
|
const Handle< Graphic3d_TextureEnv > & | TextureEnv () const |
| Returns environment texture set for the view.
|
|
Standard_Real | UnitFactor () const |
| Return unit scale factor defined as scale factor for m (meters); 1.0 by default. Normally, view definition is unitless, however some operations like VR input requires proper units mapping.
|
|
void | SetUnitFactor (Standard_Real theFactor) |
| Set unit scale factor.
|
|
const Handle< Aspect_XRSession > & | XRSession () const |
| Return XR session.
|
|
void | SetXRSession (const Handle< Aspect_XRSession > &theSession) |
| Set XR session.
|
|
bool | IsActiveXR () const |
| Return TRUE if there is active XR session.
|
|
virtual bool | InitXR () |
| Initialize XR session.
|
|
virtual void | ReleaseXR () |
| Release XR session.
|
|
virtual void | ProcessXRInput () |
| Process input.
|
|
void | SetupXRPosedCamera () |
| Compute PosedXRCamera() based on current XR head pose and make it active.
|
|
void | UnsetXRPosedCamera () |
| Set current camera back to BaseXRCamera() and copy temporary modifications of PosedXRCamera(). Calls SynchronizeXRPosedToBaseCamera() beforehand.
|
|
const Handle< Graphic3d_Camera > & | PosedXRCamera () const |
| Returns transient XR camera position with tracked head orientation applied.
|
|
void | SetPosedXRCamera (const Handle< Graphic3d_Camera > &theCamera) |
| Sets transient XR camera position with tracked head orientation applied.
|
|
const Handle< Graphic3d_Camera > & | BaseXRCamera () const |
| Returns anchor camera definition (without tracked head orientation).
|
|
void | SetBaseXRCamera (const Handle< Graphic3d_Camera > &theCamera) |
| Sets anchor camera definition.
|
|
gp_Trsf | PoseXRToWorld (const gp_Trsf &thePoseXR) const |
| Convert XR pose to world space.
|
|
gp_Ax1 | ViewAxisInWorld (const gp_Trsf &thePoseXR) const |
| Returns view direction in the world space based on XR pose.
|
|
void | SynchronizeXRBaseToPosedCamera () |
| Recomputes PosedXRCamera() based on BaseXRCamera() and head orientation.
|
|
void | SynchronizeXRPosedToBaseCamera () |
| Checks if PosedXRCamera() has been modified since SetupXRPosedCamera() and copies these modifications to BaseXRCamera().
|
|
void | ComputeXRPosedCameraFromBase (Graphic3d_Camera &theCam, const gp_Trsf &theXRTrsf) const |
| Compute camera position based on XR pose.
|
|
void | ComputeXRBaseCameraFromPosed (const Graphic3d_Camera &theCamPosed, const gp_Trsf &thePoseTrsf) |
| Update based camera from posed camera by applying reversed transformation.
|
|
void | TurnViewXRCamera (const gp_Trsf &theTrsfTurn) |
| Turn XR camera direction using current (head) eye position as anchor.
|
|
virtual const Graphic3d_GraduatedTrihedron & | GetGraduatedTrihedron () |
| Returns data of a graduated trihedron.
|
|
virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const override |
| Dumps the content of me into the stream.
|
|
bool | IsSubview () const |
| Return TRUE if this is a subview of another view.
|
|
Graphic3d_CView * | ParentView () |
| Return parent View or NULL if this is not a subview.
|
|
bool | IsSubviewComposer () const |
| Return TRUE if this is view performs rendering of subviews and nothing else; FALSE by default. By default, view with subviews will render main scene and blit subviews on top of it. Rendering of main scene might become redundant in case if subviews cover entire window of parent view. This flag allows to disable rendering of the main scene in such scenarios without creation of a dedicated V3d_Viewer instance just for composing subviews.
|
|
void | SetSubviewComposer (bool theIsComposer) |
| Set if this view should perform composing of subviews and nothing else.
|
|
const NCollection_Sequence< Handle< Graphic3d_CView > > & | Subviews () const |
| Return subview list.
|
|
void | AddSubview (const Handle< Graphic3d_CView > &theView) |
| Add subview to the list.
|
|
bool | RemoveSubview (const Graphic3d_CView *theView) |
| Remove subview from the list.
|
|
Aspect_TypeOfTriedronPosition | SubviewCorner () const |
| Return subview position within parent view; Aspect_TOTP_LEFT_UPPER by default.
|
|
void | SetSubviewCorner (Aspect_TypeOfTriedronPosition thePos) |
| Set subview position within parent view.
|
|
const Graphic3d_Vec2i & | SubviewTopLeft () const |
| Return subview top-left position relative to parent view in pixels.
|
|
bool | IsSubViewRelativeSize () const |
| Return TRUE if subview size is set as proportions relative to parent view.
|
|
const Graphic3d_Vec2d & | SubviewSize () const |
| Return subview dimensions; (1.0, 1.0) by default. Values >= 2 define size in pixels; Values <= 1.0 define size as fraction of parent view.
|
|
void | SetSubviewSize (const Graphic3d_Vec2d &theSize) |
| Set subview size relative to parent view.
|
|
const Graphic3d_Vec2d & | SubviewOffset () const |
| Return corner offset within parent view; (0.0,0.0) by default. Values >= 2 define offset in pixels; Values <= 1.0 define offset as fraction of parent view dimensions.
|
|
void | SetSubviewOffset (const Graphic3d_Vec2d &theOffset) |
| Set corner offset within parent view.
|
|
const Graphic3d_Vec2i & | SubviewMargins () const |
| Return subview margins in pixels; (0,0) by default.
|
|
void | SetSubviewMargins (const Graphic3d_Vec2i &theMargins) |
| Set subview margins in pixels.
|
|
void | SubviewResized (const Handle< Aspect_NeutralWindow > &theWindow) |
| Update subview position and dimensions.
|
|
Public Member Functions inherited from Standard_Transient |
| Standard_Transient () |
| Empty constructor.
|
|
| Standard_Transient (const Standard_Transient &) |
| Copy constructor – does nothing.
|
|
Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter.
|
|
virtual | ~Standard_Transient () |
| Destructor must be virtual.
|
|
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| Returns a type descriptor about this object.
|
|
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| Returns a true value if this is an instance of Type.
|
|
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName.
|
|
Standard_Boolean | IsKind (const opencascade::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.
|
|
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.
|
|
Standard_Transient * | This () const |
| Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
|
|
Standard_Integer | GetRefCount () const noexcept |
| Get the reference counter of this object.
|
|
void | IncrementRefCounter () noexcept |
| Increments the reference counter of this object.
|
|
Standard_Integer | DecrementRefCounter () noexcept |
| Decrements the reference counter of this object; returns the decremented value.
|
|
virtual void | Delete () const |
| Memory deallocator for transient classes.
|
|