CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
28 #ifndef _ODGIBASEVECTORIZER_INCLUDED_
29 #define _ODGIBASEVECTORIZER_INCLUDED_
62 #define ENABLE_GITRAITSOPTIMIZATION
67 #undef ENABLE_GITRAITSOPTIMIZATION
181 #if (TD_MAJOR_VERSION > 4) || (TD_MINOR_VERSION > 3)
182 #pragma MARKMESSAGE("4.3 -> 4.4 : AMark : Remove preprocessor condition.");
184 { OdDbStub* m_effectiveLayerId;
185 LayerTraitsCache() : m_effectiveLayerId(
NULL) {} };
186 typedef std::map<OdDbStub*, LayerTraitsCache> LayerTraitsCacheMap;
187 mutable LayerTraitsCacheMap m_layerTraitsCache;
279 #ifdef ENABLE_GITRAITSOPTIMIZATION
280 bool m_bResetEntityTraitsData;
327 kSuppressViewportDraw = kFirstFlag << 0,
328 kDrawInvisibleEnts = kFirstFlag << 1,
329 kDrawLayerOff = kFirstFlag << 2,
330 kDrawLayerFrozen = kFirstFlag << 3,
331 kIgnoreFillPlane = kFirstFlag << 4,
332 kSelectionMode = kFirstFlag << 5,
333 kAttributesSegment = kFirstFlag << 6,
334 kXrefOverride = kFirstFlag << 7,
336 kLastFlag = kXrefOverride
360 #ifdef ENABLE_GITRAITSOPTIMIZATION
361 inline void resetEntityTraitsData();
721 bool transparency =
false,
722 double brightness = 50.0,
723 double contrast = 50.0,
731 bool bDcAligned =
true,
732 bool bAllowClipping =
false);
817 #ifdef ENABLE_GITRAITSOPTIMIZATION
820 m_bResetEntityTraitsData =
false;
832 bool bMirrorX =
false,
833 bool bMirrorY =
false);
838 #endif // #ifndef _ODGIBASEVECTORIZER_INCLUDED_
#define GETBIT(flags, bit)
OdGiConveyorConnector * m_pActiveEntryPoint
void polyline(OdInt32 numVertices, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal=0, OdGsMarker baseSubEntMarker=-1)
void setColor(OdUInt16 color)
ODGI_EXPORT void odgiCalculateTextBasis(OdGeVector3d &u, OdGeVector3d &v, const OdGeVector3d &normal, const OdGeVector3d &direction, double height, double width, double oblique, bool bMirrorX=false, bool bMirrorY=false)
void setPlotStyleNameType(OdDb::PlotStyleNameType plotStyleNameType)
const OdGiDrawable * currentDrawable() const
static OdRxClass * desc()
OdGiConveyorContext * drawContext()
void setLineTypeScale(double lineTypeScale)
void setVisualStyle(const OdDbStub *visualStyleId)
double deviation(const OdGiDeviationType deviationType, const OdGePoint3d &pointOnCurve) const
OdGiRegenType regenType() const
virtual const OdGiSubEntityTraitsData & effectiveTraits() const =0
void setContext(OdGiContext *pUserContext)
void setSelectionFlags(SelectionFlags selectionFlags)
void circle(const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint)
void setSecondaryTrueColor(const OdCmEntityColor &color)
OdUInt32 drawableAttributes() const
OdRxObjectPtr saveByBlockTraits()
const OdGsView * gsView() const
OdDbStub * m_byBlockMaterialId
void setPlotStyleName(OdDb::PlotStyleNameType plotStyleNameType, OdDbStub *pPlotStyleNameId=0)
virtual void onTraitsModified()
const OdGeVector3d * extrusion(const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v)
void setLineType(OdDbStub *lineTypeId)
OdRxObjectPtr m_pGiReserved
const OdGiDeviation & modelDeviation() const
void setEffectiveMaterialTraitsData(OdDbStub *materialId, const OdGiMaterialTraitsData &data, bool bForce=false)
virtual void selectionMarkerOnChange(OdGsMarker nSelectionMarker)
OdGiDgLinetypeModifiers * m_pCurLSModifiers
OdDbStub * viewportObjectId() const
void setThickness(double thickness)
void eyeToOutputTransform(OdGeMatrix3d &xfm) const
OdGiTraitsCache< OdGiMaterialTraitsData, OdGiMaterialTraitsTaker, OdGiMaterialTraits::kByBlock|OdGiMaterialTraits::kByLayer > OdGiMaterialTraitsCache
void updateLayerTraits(OdGiSubEntityTraitsData &subEntityTraits) const
OdGiRegenType regenType() const
virtual OdGiConveyorOutput & output()
OdGiDrawableDesc * m_pDrawableDesc
#define SETBIT(flags, bit, value)
OdGiDgLinetypeModifiers m_lsModifiers
const OdGeVector3d * extrusion(const OdGeVector3d &normal)
void setExtents(const OdGePoint3d *newExtents)
virtual void setEffectiveTraits(const OdGiSubEntityTraitsData &traits, const OdGeVector3d *fillNormal=NULL)
bool isValidId(const OdUInt32 viewportId) const
OdGiMapper m_materialMapper
void setThickness(double thickness)
const OdGiDgLinetypeModifiers * lineStyleModifiers() const
SelectionFlags selectionFlags() const
void worldLine(const OdGePoint3d points[2])
OdUInt32 numberOfIsolines() const
void setXrefOverride(bool bSet)
void setLineWeight(OdDb::LineWeight lineWeight)
OdDbStub * material() const
const OdGiPathNode * currentGiPath() const
virtual void setContext(OdGiContext *pUserContext)
void setLineType(OdDbStub *lineTypeId)
void setFillType(OdGiFillType fillType)
void setTransparency(const OdCmTransparency &transparency)
const OdGeVector3d * extrusion(const OdGeVector3d *pNormal)
void setMapper(const OdGiMapper *pMapper)
void shape(const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, int shapeNumber, const OdGiTextStyle *pTextStyle)
const OdGiMapper * mapper() const
void setSecondaryTrueColor(const OdCmEntityColor &color)
const OdGeMatrix3d & eyeToOutputTransform() const
virtual ~OdGiBaseVectorizer()
bool needDraw(OdUInt32 drawableFlags)
void setFill(const OdGiFill *pFill)
OdGiLayerTraitsTaker m_effectiveLayerTraits
void circularArc(const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint, OdGiArcType arcType=kOdGiArcSimple)
void setSelectionMarker(OdGsMarker selectionMarker)
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
OdUInt32 sequenceNumber() const
void draw(const OdGiDrawable *pDrawable)
const OdGiDeviation & eyeDeviation() const
void setExtents(const OdGePoint3d *newExtents)
void setMapper(const OdGiMapper *pMapper)
virtual void affectTraits(const OdGiSubEntityTraitsData *pSource, OdGiSubEntityTraitsData &destination) const
void nurbs(const OdGeNurbCurve3d &nurbsCurve)
void setLineStyleModifiers(const OdGiDgLinetypeModifiers *pLSMod)
void pushClipBoundary(OdGiClipBoundary *pBoundary)
void setSelectionMarker(OdGsMarker selectionMarker)
const OdGiDrawableDesc * drawableDesc() const
bool isLayerFrozen() const
virtual void endViewVectorization()
const OdGiSubEntityTraitsData * byBlockTraits() const
void text(const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, const OdChar *msg, OdInt32 length, bool raw, const OdGiTextStyle *pTextStyle)
void metafileDc(const OdGePoint3d &origin, const OdGeVector3d &u, const OdGeVector3d &v, const OdGiMetafile *pMetafile, bool bDcAligned=true, bool bAllowClipping=false)
OdGsMarker selectionMarker() const
const OdGiMaterialTraitsData & effectiveMaterialTraitsData() const
void polygonDc(OdUInt32 numVertices, const OdGePoint3d *vertexList)
OdGiMaterialTraitsCache m_effectiveMaterialTraitsData
void setPlotStyleNameId(OdDbStub *plotStyleNameId)
const OdGiFill * fill() const
void setEyeToOutputTransform(const OdGeMatrix3d &xfm)
void pline(const OdGiPolyline &polyline, OdUInt32 fromIndex=0, OdUInt32 numSegs=0)
void setDrawContextFlags(OdUInt32 flags, bool bFlag)
void setTrueColor(const OdCmEntityColor &trueColor)
OdUInt32 m_drawContextFlags
OdGiExtAccumPtr m_pExtAccum
OdUInt32 m_materialAttributes
bool isAttributesSegmentEnabled()
void setMaterial(OdDbStub *pMaterialId)
OdGiViewport & viewport() const
void polygon(OdInt32 numVertices, const OdGePoint3d *vertexList, const OdGeVector3d *pNormal)
static OdGiContext * dummyGiContext()
bool isXrefOverride() const
OdGiGeometry & rawGeometry() const
void setMaterial(OdDbStub *pMaterialId)
OdGsMarker m_nSelectionMarker
OdRxObject * queryX(const OdRxClass *pProtocolClass) const
const OdGiDrawableDesc * currentDrawableDesc() const
OdGiConveyorConnector m_output
void polylineDc(OdUInt32 numVertices, const OdGePoint3d *vertexList)
void clearEntityTraitsDataChanged() const
OdGiConveyorConnector m_modelEntryPoint
void actualizeMaterialAttributes(OdDbStub *materialId) const
void setLineTypeScale(double lineTypeScale)
double lineTypeScale() const
void setTrueColor(const OdCmEntityColor &color)
void setTransparency(const OdCmTransparency &transparency)
void setLayer(OdDbStub *layerId)
void ellipArc(const OdGeEllipArc3d &ellipArc, const OdGePoint3d *endPointsOverrides=0, OdGiArcType arcType=kOdGiArcSimple)
void affectTraits(const OdGiSubEntityTraitsData *pSource, OdGiSubEntityTraitsData &destination) const
OdDbStub * m_effectiveMaterialId
OdGiConveyorConnector m_eyeEntryPoint
void draw(const OdGiDrawable *pDrawable)
OdGiContext & giContext() const
OdGiSubEntityTraits & subEntityTraits() const
void setDrawFlags(OdUInt32 drawFlags)
OdDbStub * lineType() const
#define ODGI_EXPORT_STATIC
void effectiveMaterialTraitsData(OdGiMaterialTraitsData &data) const
OdDbStub * visualStyle() const
GLint GLenum GLsizei GLsizei height
bool selectionGeom() const
void drawClipBoundary(OdGiClipBoundary *pBoundary, OdGiAbstractClipBoundary *pClipInfo)
virtual void beginViewVectorization()
GLuint GLsizei GLsizei * length
GLint GLenum GLsizei width
virtual bool layerVisible(OdDbStub *layerId) const
OdDb::LineWeight lineWeight() const
void setLineWeight(OdDb::LineWeight lineWeight)
const OdGeVector3d * extrusion(const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint, const OdGePoint3d &thirdPoint)
OdGsMarker m_nPrevSelectionMarker
void setLayer(OdDbStub *layerId)
void setShadowFlags(ShadowFlags shadowFlags)
OdGiSubEntityTraitsData m_effectiveEntityTraitsData
bool isSetExtentsCalled() const
void setLineStyleModifiers(const OdGiDgLinetypeModifiers *pLSMod)
virtual const OdGiLayerTraitsData & effectiveLayerTraits() const
void pushClipBoundary(OdGiClipBoundary *pBoundary, OdGiAbstractClipBoundary *pClipInfo)
OdGiSubEntityTraitsData m_entityTraitsData
OdDbStub * m_effectiveLayerId
virtual OdDbStub * switchLayer(OdDbStub *layerId) const
OdUInt32 numberOfIsolines() const
const OdGiDeviation & worldDeviation() const
void ray(const OdGePoint3d &basePoint, const OdGePoint3d &throughPoint)
void xline(const OdGePoint3d &firstPoint, const OdGePoint3d &secondPoint)
void getExtents(OdGeExtents3d &extents) const
OdDb::PlotStyleNameType plotStyleNameType() const
void circle(const OdGePoint3d ¢er, double radius, const OdGeVector3d &normal)
void pushModelTransform(const OdGeMatrix3d &xfm)
bool effectivelyVisible() const
virtual void setEntityTraitsDataChanged()
OdCmEntityColor trueColor() const
OdGiMapper * m_pCurMaterialMapper
const OdGiSubEntityTraitsData & effectiveTraits() const
ODGI_EXPORT const OdGiTextStyle * odgiPrepareTextStyle(const OdGiTextStyle *pStyle, OdGiTextStyle &res)
void shell(OdInt32 numVertices, const OdGePoint3d *vertexList, OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)
OdDbStub * plotStyleNameId() const
OdGeMatrix3d getWorldToModelTransform() const
void setSelectionGeom(bool bSelectionFlag)
OdUInt32 m_entityTraitsDataChanged
void polygonEye(OdUInt32 numVertices, const OdGePoint3d *vertexList)
void text(const OdGePoint3d &position, const OdGeVector3d &normal, const OdGeVector3d &direction, double height, double width, double oblique, const OdString &msg)
virtual const OdGiSubEntityTraitsData & effectiveTraits() const
void rasterImageDc(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)
OdGiFillType fillType() const
void image(const OdGiImageBGRA32 &img, const OdGePoint3d &origin, const OdGeVector3d &uVec, const OdGeVector3d &vVec, OdGiRasterImage::TransparencyMode trpMode=OdGiRasterImage::kTransparency8Bit)
void setSectionable(bool bSectionableFlag)
virtual double linetypeGenerationCriteria() const
virtual bool doDraw(OdUInt32 drawableFlags, const OdGiDrawable *pDrawable)
const OdGiSubEntityTraitsData * m_pByBlock
FMGEOMETRY_API Body extrusion(const Profile2D &rBase, const OdGeMatrix3d &mBasePlane, const OdGeVector3d &vDir, const DeviationParams &devDeviation=FMGeGbl::gDefDev)
void polypoint(OdInt32 numPoints, const OdGePoint3d *vertexList, const OdCmEntityColor *pColors, const OdCmTransparency *pTransparency, const OdGeVector3d *pNormals, const OdGsMarker *pSubEntMarkers, OdInt32 nPointSize)
void setSelectionFlags(SelectionFlags selectionFlags)
GLsizei const GLfloat * value
virtual void setEntityTraitsDataChanged(int bit, bool value=true)
void setShadowFlags(ShadowFlags shadowFlags)
void circularArc(const OdGePoint3d ¢er, double radius, const OdGeVector3d &normal, const OdGeVector3d &startVector, double sweepAngle, OdGiArcType arcType=kOdGiArcSimple)
bool isEntityTraitsDataChanged(int bit=kSomeChanged) const
OdUInt32 m_nDrawableAttributes
OdGiContext * context() const
OdUInt32 drawFlags() const
void rowOfDots(OdInt32 numPoints, const OdGePoint3d &startPoint, const OdGeVector3d &dirToNextPoint)
void setByBlockTraits(const OdGiSubEntityTraitsData *pByBlock)
OdCmEntityColor secondaryTrueColor() const
void polygon(OdInt32 numVertices, const OdGePoint3d *vertexList)
void mesh(OdInt32 numRows, OdInt32 numColumns, const OdGePoint3d *vertexList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)
void edge(const OdGiEdge2dArray &edges)
void setColor(OdUInt16 color)
void setFillType(OdGiFillType fillType)
OdGiSubEntityTraits & subEntityTraits() const
OdCmTransparency transparency() const
void resetEntityTraitsData()
OdUInt32 drawContextFlags() const
void setVisualStyle(const OdDbStub *pVisualStyleId)
const OdGiConveyorContext * drawContext() const
void pushModelTransform(const OdGeVector3d &normal)
OdGiModelToViewProcPtr m_pModelToEyeProc
virtual OdUInt32 setAttributes(const OdGiDrawable *pDrawable)
OdGiContext * context() const
void setSelectionGeom(bool bSelectionFlag)
OdGeMatrix3d getModelToWorldTransform() const
OdGiGeometry & rawGeometry() const
ODRX_USING_HEAP_OPERATORS(OdGiDummyCommonDraw< OdGiWorldDraw_ >)
void setSectionable(bool bSectionableFlag)
ShadowFlags shadowFlags() const
OdDbStub * m_byLayerMaterialId
void startAttributesSegment()
const OdGiViewport * giViewport() const
void setDrawFlags(OdUInt32 drawFlags)
void polylineEye(OdUInt32 numVertices, const OdGePoint3d *vertexList)
OdSmartPtr< OdGiFill > OdGiFillPtr
void setPlotStyleName(OdDb::PlotStyleNameType plotStyleNameType, OdDbStub *pPlotStyleNameId=0)
void setFill(const OdGiFill *pFill)
static ODGI_EXPORT_STATIC const OdGiSubEntityTraitsData g_entityTraitsDataReset