CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | List of all members
OdBrepRenderer Class Referenceabstract

#include <BrepRenderer.h>

Inheritance diagram for OdBrepRenderer:
OdBrepRendererImpl

Classes

struct  NumIsolines
 

Public Member Functions

virtual ~OdBrepRenderer ()
 
virtual void setBrep (const OdBrBrep &brep)=0
 
virtual void enableCaching ()=0
 
virtual void disableCaching (bool clearCache=true)=0
 
virtual bool isCachingEnabled () const =0
 
virtual void setTriangulationParams (const wrTriangulationParams *pTriangulationParams)=0
 
virtual const wrTriangulationParamsgetTriangulationParams () const =0
 
virtual bool draw (OdGiCommonDraw *pWd, OdUInt32 geomType, const NumIsolines *pNumIsolines=0)=0
 
virtual bool drawSilhouettes (OdGiViewportDraw *pVd)=0
 
virtual void transformBy (const OdGeMatrix3d &xfm)=0
 
virtual bool drawFace (OdGiCommonDraw *pWd, OdGsMarker iFace, const wrTriangulationParams &triangulationParams)=0
 
virtual bool getFaceMesh (GeMesh::OdGeTrMesh &mesh, OdGsMarker iFace, const wrTriangulationParams &triangulationParams)=0
 
virtual bool getExtents (OdGeExtents3d &extents, OdUInt32 nIso=6)
 
virtual void setFaceFilter (wrRenderFilter *pFaceFilter)=0
 
virtual bool getPtSurface (OdGePoint3d &pt)
 

Protected Member Functions

 OdBrepRenderer ()
 

Detailed Description

This class is the base class for classes that provide platform-dependent ACIS rendering for the ODA Platform.

Corresponding C++ library: TD_BrepRenderer

<group Other_Classes>

Definition at line 83 of file BrepRenderer.h.

Constructor & Destructor Documentation

◆ OdBrepRenderer()

OdBrepRenderer::OdBrepRenderer ( )
inlineprotected

Definition at line 87 of file BrepRenderer.h.

◆ ~OdBrepRenderer()

virtual OdBrepRenderer::~OdBrepRenderer ( )
inlinevirtual

This is the default destructor for objects of the OdBrepRenderer class.

Definition at line 94 of file BrepRenderer.h.

Member Function Documentation

◆ disableCaching()

virtual void OdBrepRenderer::disableCaching ( bool  clearCache = true)
pure virtual

Disables caching for this Renderer object.

Parameters
clearCache[in] Clears rendering cache if and only if true.

Implemented in OdBrepRendererImpl.

◆ draw()

virtual bool OdBrepRenderer::draw ( OdGiCommonDraw pWd,
OdUInt32  geomType,
const NumIsolines pNumIsolines = 0 
)
pure virtual

Creates a geometric representation of the BREP data of this Renderer object.

Parameters
pWd[in] Pointer to the OdGiCommonDraw interface.
geomType[in] Geometry type.
pNumIsolines[in] Number of isolines.
Returns
True if and only if the geometric representation can be generated.
Remarks
The value of the geomType parameter must be a combination of one or more of the following:

Value kNothing 0 kIsolines 1 kEdges 2 kShells 4 kOrderedEdges 8 kSurfIsolines 16

Implemented in OdBrepRendererImpl.

◆ drawFace()

virtual bool OdBrepRenderer::drawFace ( OdGiCommonDraw pWd,
OdGsMarker  iFace,
const wrTriangulationParams triangulationParams 
)
pure virtual

Creates a geometric representation of the particular face of this Renderer object.

Parameters
pWd[in] Pointer to the OdGiCommonDraw interface.
iFace[in] Face marker.
triangulationParams[in] Triangulation Parameters.
Returns
True if and only if the geometric representation can be generated.

Implemented in OdBrepRendererImpl.

◆ drawSilhouettes()

virtual bool OdBrepRenderer::drawSilhouettes ( OdGiViewportDraw pVd)
pure virtual

Creates a silhouette representation of the BREP data of this Renderer object.

Parameters
pVd[in] Pointer to the OdGiViewportDraw interface.
Returns
True if and only if the silhouette representation can be generated.

Implemented in OdBrepRendererImpl.

◆ enableCaching()

virtual void OdBrepRenderer::enableCaching ( )
pure virtual

Enables caching for this Renderer object.

Implemented in OdBrepRendererImpl.

◆ getExtents()

virtual bool OdBrepRenderer::getExtents ( OdGeExtents3d extents,
OdUInt32  nIso = 6 
)
inlinevirtual

Gets the extents the geometric representation of this Renderer object.

Parameters
extents[out] Resulting extents.
nIso[in] Number of isolines.
Returns
True if successful; false otherwise.

Reimplemented in OdBrepRendererImpl.

Definition at line 221 of file BrepRenderer.h.

◆ getFaceMesh()

virtual bool OdBrepRenderer::getFaceMesh ( GeMesh::OdGeTrMesh mesh,
OdGsMarker  iFace,
const wrTriangulationParams triangulationParams 
)
pure virtual

Gets the mesh of the particular face of this Renderer object.

Parameters
mesh[out] Resulting mesh.
iFace[in] Face marker.
triangulationParams[in] Triangulation Parameters.
Returns
True if successful; false otherwise.

Implemented in OdBrepRendererImpl.

◆ getPtSurface()

virtual bool OdBrepRenderer::getPtSurface ( OdGePoint3d pt)
inlinevirtual

Gets the point for calculating the deviation in perspective mode.

Parameters
pt[out] Resulting point.
Returns
True if successful; false otherwise.

Reimplemented in OdBrepRendererImpl.

Definition at line 238 of file BrepRenderer.h.

◆ getTriangulationParams()

virtual const wrTriangulationParams * OdBrepRenderer::getTriangulationParams ( ) const
pure virtual

Returns the Triangular Parameters for this Renderer object.

Returns
Triangular Parameters for this Renderer object.

Implemented in OdBrepRendererImpl.

◆ isCachingEnabled()

virtual bool OdBrepRenderer::isCachingEnabled ( ) const
pure virtual

Returns true if and only if caching is enabled for this Renderer object.

Returns
True if caching is enabled for this Renderer object; false otherwise.

Implemented in OdBrepRendererImpl.

◆ setBrep()

virtual void OdBrepRenderer::setBrep ( const OdBrBrep brep)
pure virtual

Sets the BREP data for this Renderer object.

Parameters
brep[in] BREP data.

Implemented in OdBrepRendererImpl.

◆ setFaceFilter()

virtual void OdBrepRenderer::setFaceFilter ( wrRenderFilter pFaceFilter)
pure virtual

Sets the face filter for this Renderer object.

Parameters
pFaceFilter[in] Face filter.

Implemented in OdBrepRendererImpl.

◆ setTriangulationParams()

virtual void OdBrepRenderer::setTriangulationParams ( const wrTriangulationParams pTriangulationParams)
pure virtual

Sets the Triangular Parameters for this Renderer object.

Parameters
pTriangulationParams[in] Pointer to the Triangular Parameters.

Implemented in OdBrepRendererImpl.

◆ transformBy()

virtual void OdBrepRenderer::transformBy ( const OdGeMatrix3d xfm)
pure virtual

Applies the 3D transformation matrix to the BREP data of Renderer object.

Parameters
xfm[in] 3D transformation matrix.

Implemented in OdBrepRendererImpl.


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