39 #define HATCH_PATTERN_NAME_LENGTH 32
82 kSelfIntersecting = 0x40,
85 kIsAnnotative = 0x200,
86 kDoesNotSupportScale = 0x400,
87 kForceAnnoAllVisible = 0x800,
88 kOrientToPaper = 0x1000,
89 kIsAnnotativeBlock = 0x2000
123 kPreDefinedGradient = 0,
124 kUserDefinedGradient = 1
202 int loopIndex)
const;
449 int loopIndex,
OdInt32 loopType,
740 unsigned seedIndex)
const;
874 bool& exchangeXData);
888 bool bUnderestimateNumLines =
false)
const;
1057 const double* values);
TOOLKIT_EXPORT EdgeArray oddbCreateEdgesFromEntity(const OdDbEntity *pEnt, const OdGePlane &hatchPlane)
OdSmartPtr< OdDbHatch > OdDbHatchPtr
OdArray< OdGeCurve2d * > EdgeArray
virtual void subViewportDraw(OdGiViewportDraw *pWd) const
void appendOrderedLoop(OdInt32 loopType, const EdgeArray &edgePtrs)
void setPattern(OdDbHatch::HatchPatternType patType, const OdString &patName, double angle, double scale, const OdHatchPattern &pat, OdGePoint2d basePt=OdGePoint2d())
void getAssocObjIds(OdDbObjectIdArray &dbObjIds) const
void getLoopAt(int loopIndex, OdGePoint2dArray &vertices, OdGeDoubleArray &bulges) const
void setElevation(double elevation)
void setSeedPointAt(unsigned seedIndex, OdGePoint2d &point)
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
double gradientAngle() const
void setNormal(const OdGeVector3d &normal)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbHatch::HatchPatternType patternType() const
void insertLoopAt(int loopIndex, OdInt32 loopType, const EdgeArray &edgePtrs)
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)
const OdGePoint2d & getSeedPointAt(unsigned seedIndex) const
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 appendLoop(OdInt32 loopType, const EdgeArray &edgePtrs)
int numHatchLines() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
ODDB_DECLARE_MEMBERS(OdDbHatch)
void setPatternDouble(bool isDouble)
void getAssocObjIdsAt(int loopIndex, OdDbObjectIdArray &dbObjIds) 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
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)
OdDbHatch::HatchStyle hatchStyle() 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)
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)
virtual bool isPlanar() const
void setGradientShift(double gradientShift)
virtual bool isHatch() const
GLuint GLsizei GLsizei GLint GLenum * type
GLsizei const GLfloat * value
@ kNone
Light mode is inherited from the annotation.