39#define HATCH_PATTERN_NAME_LENGTH 32
80 kSelfIntersecting = 0x40,
83 kIsAnnotative = 0x200,
84 kDoesNotSupportScale = 0x400,
85 kForceAnnoAllVisible = 0x800,
86 kOrientToPaper = 0x1000,
87 kIsAnnotativeBlock = 0x2000
121 kPreDefinedGradient = 0,
122 kUserDefinedGradient = 1
200 int loopIndex)
const;
453 int loopIndex,
OdInt32 loopType,
754 unsigned seedIndex)
const;
888 bool& exchangeXData);
902 bool bUnderestimateNumLines =
false)
const;
1079 const double* values);
DBENT_EXPORT EdgeArray oddbCreateEdgesFromEntity(const OdDbEntity *pEnt, const OdGePlane &hatchPlane, const bool bLeadToXAxis=false)
OdSmartPtr< OdDbHatch > OdDbHatchPtr
OdArray< OdGeCurve2d * > EdgeArray
void regeneratePattern(bool forceReload=true)
virtual void subViewportDraw(OdGiViewportDraw *pWd) const
void insertLoopAt(int loopIndex, OdInt32 loopType, EdgeArray &edgePtrs)
void getAssocObjIds(OdDbObjectIdArray &dbObjIds) const
OdResult markModifiedLoop(const OdDbHandle entityHandle)
void getLoopAt(int loopIndex, OdGePoint2dArray &vertices, OdGeDoubleArray &bulges) const
static OdResult makeClosedLoop(EdgeArray &edgePtrs, const OdDbObjectIdArray &dbObjIds, const OdGeTol &gapTolerance, const bool &isEdgeArrayConsistent)
OdResult setShadeTintValueAndColor2(double value)
void setElevation(double elevation)
double patternSpace() const
void evaluateGradientColorAt(double value, OdCmColor &color) const
double patternScale() const
double getShadeTintValue() const
void setGradientOneColorMode(bool oneColorMode)
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
void appendLoop(OdInt32 loopType, const OdDbObjectIdArray &dbObjIds)
void setBackgroundColor(const OdCmColor &color)
void setOriginPoint(const OdGePoint2d &pt)
OdCmColor backgroundColor() const
OdDbObjectPtr decomposeForSave(OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
void setPattern(OdDbHatch::HatchPatternType patType, const OdString &patName)
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const ODRX_OVERRIDE
bool patternDouble() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
double patternAngle() const
OdString gradientName() const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
virtual OdDbEntityPtr subSubentPtr(const OdDbFullSubentPath &path) const
virtual OdResult subGetSubentPathsAtGsMarker(OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &xfm, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0) const
OdInt32 loopTypeAt(int loopIndex) const
OdGeVector3d normal() const
OdGeMatrix3d getEcs() const
void clearMarkModifiedLoops()
double gradientAngle() const
void setNormal(const OdGeVector3d &normal)
DWGMAP_DECLARE_MEMBERS(OdDbHatch)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbHatch::HatchPatternType patternType() const
OdResult updateMarkedLoops()
void setAssociative(bool isAssociative)
int numSeedPoints() const
void appendLoop(OdInt32 loopType, const OdGePoint2dArray &vertices, const OdGeDoubleArray &bulges)
void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents)
void appendSeedPoint(const OdGePoint2d &point)
virtual bool isGradient() const
void appendToOwner(OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
void removeLoopAt(int loopIndex)
void getLoopAt(int loopIndex, EdgeArray &edgePtrs) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void removeSeedPointAt(int seedPointIndex)
virtual OdResult subGetGsMarkersAtSubentPath(const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const
virtual OdResult subGetClassID(void *pClsid) const
void setHatchStyle(OdDbHatch::HatchStyle hatchStyle)
void setShadeTintValue(double luminance)
void getPatternDefinitionAt(int lineIndex, double &lineAngle, double &baseX, double &baseY, double &offsetX, double &offsetY, OdGeDoubleArray &dashes) const
virtual void modifiedGraphics(const OdDbObject *pObject)
OdGePoint2d originPoint() const
void setPatternSpace(double space)
void setGradientAngle(double angle)
OdDbHatch::GradientPatternType gradientType() const
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const ODRX_OVERRIDE
void setPatternAngle(double angle)
int numPatternDefinitions() const
void setPatternScale(double scale)
void setSeedPointAt(unsigned seedIndex, const OdGePoint2d &point)
int numHatchLines() const
void appendLoop(OdInt32 loopType, EdgeArray &edgePtrs)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void setPatternDouble(bool isDouble)
OdResult markModifiedLoop(const OdUInt16 loopIndex)
void getAssocObjIdsAt(int loopIndex, OdDbObjectIdArray &dbObjIds) const
void appendOrderedLoop(OdInt32 loopType, EdgeArray &edgePtrs)
void getMarkedModifiedLoops(OdUInt16Array &indicesMarkedLoops) const
void insertLoopAt(int loopIndex, OdInt32 loopType, const OdGePoint2dArray &vertices, const OdGeDoubleArray &bulges)
void setHatchObjectType(OdDbHatch::HatchObjectType hatchObjectType)
virtual OdResult explodeGeometry(OdRxObjectPtrArray &entitySet) const
double gradientShift() const
OdHatchPattern getRawPattern() const
OdResult evaluateHatch(bool bUnderestimateNumLines=false) const
void setPattern(OdDbHatch::HatchPatternType patType, const OdString &patName, double angle, double scale, const OdHatchPattern &pat, OdGePoint2d originPoint=OdGePoint2d())
virtual OdResult getArea(double &area) const
OdDbHatch::HatchObjectType hatchObjectType() const
virtual OdResult getPlane(OdGePlane &plane, OdDb::Planarity &planarity) const
bool getGradientOneColorMode() const
void insertLoopAt(int loopIndex, OdInt32 loopType, const OdDbObjectIdArray &dbObjIds)
OdResult unmarkModifiedLoop(const OdDbHandle entityHandle)
OdDbHatch::HatchStyle hatchStyle() const
virtual OdDbRegionPtr getRegionArea() const
OdString patternName() const
OdHatchPattern getPattern() const
void getHatchLineDataAt(int lineIndex, OdGePoint2d &startPoint, OdGePoint2d &endPoint) const
void setAssocObjIdsAt(int loopIndex, const OdDbObjectIdArray &dbObjIds)
void setGradient(OdDbHatch::GradientPatternType gradientType, const OdString &gradientName)
OdResult unmarkModifiedLoop(const OdUInt16 loopIndex)
void getHatchLinesData(OdGePoint2dArray &startPoints, OdGePoint2dArray &endPoints) const
void setGradientColors(OdUInt32 count, const OdCmColor *colors, const double *values)
void setRawPattern(OdDbHatch::HatchPatternType patType, const OdString &patName, double angle, double scale, const OdHatchPattern &pat)
void getGradientColors(OdCmColorArray &colors, OdGeDoubleArray &values) const
void setPixelSize(double pixelSize)
const OdGePoint2d & getSeedPointAt(unsigned seedIndex) const
virtual bool isPlanar() const
void setGradientShift(double gradientShift)
virtual void openedForModify(const OdDbObject *pObject)
virtual bool isHatch() const
GLuint GLsizei GLsizei GLint GLenum * type
GLsizei const GLfloat * value