CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
OdBrepRendererImpl Class Reference

#include <BrepRendererImpl.h>

Inheritance diagram for OdBrepRendererImpl:
OdBrepRenderer

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 wrTriangulationParamsgetTriangulationParams () 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 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)
 

Additional Inherited Members

- Protected Member Functions inherited from OdBrepRenderer
 OdBrepRenderer ()
 

Detailed Description

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.

Member Enumeration Documentation

◆ Mode

Enumerator
kDefault 
kBIM 

Definition at line 56 of file BrepRendererImpl.h.

Constructor & Destructor Documentation

◆ OdBrepRendererImpl()

OdBrepRendererImpl::OdBrepRendererImpl ( )

◆ ~OdBrepRendererImpl()

virtual OdBrepRendererImpl::~OdBrepRendererImpl ( )
virtual

Member Function Documentation

◆ disableCaching()

virtual void OdBrepRendererImpl::disableCaching ( bool  clearCache = true)
virtual

Disables caching for this Renderer object.

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

Implements OdBrepRenderer.

◆ draw()

virtual bool OdBrepRendererImpl::draw ( OdGiCommonDraw pWd,
OdUInt32  geomType,
const NumIsolines pNumIsolines = 0 
)
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

Implements OdBrepRenderer.

◆ drawFace()

virtual bool OdBrepRendererImpl::drawFace ( OdGiCommonDraw pWd,
OdGsMarker  iFace,
const wrTriangulationParams triangulationParams 
)
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.

Implements OdBrepRenderer.

◆ drawSilhouettes()

virtual bool OdBrepRendererImpl::drawSilhouettes ( OdGiViewportDraw pVd)
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.

Implements OdBrepRenderer.

◆ enableCaching()

virtual void OdBrepRendererImpl::enableCaching ( )
virtual

Enables caching for this Renderer object.

Implements OdBrepRenderer.

◆ getDeviation()

bool OdBrepRendererImpl::getDeviation ( OdGiCommonDraw pWd,
double &  deviation 
)

Gets the max deviation for facets.

Parameters
pWd[in] Pointer to the OdGiCommonDraw interface.
deviation[out] Max deviation for facets.
Returns
True if the operation is successful; false otherwise.

◆ getExtents()

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

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 from OdBrepRenderer.

◆ getFaceMesh()

virtual bool OdBrepRendererImpl::getFaceMesh ( GeMesh::OdGeTrMesh mesh,
OdGsMarker  iFace,
const wrTriangulationParams triangulationParams 
)
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.

Implements OdBrepRenderer.

◆ getLoopTypes()

bool OdBrepRendererImpl::getLoopTypes ( const OdBrFace face,
OdArray< std::pair< int, int > > &  aLoopType 
)

Determines the types of trimming loops for the given face.

Parameters
face[in] Face to calculate loop types for.
aLoopType[out] Pairs of loop indices and their type flags.
Returns
True if the operation is successful; false otherwise.
Remarks
aLoopType is a combination of one or more of the following:

Value HOLE 1 FULLNESS 2 ZEROSQUARE 4 FULLBORDER 8 UNPREDICTABLE 0

◆ getPtSurface()

virtual bool OdBrepRendererImpl::getPtSurface ( OdGePoint3d pt)
virtual

Gets the point for calculating the deviation in perspective mode.

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

Reimplemented from OdBrepRenderer.

◆ getTriangulationParams()

virtual const wrTriangulationParams * OdBrepRendererImpl::getTriangulationParams ( ) const
virtual

Returns the Triangular Parameters for this Renderer object.

Returns
Triangular Parameters for this Renderer object.

Implements OdBrepRenderer.

◆ isCachingEnabled()

virtual bool OdBrepRendererImpl::isCachingEnabled ( ) const
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.

Implements OdBrepRenderer.

◆ mode()

OdBrepRendererImpl::Mode OdBrepRendererImpl::mode ( ) const

◆ setBrep()

virtual void OdBrepRendererImpl::setBrep ( const OdBrBrep brep)
virtual

Sets the BREP data for this Renderer object.

Parameters
brep[in] BREP data.

Implements OdBrepRenderer.

◆ setDatabase()

void OdBrepRendererImpl::setDatabase ( OdDbBaseDatabase pDb)
inline

Definition at line 78 of file BrepRendererImpl.h.

◆ setFaceFilter()

virtual void OdBrepRendererImpl::setFaceFilter ( wrRenderFilter pFaceFilter)
virtual

Sets the face filter for this Renderer object.

Parameters
pFaceFilter[in] Face filter.

Implements OdBrepRenderer.

◆ setLazyDeviation()

void OdBrepRendererImpl::setLazyDeviation ( double  facetRes)

Sets "lazy" deviation calculation mode.

Parameters
facetRes[in] FACETRES variable value to take into account calculating deviation.
Remarks
If 'facetRes' parameter is zero, "lazy" calculation is not used.

◆ setMode()

void OdBrepRendererImpl::setMode ( OdBrepRendererImpl::Mode  m)

◆ setTriangulationParams()

virtual void OdBrepRendererImpl::setTriangulationParams ( const wrTriangulationParams pTriangulationParams)
virtual

Sets the Triangular Parameters for this Renderer object.

Parameters
pTriangulationParams[in] Pointer to the Triangular Parameters.

Implements OdBrepRenderer.

◆ transformBy()

virtual void OdBrepRendererImpl::transformBy ( const OdGeMatrix3d xfm)
virtual

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

Parameters
xfm[in] 3D transformation matrix.

Implements OdBrepRenderer.


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