CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef __ODGIGEOMETRYSIMPLIFIER_H__
25 #define __ODGIGEOMETRYSIMPLIFIER_H__
81 kSimplProcessingText = (1 << 0),
82 kSimplFillModeDisabled = (1 << 1),
83 kSimplEyeSpaceSilhs = (1 << 2),
84 kSimplLastFlag = kSimplEyeSpaceSilhs
85 ,kZInverted = (1 << 30)
86 ,kDiscardBackFaces = (1 << 31)
264 return m_nVertexCount;
272 return m_pVertexList;
280 return m_pVertexData;
288 return m_baseSubEntMarker;
688 bool transparency =
false,
689 double brightness = 50.0,
690 double contrast = 50.0,
726 bool dcAligned =
true,
727 bool allowClipping =
false);
860 #endif //#ifndef __ODGIGEOMETRYSIMPLIFIER_H__
bool jointLineWithLine(const OdGiPolyline &lwBuf, OdInt32 LineSegNo1, OdInt32 LineSegNo2, OdGePoint3dArray &points)
#define GETBIT(flags, bit)
virtual void metafileProc(const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiMetafile *pMetafile, bool dcAligned=true, bool allowClipping=false)
void setDeviation(const OdGeDoubleArray &deviations)
bool shmFillMode(bool &drawEdges, bool &secColor)
virtual void generateShellFill(OdGiHatchPatternPtr pHatch, const OdGePoint3d *pVertexList, OdInt32 faceListSize, const OdInt32 *pFaceList, const OdGiFaceData *pFaceData=0, OdGiMapperItemEntry *pMapper=0)
OdGeDoubleArray m_deviations
virtual void shellFaceOut(OdInt32 faceListSize, const OdInt32 *faceList, const OdGeVector3d *pNormal)
bool fillMode(bool &drawEdges)
virtual void xlineProc(const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint)
virtual void generateShellWires(OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0)
void convertMeshToShell(OdInt32 rows, OdInt32 columns, const OdGePoint3d *pVertexList, const OdGiEdgeData *pEdgeData, const OdGiFaceData *pFaceData, const OdGiVertexData *pVertexData)
OdGiConveyorContext * m_pDrawCtx
OdGeCircArc2d & tmpCircArc2d()
OdGiConveyorContext * drawContext()
#define SETBIT(flags, bit, value)
bool shmFillMode(bool &drawEdges)
virtual void rayProc(const OdGePoint3d &basePoint, const OdGePoint3d &throughPoint)
OdGiContext & giCtx() const
OdGiConveyorContext * m_pDrawCtx
OdDb::LineWeight m_lweight
~OdGiGeometrySimplifier()
bool jointLineWithArc(const OdGiPolyline &lwBuf, OdInt32 LineSegNo, OdInt32 ArcSegNo, OdGePoint3dArray &points)
double deviation(const OdGiDeviationType deviationType, const OdGePoint3d &pointOnCurve) const
OdGeLine2d & tmpLine2dEx(int n)
void subdivideShellByVertexLimit(OdInt32 numVertices, const OdGePoint3d *vertexList, OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData, const OdGiFaceData *pFaceData, const OdGiVertexData *pVertexData, OdUInt32 nLimit)
OdGsView::RenderMode m_renderMode
virtual void generateShellFacets(OdInt32 faceListSize, const OdInt32 *faceList, const OdGiFaceData *pFaceData=0, OdInt32 maxFacetSize=3)
virtual void plineProc(const OdGiPolyline &polyline, const OdGeMatrix3d *pXfm=0, OdUInt32 fromIndex=0, OdUInt32 numSegs=0)
OdGeLineSeg2d & tmpLineSeg2dEx(int n)
virtual bool plineArcSegmentsAsArcProc(OdUInt32 drawContextFlags) const
virtual void initTexture(const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiRasterImage *pImage, bool transparency, double brightness, double contrast, double fade)
virtual void polylineOut(OdInt32 numPoints, const OdInt32 *vertexIndexList)
OdGeLineSeg2d & tmpLineSeg2d()
virtual OdGiContext & giContext() const =0
bool jointArcWithLine(const OdGiPolyline &lwBuf, OdGeCircArc2d &arc, OdInt32 arcSegNo, OdInt32 lineSegNo, OdGePoint3d &point1, OdGePoint3d &point2)
void setDeviation(const OdGiDeviation *pDeviation)
virtual void generateMeshFaces(OdInt32 numRows, OdInt32 numColumns, const OdGiFaceData *pFaceData)
OdGeVector3d * m_pFillNormal
void setDrawContext(OdGiConveyorContext *pDrawCtx)
OdGeVector3d m_fillNormal
virtual void meshProc(OdInt32 numRows, OdInt32 numColumns, const OdGePoint3d *vertexList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)
virtual void edgeProc(const OdGiEdge2dArray &edges, const OdGeMatrix3d *pXform=0)
virtual void circularArcProc(const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint, OdGiArcType arcType=kOdGiArcSimple, const OdGeVector3d *pExtrusion=0)
virtual void generateShellFaces(OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0)
OdGiSubEntityTraits * m_pTraits
virtual void circularArcProc(const OdGePoint3d ¢er, double radius, const OdGeVector3d &normal, const OdGeVector3d &startVector, double sweepAngle, OdGiArcType arcType=kOdGiArcSimple, const OdGeVector3d *pExtrusion=0)
OdGePoint3dArray & tmpPoints3d(int nLevel)
virtual void meshFaceOut(const OdInt32 *faceList, const OdGeVector3d *pNormal)
void setVertexData(OdInt32 numVertices, const OdGePoint3d *vertexList, const OdGiVertexData *pVertexData=0)
bool silhouettesProcessingInEyeSpace() const
virtual void textProc(const OdGePoint3d &position, const OdGeVector3d &u, const OdGeVector3d &v, const OdChar *msg, OdInt32 length, bool raw, const OdGiTextStyle *pTextStyle, const OdGeVector3d *pExtrusion=0)
GLint GLenum GLsizei width
GLuint GLsizei GLsizei * length
OdGiFillData(OdGiConveyorContext *pDrawCtx, OdGiSubEntityTraits *pTraits, OdDb::LineWeight lweight=OdDb::kLnWt000, OdGiFillType fillType=kOdGiFillNever)
virtual void circleProc(const OdGePoint3d ¢er, double radius, const OdGeVector3d &normal, const OdGeVector3d *pExtrusion=0)
const OdGiConveyorContext * drawContext() const
virtual bool ellipArcProc(const OdGeEllipArc3d &ellipArc, double width)
const OdGiDeviation * m_pDeviation
virtual void shapeProc(const OdGePoint3d &position, const OdGeVector3d &direction, const OdGeVector3d &upVector, int shapeNumber, const OdGiTextStyle *pTextStyle, const OdGeVector3d *pExtrusion=0)
virtual void polylineOut(OdInt32 numPoints, const OdGePoint3d *vertexList)
virtual void polygonProc(OdInt32 numPoints, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal=0, const OdGeVector3d *pExtrusion=0)
virtual void polypointProc(OdInt32 numPoints, const OdGePoint3d *vertexList, const OdCmEntityColor *pColors, const OdCmTransparency *pTransparency=0, const OdGeVector3d *pNormals=0, const OdGeVector3d *pExtrusions=0, const OdGsMarker *pSubEntMarkers=0, OdInt32 nPointSize=0)
OdGsMarker m_baseSubEntMarker
virtual void triangleOut(const OdInt32 *vertices, const OdGeVector3d *pNormal)
bool isMeshRequireVertexNormals(const OdGiVertexData *pVertexData)
void drawTypedArc(OdGiArcType arcType, const OdGePoint3d ¢er, OdGePoint3dArray &points, const OdGeVector3d *pNormal, const OdGeVector3d *pExtrusion)
virtual void facetOut(const OdInt32 *faceList, const OdInt32 *edgeIndices, const OdGeVector3d *pNormal)
virtual void rasterImageProc(const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiRasterImage *pImage, const OdGePoint2d *uvBoundary, OdUInt32 numBoundPts, bool transparency=false, double brightness=50.0, double contrast=50.0, double fade=0.0)
virtual void generateMeshWires(OdInt32 numRows, OdInt32 numColumns, const OdGiEdgeData *pEdgeData, const OdGiFaceData *pFaceData)
virtual void nurbsProc(const OdGeNurbCurve3d &nurbsCurve)
void set(OdDb::LineWeight lweight, OdGiFillType fillType, const OdGeVector3d *fillNormal)
OdInt32 vertexDataCount() const
OdGsMarker baseSubEntMarker() const
virtual void uninitTexture()
OdGsView::RenderMode renderMode()
virtual void ellipArcProc(const OdGeEllipArc3d &ellipArc, const OdGePoint3d *endPointOverrides=0, OdGiArcType arcType=kOdGiArcSimple, const OdGeVector3d *pExtrusion=0)
virtual void polygonOut(OdInt32 numPoints, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal=0)
virtual void circleProc(const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint, const OdGeVector3d *pExtrusion=0)
void generateMeshVertexNormals(OdInt32 numRows, OdInt32 numCols, const OdGePoint3d *pVertexList, const OdGiVertexData *pVertexData, OdGiVertexData &vertexData, OdGeVector3dArray &normals)
virtual void rowOfDotsProc(OdInt32 numPoints, const OdGePoint3d &startPoint, const OdGeVector3d &dirToNextPoint)
virtual void ttfPolyDrawProc(OdInt32 numVertices, const OdGePoint3d *vertexList, OdInt32 faceListSize, const OdInt32 *faceList, const OdUInt8 *pBezierTypes, const OdGiFaceData *pFaceData=0)
bool fillMode(bool &drawEdges, bool &secColor)
OdGiSubEntityTraits * m_pTraits
virtual void textProc2(const OdGePoint3d &position, const OdGeVector3d &u, const OdGeVector3d &v, const OdChar *msg, OdInt32 length, bool raw, const OdGiTextStyle *pTextStyle, const OdGeVector3d *pExtrusion=0, const OdGeExtents3d *extentsBox=0)
virtual void polylineProc(OdInt32 numPoints, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal=0, const OdGeVector3d *pExtrusion=0, OdGsMarker baseSubEntMarker=-1)
virtual void shellProc(OdInt32 numVertices, const OdGePoint3d *vertexList, OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)
OdGeEllipArc3d & tmpEllipArc3d()
void enableSilhouettesProcessingInEyeSpace(bool bEnable)
const OdGePoint3d * vertexDataList() const
const OdGiVertexData * vertexData() const
OdGeCircArc3d & tmpCircArc3d()
bool processingText() const