CFx SDK Documentation 2024 SP0
|
#include <BrepRendererImpl.h>
Public Types | |
enum | Mode { kDefault = 0 , kBIM = 1 } |
Public Member Functions | |
OdBrepRendererImpl () | |
virtual | ~OdBrepRendererImpl () |
void | setDatabase (OdDbBaseDatabase *pDb) |
void | setMode (OdBrepRendererImpl::Mode m) |
OdBrepRendererImpl::Mode | mode () const |
virtual void | setBrep (const OdBrBrep &brep) |
virtual void | enableCaching () |
virtual void | disableCaching (bool clearCache=true) |
virtual bool | isCachingEnabled () const |
virtual void | setTriangulationParams (const wrTriangulationParams *pTriangulationParams) |
virtual const wrTriangulationParams * | getTriangulationParams () const |
virtual bool | draw (OdGiCommonDraw *pWd, OdUInt32 geomType, const NumIsolines *pNumIsolines=0) |
virtual bool | drawSilhouettes (OdGiViewportDraw *pVd) |
virtual void | transformBy (const OdGeMatrix3d &xfm) |
virtual bool | drawFace (OdGiCommonDraw *pWd, OdGsMarker iFace, const wrTriangulationParams &triangulationParams) |
virtual bool | getFaceMesh (GeMesh::OdGeTrMesh &mesh, OdGsMarker iFace, const wrTriangulationParams &triangulationParams) |
virtual bool | getExtents (OdGeExtents3d &extents, OdUInt32 nIso=6) |
virtual void | setFaceFilter (wrRenderFilter *pFaceFilter) |
virtual bool | getPtSurface (OdGePoint3d &pt) |
bool | getLoopTypes (const OdBrFace &face, OdArray< std::pair< int, int > > &aLoopType) |
bool | getDeviation (OdGiCommonDraw *pWd, double &deviation) |
void | setLazyDeviation (double facetRes) |
Public Member Functions inherited from OdBrepRenderer | |
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 wrTriangulationParams * | getTriangulationParams () 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) |
Additional Inherited Members | |
Protected Member Functions inherited from OdBrepRenderer | |
OdBrepRenderer () | |
This class implements platform-dependent ACIS rendering for the ODA Platform.
Corresponding C++ library: TD_BrepRenderer
<group Other_Classes>
Definition at line 53 of file BrepRendererImpl.h.
Enumerator | |
---|---|
kDefault | |
kBIM |
Definition at line 56 of file BrepRendererImpl.h.
OdBrepRendererImpl::OdBrepRendererImpl | ( | ) |
|
virtual |
Disables caching for this Renderer object.
clearCache | [in] Clears rendering cache if and only if true. |
Implements OdBrepRenderer.
|
virtual |
Creates a geometric representation of the BREP data of this Renderer object.
pWd | [in] Pointer to the OdGiCommonDraw interface. |
geomType | [in] Geometry type. |
pNumIsolines | [in] Number of isolines. |
Value kNothing 0 kIsolines 1 kEdges 2 kShells 4 kOrderedEdges 8 kSurfIsolines 16
Implements OdBrepRenderer.
|
virtual |
Creates a geometric representation of the particular face of this Renderer object.
pWd | [in] Pointer to the OdGiCommonDraw interface. |
iFace | [in] Face marker. |
triangulationParams | [in] Triangulation Parameters. |
Implements OdBrepRenderer.
|
virtual |
Creates a silhouette representation of the BREP data of this Renderer object.
pVd | [in] Pointer to the OdGiViewportDraw interface. |
Implements OdBrepRenderer.
|
virtual |
Enables caching for this Renderer object.
Implements OdBrepRenderer.
bool OdBrepRendererImpl::getDeviation | ( | OdGiCommonDraw * | pWd, |
double & | deviation | ||
) |
Gets the max deviation for facets.
pWd | [in] Pointer to the OdGiCommonDraw interface. |
deviation | [out] Max deviation for facets. |
|
virtual |
Gets the extents the geometric representation of this Renderer object.
extents | [out] Resulting extents. |
nIso | [in] Number of isolines. |
Reimplemented from OdBrepRenderer.
|
virtual |
Gets the mesh of the particular face of this Renderer object.
mesh | [out] Resulting mesh. |
iFace | [in] Face marker. |
triangulationParams | [in] Triangulation Parameters. |
Implements OdBrepRenderer.
bool OdBrepRendererImpl::getLoopTypes | ( | const OdBrFace & | face, |
OdArray< std::pair< int, int > > & | aLoopType | ||
) |
Determines the types of trimming loops for the given face.
face | [in] Face to calculate loop types for. |
aLoopType | [out] Pairs of loop indices and their type flags. |
Value HOLE 1 FULLNESS 2 ZEROSQUARE 4 FULLBORDER 8 UNPREDICTABLE 0
|
virtual |
Gets the point for calculating the deviation in perspective mode.
pt | [out] Resulting point. |
Reimplemented from OdBrepRenderer.
|
virtual |
Returns the Triangular Parameters for this Renderer object.
Implements OdBrepRenderer.
|
virtual |
Returns true if and only if caching is enabled for this Renderer object.
Implements OdBrepRenderer.
OdBrepRendererImpl::Mode OdBrepRendererImpl::mode | ( | ) | const |
Sets the BREP data for this Renderer object.
brep | [in] BREP data. |
Implements OdBrepRenderer.
|
inline |
Definition at line 78 of file BrepRendererImpl.h.
|
virtual |
Sets the face filter for this Renderer object.
pFaceFilter | [in] Face filter. |
Implements OdBrepRenderer.
void OdBrepRendererImpl::setLazyDeviation | ( | double | facetRes | ) |
Sets "lazy" deviation calculation mode.
facetRes | [in] FACETRES variable value to take into account calculating deviation. |
void OdBrepRendererImpl::setMode | ( | OdBrepRendererImpl::Mode | m | ) |
|
virtual |
Sets the Triangular Parameters for this Renderer object.
pTriangulationParams | [in] Pointer to the Triangular Parameters. |
Implements OdBrepRenderer.
|
virtual |
Applies the 3D transformation matrix to the BREP data of Renderer object.
xfm | [in] 3D transformation matrix. |
Implements OdBrepRenderer.