CFx SDK Documentation  2023 SP0
Public Member Functions | List of all members
OdDbEllipse Class Reference

#include <DbEllipse.h>

Inheritance diagram for OdDbEllipse:
OdDbCurve OdDbEntity OdDbObject OdGiDrawable OdRxObject

Public Member Functions

 ODDB_DECLARE_MEMBERS (OdDbEllipse)
 
 OdDbEllipse ()
 
OdGePoint3d center () const
 
void setCenter (const OdGePoint3d &center)
 
OdGeVector3d normal () const
 
OdGeVector3d majorAxis () const
 
OdGeVector3d minorAxis () const
 
double radiusRatio () const
 
void setRadiusRatio (double radiusRatio)
 
double startAngle () const
 
void setStartAngle (double startAngle)
 
double endAngle () const
 
void setEndAngle (double endAngle)
 
double paramAtAngle (double angle) const
 
double angleAtParam (double param) const
 
void get (OdGePoint3d &center, OdGeVector3d &unitNormal, OdGeVector3d &majorAxis, double &radiusRatio, double &startAngle, double &endAngle) const
 
void set (const OdGePoint3d &center, const OdGeVector3d &unitNormal, const OdGeVector3d &majorAxis, double radiusRatio, double startAngle=0.0, double endAngle=Oda2PI)
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
virtual bool subWorldDraw (OdGiWorldDraw *pWd) const
 
virtual OdResult subGetGeomExtents (OdGeExtents3d &extents) const
 
virtual OdResult subGetClassID (void *pClsid) const
 
virtual bool isClosed () const
 
virtual bool isPeriodic () const
 
virtual bool isPlanar () const
 
virtual OdResult getPlane (OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
 
virtual OdResult getStartParam (double &startParam) const
 
void setStartParam (double startParam)
 
virtual OdResult getEndParam (double &endParam) const
 
void setEndParam (double endParam)
 
virtual OdResult getStartPoint (OdGePoint3d &startPoint) const
 
virtual OdResult getEndPoint (OdGePoint3d &endPoint) const
 
virtual OdResult getPointAtParam (double param, OdGePoint3d &pointOnCurve) const
 
virtual OdResult getParamAtPoint (const OdGePoint3d &pointOnCurve, double &param) const
 
virtual OdResult getDistAtParam (double param, double &dist) const
 
virtual OdResult getParamAtDist (double dist, double &param) const
 
virtual OdResult getFirstDeriv (double param, OdGeVector3d &firstDeriv) const
 
virtual OdResult getSecondDeriv (double param, OdGeVector3d &secondDeriv) const
 
virtual OdResult getArea (double &vArea) const
 
 TD_USING (OdDbCurve::getFirstDeriv)
 
 TD_USING (OdDbCurve::getSecondDeriv)
 
virtual OdResult subTransformBy (const OdGeMatrix3d &xfm)
 
virtual OdResult getOdGeCurve (OdGeCurve3d *&pGeCurve, const OdGeTol &tol=OdGeContext::gTol) const
 
virtual OdResult setFromOdGeCurve (const OdGeCurve3d &geCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
 
virtual OdResult reverseCurve ()
 
- Public Member Functions inherited from OdDbCurve
 ODDB_DECLARE_MEMBERS (OdDbCurve)
 
 OdDbCurve ()
 
virtual OdResult getDistAtPoint (const OdGePoint3d &pointOnCurve, double &dist) const
 
virtual OdResult getPointAtDist (double dist, OdGePoint3d &pointOnCurve) const
 
virtual OdResult getFirstDeriv (const OdGePoint3d &pointOnCurve, OdGeVector3d &firstDeriv) const
 
virtual OdResult getSecondDeriv (const OdGePoint3d &pointOnCurve, OdGeVector3d &secondDeriv) const
 
virtual OdResult getClosestPointTo (const OdGePoint3d &givenPoint, OdGePoint3d &pointOnCurve, bool extend=false) const
 
virtual OdResult getClosestPointTo (const OdGePoint3d &givenPoint, const OdGeVector3d &normal, OdGePoint3d &pointOnCurve, bool extend=false) const
 
virtual OdResult getSpline (OdDbSplinePtr *spline) const
 
virtual OdResult extend (double param)
 
virtual OdResult extend (bool extendStart, const OdGePoint3d &toPoint)
 
virtual OdResult getOrthoProjectedCurve (const OdGePlane &projPlane, OdDbCurvePtr *pProjCurve) const
 
virtual OdResult getProjectedCurve (const OdGePlane &projPlane, const OdGeVector3d &projDirection, OdDbCurvePtr *pProjCurve) const
 
virtual OdResult getOffsetCurves (double offsetDistance, OdRxObjectPtrArray &offsetCurves) const
 
virtual OdResult getOffsetCurvesGivenPlaneNormal (const OdGeVector3d &normal, double offsetDistance, OdRxObjectPtrArray &offsetCurves) const
 
virtual OdResult getSplitCurves (const OdGeDoubleArray &params, OdRxObjectPtrArray &curveSegments) const
 
virtual OdResult getSplitCurves (const OdGePoint3dArray &points, OdRxObjectPtrArray &curveSegments) const
 
virtual OdInt32 findVertexIndex (const OdDbVertex *vert) const
 
- Public Member Functions inherited from OdDbEntity
 ODDB_DECLARE_MEMBERS (OdDbEntity)
 
 OdDbEntity ()
 
OdDbObjectId blockId () const
 
OdCmColor color () const
 
virtual OdResult setColor (const OdCmColor &color, bool doSubents=true)
 
OdUInt16 colorIndex () const
 
virtual OdCmEntityColor entityColor () const
 
virtual OdResult setColorIndex (OdUInt16 colorIndex, bool doSubents=true)
 
OdDbObjectId colorId () const
 
virtual OdResult setColorId (OdDbObjectId colorId, bool doSubents=true)
 
OdCmTransparency transparency () const
 
virtual OdResult setTransparency (const OdCmTransparency &transparency, bool doSubents=true)
 
OdString plotStyleName () const
 
OdDb::PlotStyleNameType getPlotStyleNameId (OdDbObjectId &plotStyleNameId) const
 
virtual OdResult setPlotStyleName (const OdString &plotStyleName, bool doSubents=true)
 
virtual OdResult setPlotStyleName (OdDb::PlotStyleNameType plotStyleNameType, OdDbObjectId plotStyleNameId=OdDbObjectId::kNull, bool doSubents=true)
 
OdString layer () const
 
OdDbObjectId layerId () const
 
virtual OdResult setLayer (const OdString &layerName, bool doSubents=true, bool allowHiddenLayer=false)
 
virtual OdResult setLayer (OdDbObjectId layerId, bool doSubents=true, bool allowHiddenLayer=false)
 
OdString linetype () const
 
OdDbObjectId linetypeId () const
 
virtual OdResult setLinetype (const OdString &linetypeName, bool doSubents=true)
 
virtual OdResult setLinetype (OdDbObjectId linetypeID, bool doSubents=true)
 
OdString material () const
 
OdDbObjectId materialId () const
 
virtual OdResult setMaterial (const OdString &materialName, bool doSubents=true)
 
virtual OdResult setMaterial (OdDbObjectId materialID, bool doSubents=true)
 
OdDbObjectId visualStyleId (VisualStyleType vstype=kFullVisualStyle) const
 
virtual OdResult setVisualStyle (OdDbObjectId visualStyleId, VisualStyleType vstype=kFullVisualStyle, bool doSubents=true)
 
virtual const OdGiMappermaterialMapper () const
 
virtual void setMaterialMapper (const OdGiMapper *mapper, bool doSubents=true)
 
double linetypeScale () const
 
virtual OdResult setLinetypeScale (double linetypeScale, bool doSubents=true)
 
OdDb::Visibility visibility () const
 
ODRX_SEALED_VIRTUAL OdResult setVisibility (OdDb::Visibility visibility, bool doSubents=true) ODRX_SEALED
 
OdDb::Visibility tempVisibility () const
 
void setTempVisibility (OdDb::Visibility visibility)
 
OdDb::LineWeight lineWeight () const
 
virtual OdResult setLineWeight (OdDb::LineWeight lineWeight, bool doSubents=true)
 
virtual bool castShadows () const
 
virtual void setCastShadows (bool castShadows)
 
virtual bool receiveShadows () const
 
virtual void setReceiveShadows (bool receiveShadows)
 
virtual OdDb::CollisionType collisionType () const
 
void setPropertiesFrom (const OdDbEntity *pSource, bool doSubents=true)
 
void subHandOverTo (OdDbObject *pNewObject)
 
ODRX_SEALED_VIRTUAL OdResult transformBy (const OdGeMatrix3d &xfm) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getTransformedCopy (const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult explode (OdRxObjectPtrArray &entitySet) const ODRX_SEALED
 
virtual OdResult explodeToBlock (OdDbBlockTableRecord *pBlockRecord, OdDbObjectIdArray *ids=0)
 
virtual OdResult explodeGeometry (OdRxObjectPtrArray &entitySet) const
 
virtual OdResult explodeGeometryToBlock (OdDbBlockTableRecord *pBlockRecord, OdDbObjectIdArray *ids=0)
 
virtual void subViewportDraw (OdGiViewportDraw *pVd) const
 
void setDatabaseDefaults (OdDbDatabase *pDb=0, bool doSubents=false)
 
virtual void subSetDatabaseDefaults (OdDbDatabase *pDb, bool doSubents)
 
virtual void applyPartialUndo (OdDbDwgFiler *pUndoFiler, OdRxClass *pClassObj)
 
void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
 
virtual OdResult dxfIn (OdDbDxfFiler *pFiler)
 
virtual void dxfOut (OdDbDxfFiler *pFiler) const
 
virtual OdResult dxfInFields_R12 (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual OdGiDrawabledrawable ()
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual void subList () const
 
void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual OdResult subErase (bool erasing) ODRX_OVERRIDE
 
void recordGraphicsModified (bool graphicsModified=true)
 
virtual void copyFrom (const OdRxObject *pSource)
 
ODRX_SEALED_VIRTUAL void list () const ODRX_SEALED
 
virtual OdResult getGeomExtents (OdGeExtents3d &extents) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void highlight (bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool isContentSnappable () const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPoints (OdGePoint3dArray &gripPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAt (const OdIntArray &indices, const OdGeVector3d &offset) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPoints (OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAt (const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getStretchPoints (OdGePoint3dArray &stretchPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveStretchPointsAt (const OdIntArray &indices, const OdGeVector3d &offset) ODRX_SEALED
 
virtual void dragStatus (const OdDb::DragStat status)
 
ODRX_SEALED_VIRTUAL void gripStatus (const OdDb::GripStat status) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool cloneMeForDragging () ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool hideMeForDragging () const ODRX_SEALED
 
virtual void saveAs (OdGiWorldDraw *pWd, OdDb::DwgVersion ver) const
 
ODRX_SEALED_VIRTUAL OdResult getCompoundObjectTransform (OdGeMatrix3d &xM) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult intersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult intersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const ODRX_SEALED
 
OdResult boundingBoxIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker, OdGsMarker otherGsMarker) const
 
OdResult boundingBoxIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker, OdGsMarker otherGsMarker) const
 
ODRX_SEALED_VIRTUAL OdResult getSubentPathsAtGsMarker (OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &xfm, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGsMarkersAtSubentPath (const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPointsAtSubentPath (const OdDbFullSubentPath &path, OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const OdUInt32 bitflags) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAtSubentPaths (const OdDbFullSubentPathArray &paths, const OdDbVoidPtrArray &gripAppData, const OdGeVector3d &offset, const OdUInt32 bitflags) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult deleteSubentPaths (const OdDbFullSubentPathArray &paths) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult addSubentPaths (const OdDbFullSubentPathArray &paths) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbEntityPtr subentPtr (const OdDbFullSubentPath &path) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult transformSubentPathsBy (const OdDbFullSubentPathArray &paths, const OdGeMatrix3d &xform) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getSubentClassId (const OdDbFullSubentPath &path, void *clsId) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getSubentPathGeomExtents (const OdDbFullSubentPath &path, OdGeExtents3d &extents) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void subentGripStatus (OdDb::GripStat status, const OdDbFullSubentPath &subentity) ODRX_SEALED
 
virtual OdGeMatrix3d getEcs () const
 
- Public Member Functions inherited from OdDbObject
 ODDB_DECLARE_MEMBERS (OdDbObject)
 
 ~OdDbObject ()
 
void addRef ()
 
void release ()
 
long numRefs () const
 
OdDbObjectId objectId () const
 
OdDbHandle getDbHandle () const
 
OdDbHandle handle () const
 
OdDbObjectId ownerId () const
 
virtual void setOwnerId (OdDbObjectId ownerId)
 
OdDbDatabasedatabase () const
 
void createExtensionDictionary ()
 
OdDbObjectId extensionDictionary () const
 
bool releaseExtensionDictionary ()
 
OdDbXrecordPtr createXrecord (const OdString &xrecordName, OdDb::DuplicateRecordCloning style=OdDb::kDrcIgnore)
 
void upgradeOpen ()
 
void downgradeOpen ()
 
void cancel ()
 
virtual OdResult subOpen (OdDb::OpenMode mode)
 
virtual void subClose ()
 
OdResult erase (bool eraseIt=true)
 
void handOverTo (OdDbObject *pNewObject, bool keepXData=true, bool keepExtDict=true)
 
void swapIdWith (OdDbObjectId otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void audit (OdDbAuditInfo *pAuditInfo)
 
void dwgIn (OdDbDwgFiler *pFiler)
 
void dwgOut (OdDbDwgFiler *pFiler) const
 
virtual OdDb::DuplicateRecordCloning mergeStyle () const
 
virtual OdResBufPtr xData (const OdString &regappName=OdString::kEmpty) const
 
virtual void setXData (const OdResBuf *pRb)
 
bool isEraseStatusToggled () const
 
bool isErased () const
 
bool isReadEnabled () const
 
bool isWriteEnabled () const
 
bool isNotifyEnabled () const
 
bool isModified () const
 
bool isModifiedXData () const
 
bool isModifiedGraphics () const
 
bool isNewObject () const
 
bool isNotifying () const
 
bool isUndoing () const
 
bool isReallyClosing () const
 
bool isDBRO () const
 
void assertReadEnabled () const
 
void assertWriteEnabled (bool autoUndo=true, bool recordModified=true)
 
void assertNotifyEnabled () const
 
void disableUndoRecording (bool disable)
 
bool isUndoRecordingDisabled () const
 
OdDbDwgFilerundoFiler ()
 
void addReactor (OdDbObjectReactor *pReactor) const
 
void removeReactor (OdDbObjectReactor *pReactor) const
 
virtual void addPersistentReactor (const OdDbObjectId &objId)
 
virtual void removePersistentReactor (const OdDbObjectId &objId)
 
bool hasPersistentReactor (const OdDbObjectId &objId) const
 
OdDbObjectIdArray getPersistentReactors () const
 
OdDbObjectReactorArray getTransientReactors () const
 
virtual void recvPropagateModify (const OdDbObject *pSubObj)
 
virtual void xmitPropagateModify () const
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr deepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr wblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
void setOdDbObjectIdsInFlux ()
 
bool isOdDbObjectIdsInFlux () const
 
virtual void copied (const OdDbObject *pObject, const OdDbObject *pNewObject)
 
virtual void erased (const OdDbObject *pObject, bool erasing=true)
 
virtual void goodbye (const OdDbObject *pObject)
 
virtual void openedForModify (const OdDbObject *pObject)
 
virtual void modified (const OdDbObject *pObject)
 
virtual void subObjModified (const OdDbObject *pObject, const OdDbObject *pSubObj)
 
virtual void modifyUndone (const OdDbObject *pObject)
 
virtual void modifiedXData (const OdDbObject *pObject)
 
virtual void unappended (const OdDbObject *pObject)
 
virtual void reappended (const OdDbObject *pObject)
 
bool isAProxy () const
 
virtual void objectClosed (const OdDbObjectId &objectId)
 
virtual void modifiedGraphics (const OdDbObject *pObject)
 
bool hasSaveVersionOverride () const
 
void setHasSaveVersionOverride (bool hasSaveVersionOverride)
 
virtual OdDb::DwgVersion getObjectSaveVersion (const OdDbFiler *pFiler, OdDb::MaintReleaseVer *pMaintVer=0) const
 
virtual OdDbObjectPtr decomposeForSave (OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
virtual OdDbObjectPtr decomposeForSave (OdDb::SaveType format, OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
void convertForSave (OdDb::DwgVersion ver)
 
virtual void composeForLoad (OdDb::SaveType format, OdDb::DwgVersion version, OdDbAuditInfo *pAuditInfo)
 
virtual bool isPersistent () const
 
virtual OdDbStub * id () const
 
ODRX_SEALED_VIRTUAL OdResult getClassID (void *pClsid) const ODRX_SEALED
 
void setGsNode (OdGsCache *pNode)
 
OdGsCachegsNode () const
 
void xDataTransformBy (const OdGeMatrix3d &xfm)
 
bool hasFields () const
 
OdDbObjectId getField (const OdString &fieldName) const
 
OdDbObjectPtr getField (const OdString &fieldName, OdDb::OpenMode mode) const
 
virtual OdDbObjectId setField (const OdString &fieldName, OdDbField *pField)
 
virtual OdResult removeField (OdDbObjectId fieldId)
 
virtual OdDbObjectId removeField (const OdString &fieldName)
 
OdDbObjectId getFieldDictionary () const
 
OdDbObjectPtr getFieldDictionary (OdDb::OpenMode mode) const
 
virtual OdRxClasssaveAsClass (OdRxClass *pClass) const
 
- Public Member Functions inherited from OdGiDrawable
 ODRX_DECLARE_MEMBERS (OdGiDrawable)
 
virtual DrawableType drawableType () const
 
ODRX_SEALED_VIRTUAL OdUInt32 setAttributes (OdGiDrawableTraits *pTraits) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool worldDraw (OdGiWorldDraw *pWd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void viewportDraw (OdGiViewportDraw *pVd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdUInt32 viewportDrawLogicalFlags (OdGiViewportDraw *pVd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdUInt32 regenSupportFlags () const ODRX_SEALED
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- Public Types inherited from OdDbEntity
enum  VisualStyleType { kFullVisualStyle , kFaceVisualStyle , kEdgeVisualStyle }
 
- Public Types inherited from OdGiDrawable
enum  SetAttributesFlags {
  kDrawableNone = 0 , kDrawableIsAnEntity = 1 , kDrawableUsesNesting = 2 , kDrawableIsCompoundObject = 4 ,
  kDrawableViewIndependentViewportDraw = 8 , kDrawableIsInvisible = 16 , kDrawableHasAttributes = 32 , kDrawableRegenTypeDependantGeometry = 64 ,
  kDrawableIsDimension = (kDrawableIsAnEntity + kDrawableIsCompoundObject + 128) , kDrawableRegenDraw = 256 , kDrawableStandardDisplaySingleLOD = 512 , kDrawableShadedDisplaySingleLOD = 1024 ,
  kDrawableViewDependentViewportDraw = 2048 , kDrawableBlockDependentViewportDraw = 4096 , kDrawableIsExternalReference = 8192 , kDrawableNotPlottable = 16384 ,
  kLastFlag = kDrawableNotPlottable
}
 
enum  DrawableType {
  kGeometry = 0 , kDistantLight = 1 , kPointLight = 2 , kSpotLight = 3 ,
  kAmbientLight , kSolidBackground , kGradientBackground , kImageBackground ,
  kGroundPlaneBackground , kViewport , kWebLight , kSkyBackground ,
  kImageBasedLightingBackground
}
 
- Static Public Member Functions inherited from OdDbCurve
static OdResult createFromOdGeCurve (const OdGeCurve3d &geCurve, OdDbCurve *&pDbCurve, OdGeVector3d *normal=NULL, const OdGeTol &tol=OdGeContext::gTol)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Member Functions inherited from OdDbEntity
virtual OdDbObjectPtr subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdDbObjectPtr subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdResult subGetTransformedCopy (const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const
 
virtual OdResult subExplode (OdRxObjectPtrArray &entitySet) const
 
virtual OdResult subGetCompoundObjectTransform (OdGeMatrix3d &xM) const
 
virtual bool subCloneMeForDragging ()
 
virtual bool subHideMeForDragging () const
 
virtual void subGripStatus (const OdDb::GripStat status)
 
virtual OdResult subGetOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const
 
virtual OdResult subGetOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const
 
virtual bool subIsContentSnappable () const
 
virtual OdResult subGetGripPoints (OdGePoint3dArray &gripPoints) const
 
virtual OdResult subMoveGripPointsAt (const OdIntArray &indices, const OdGeVector3d &offset)
 
virtual OdResult subGetGripPoints (OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const
 
virtual OdResult subMoveGripPointsAt (const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags)
 
virtual OdResult subGetStretchPoints (OdGePoint3dArray &stretchPoints) const
 
virtual OdResult subMoveStretchPointsAt (const OdIntArray &indices, const OdGeVector3d &offset)
 
virtual OdResult subIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const
 
virtual OdResult subIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const
 
virtual void subHighlight (bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const
 
virtual OdDb::Visibility subVisibility () const
 
virtual OdResult subSetVisibility (OdDb::Visibility visibility, bool doSubents=true)
 
virtual OdResult subDeleteSubentPaths (const OdDbFullSubentPathArray &paths)
 
virtual OdResult subAddSubentPaths (const OdDbFullSubentPathArray &paths)
 
virtual OdResult subMoveGripPointsAtSubentPaths (const OdDbFullSubentPathArray &paths, const OdDbVoidPtrArray &gripAppData, const OdGeVector3d &offset, const OdUInt32 bitflags)
 
virtual OdResult subGetGripPointsAtSubentPath (const OdDbFullSubentPath &path, OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const OdUInt32 bitflags) const
 
virtual OdResult subGetSubentPathsAtGsMarker (OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &xfm, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0) const
 
virtual OdResult subGetGsMarkersAtSubentPath (const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const
 
virtual OdDbEntityPtr subSubentPtr (const OdDbFullSubentPath &path) const
 
virtual OdResult subTransformSubentPathsBy (const OdDbFullSubentPathArray &paths, const OdGeMatrix3d &xform)
 
virtual OdResult subGetSubentClassId (const OdDbFullSubentPath &path, void *clsId) const
 
virtual OdResult subGetSubentPathGeomExtents (const OdDbFullSubentPath &path, OdGeExtents3d &extents) const
 
virtual void subSubentGripStatus (OdDb::GripStat status, const OdDbFullSubentPath &subentity)
 
- Protected Member Functions inherited from OdDbObject
 OdDbObject ()
 
- Protected Member Functions inherited from OdGiDrawable
 OdGiDrawable ()
 
virtual OdUInt32 subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const
 
virtual OdUInt32 subRegenSupportFlags () const
 
- Protected Attributes inherited from OdDbObject
OdDbObjectImplm_pImpl
 

Detailed Description

<group OdDb_Classes>

This class implements the ellipse object (Ellipse entity) in the database. This class inherits the base functionality of entities. The ellipse entity can represent either an elliptical closed figure (ellipse) or unclosed elliptical segment (elliptical arc) in world space. When the start angle coincides with the end angle, the figure is closed and this class represents an ellipse. When the start angle differs from the end angle on 1e-6, the figure is unclosed and this class represents an elliptical arc.

Remarks
The ellipse must have (StartAngle = 0) and (EndAngle = Oda2PI). The elliptical arc has (EndAngle - StartAngle) > 1e-6. The radius ratio must be in the range [1e-6 to 1.0].
See also
TD_Db
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse.html, Working with Ellipses>

OdDbCircle, OdDbArc classes

Definition at line 62 of file DbEllipse.h.

Constructor & Destructor Documentation

◆ OdDbEllipse()

OdDbEllipse::OdDbEllipse ( )

Builds an instance of the ellipse object.

Remarks
Use the static pseudo-constructor instead it. See: <link db_ellipse_overview.html, Overview of Ellipses>

Member Function Documentation

◆ angleAtParam()

double OdDbEllipse::angleAtParam ( double  param) const

Returns the angle value corresponding to the specified parameter value.

Parameters
param[in] Parameter as a Double value in radians.
See also
<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

◆ center()

OdGePoint3d OdDbEllipse::center ( ) const

Returns the WCS coordinates of the center for the elliptical figure (ellipse or arc) (DXF 10) as three-dimensional point instance.

See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_specific.html, Specific Ellipse Properties>

OdDbEllipse::setCenter() method

◆ dwgInFields()

virtual OdResult OdDbEllipse::dwgInFields ( OdDbDwgFiler pFiler)
virtual

Reads the .dwg file data of this object.

Parameters
pFiler[in] Filer object from which data are read.
Returns
Returns the filer status.

This function is called by dwgIn() to allow the object to read its data.

When overriding this function:

1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().

Reimplemented from OdDbEntity.

◆ dwgOutFields()

virtual void OdDbEllipse::dwgOutFields ( OdDbDwgFiler pFiler) const
virtual

Writes the .dwg file data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are written.
Remarks

This function is called by dwgIn() to allow the object to write its data.

When overriding this function:

1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.

Reimplemented from OdDbEntity.

◆ dxfInFields()

virtual OdResult OdDbEllipse::dxfInFields ( OdDbDxfFiler pFiler)
virtual

Reads the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer from which data are read.
Returns
Returns the filer status.

This function is called by dxfIn() to allow the object to read its data.

When overriding this function:

1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().

Reimplemented from OdDbEntity.

◆ dxfOutFields()

virtual void OdDbEllipse::dxfOutFields ( OdDbDxfFiler pFiler) const
virtual

Writes the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are to be written.
Remarks

This function is called by dxfOut() to allow the object to write its data.

When overriding this function:

1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.

Reimplemented from OdDbEntity.

◆ endAngle()

double OdDbEllipse::endAngle ( ) const

Returns the end angle of the elliptical figure (ellipse or arc) in radians (DXF 51).

Remarks
The end angle is measured counterclockwise from the major axis. When (StartAngle = 0)
and (EndAngle = Oda2PI) and (EndAngle - StartAngle) > 1e-6, the figure is closed,
that is an ellipse.
See also
<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>
<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

OdDbEllipse::setEndAngle(), OdDbEllipse::startAngle() methods

◆ get()

void OdDbEllipse::get ( OdGePoint3d center,
OdGeVector3d unitNormal,
OdGeVector3d majorAxis,
double &  radiusRatio,
double &  startAngle,
double &  endAngle 
) const

{NoAutoLink} Gets the properties for the ellipse entity. This method passes the properties through own arguments.

Parameters
center[out] Receives the WCS center.
unitNormal[out] Receives the WCS unit normal.
majorAxis[out] Receives the WCS major axis.
radiusRatio[out] Receives the radius ratio.
startAngle[out] Receives the start angle.
endAngle[out] Receives the end angle.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_specific.html, Specific Ellipse Properties>

<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

◆ getArea()

virtual OdResult OdDbEllipse::getArea ( double &  vArea) const
virtual

When an elliptical figure is unclosed, this method returns the area calculated for the closed figure formed by the elliptical arc and a line passed from the end point to the start point. When an elliptical figure is closed, this method returns the area of the ellipse.

Parameters
vArea[out] Reference to a variable in which this method must save the area as a Double value.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

Reimplemented from OdDbCurve.

◆ getDistAtParam()

virtual OdResult OdDbEllipse::getDistAtParam ( double  param,
double &  dist 
) const
virtual

Computes the distance along the elliptical figure (ellipse or arc) measured from the start point to the point on the elliptical curve specified the parameter.

Parameters
param[in] Parameter value specifying the point on the elliptical curve as a Double value in radians.
dist[out] Reference to a variable in which this method must save the distance value as a Double value in drawing units.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

Implements OdDbCurve.

◆ getEndParam()

virtual OdResult OdDbEllipse::getEndParam ( double &  endParam) const
virtual

Gets the end parameter value of the elliptical figure (ellipse or arc). The OdDbEllipse::setEndParam() method sets this value. Parameter is an angle measured counterclockwise from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius.

Parameters
endParam[out] Reference to a variable in which this method must save the end
parameter value as a Double value in radians.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

OdDbEllipse::setEndParam(), OdDbEllipse::getStartParam() methods

Implements OdDbCurve.

◆ getEndPoint()

virtual OdResult OdDbEllipse::getEndPoint ( OdGePoint3d endPoint) const
virtual

Computes the WCS coordinates of the end point on the elliptical figure (ellipse or arc) for which the parameter equals the end value. When the elliptical figure is closed, the end point coincides with the start point. When the elliptical figure is unclosed, the end point corresponds to the end angle.

Parameters
endPoint[out] Reference to a variable in which this method must save the end
point as three-dimensional point instance.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

Implements OdDbCurve.

◆ getFirstDeriv()

virtual OdResult OdDbEllipse::getFirstDeriv ( double  param,
OdGeVector3d firstDeriv 
) const
virtual

Computes the first derivative for the specified parameter of the elliptical figure (ellipse or arc) and returns the three-dimensional vector instance.

Parameters
param[in] Parameter value specifying the point on the elliptical curve as a Double value in radians.
firstDeriv[out] Reference to a variable in which this method must save the first
derivative as three-dimensional vector instance.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

Implements OdDbCurve.

◆ getOdGeCurve()

virtual OdResult OdDbEllipse::getOdGeCurve ( OdGeCurve3d *&  pGeCurve,
const OdGeTol tol = OdGeContext::gTol 
) const
virtual

Returns an OdGeCurve3d that is geometrically identical to this OdDbCurve.

Parameters
pGeCurve[out] Receives a pointer to an OdGeCurve3d object that is geometrically identical to this OdDbCurve. The caller of this function is responsible for deleting this OdGeCurve3d object.
tol[in] Optional tolerance.
Returns
Returns eOk if successful.

Reimplemented from OdDbCurve.

◆ getParamAtDist()

virtual OdResult OdDbEllipse::getParamAtDist ( double  dist,
double &  param 
) const
virtual

Computes the parameter at the distance along the elliptical figure (ellipse or arc). Parameter is an angle measured counterclockwise from the major axis in the range
0 to 2PI radians as if the elliptical figure was a circular figure with a major radius.

Parameters
dist[in] Distance value along the elliptical curve as a Double value in drawing units.
param[out] Reference to a variable in which this method must save the parameter value
as a Double value in radians.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

Implements OdDbCurve.

◆ getParamAtPoint()

virtual OdResult OdDbEllipse::getParamAtPoint ( const OdGePoint3d pointOnCurve,
double &  param 
) const
virtual

Computes the parameter at the point placed on the elliptical figure (ellipse or arc). Parameter is an angle measured counterclockwise from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius.

Parameters
pointOnCurve[in] Three-dimensional point instance which specifies the point on the elliptical curve.
param[out] Reference to a variable in which this method must save the parameter
value as a Double value in radians.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

Implements OdDbCurve.

◆ getPlane()

virtual OdResult OdDbEllipse::getPlane ( OdGePlane gePlane,
OdDb::Planarity gePlanarity 
) const
virtual

Gets a plane in which the ellipse entity places. This method is inherited from the
OdDbEntity class.

Parameters
gePlane[out] Reference to a variable in which this method must save the plane parameters as a plane instance.
gePlanarity[out] Reference to a variable in which this method must save the plane type (returns kPlanar - planar entity).
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>
<link db_ellipse.html, Working with Ellipses>

OdDbCircle::isPlanar(), OdDbEntity::getPlane() methods

Reimplemented from OdDbEntity.

◆ getPointAtParam()

virtual OdResult OdDbEllipse::getPointAtParam ( double  param,
OdGePoint3d pointOnCurve 
) const
virtual

Computes the WCS coordinates of the point on the elliptical figure (ellipse or arc)
at the specified parameter value. Parameter is an angle measured counterclockwise
from the major axis in the range 0 to 2PI radians as if the elliptical figure was
a circular figure with a major radius.

Parameters
param[in] Parameter value specifying the point on the elliptical curve as a Double value in radians.
pointOnCurve[out] Reference to a variable in which this method must save the three-dimensional point instance corresponding to the parameter.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

Implements OdDbCurve.

◆ getSecondDeriv()

virtual OdResult OdDbEllipse::getSecondDeriv ( double  param,
OdGeVector3d secondDeriv 
) const
virtual

Computes the second derivative for the specified parameter of the elliptical figure
(ellipse or arc) and returns the three-dimensional vector instance.

Parameters
param[in] Parameter value specifying the point on the elliptical curve as a Double value in radians.
secondDeriv[out] Reference to a variable in which this method must save the second
derivative as three-dimensional vector instance.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

Reimplemented from OdDbCurve.

◆ getStartParam()

virtual OdResult OdDbEllipse::getStartParam ( double &  startParam) const
virtual

Gets the start parameter value of the elliptical figure (ellipse or arc). The OdDbEllipse::setStartParam() method sets this value. Parameter is an angle measured counterclockwise from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius.

Parameters
startParam[out] Reference to a variable in which this method must save the start
parameter value as a Double value in radians.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

OdDbEllipse::setStartParam(), OdDbEllipse::getEndParam() methods

Implements OdDbCurve.

◆ getStartPoint()

virtual OdResult OdDbEllipse::getStartPoint ( OdGePoint3d startPoint) const
virtual

Computes the WCS coordinates of the start point on the elliptical figure (ellipse or arc) for which the parameter equals the start value. When the elliptical figure is closed, the end point coincides with the start point. When the elliptical figure is unclosed, the start point corresponds to the start angle.

Parameters
startPoint[out] Reference to a variable in which this method must save the start point as three-dimensional point instance.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

Implements OdDbCurve.

◆ isClosed()

virtual bool OdDbEllipse::isClosed ( ) const
virtual

Returns true if and only if this Curve object is closed.

Reimplemented from OdDbCurve.

◆ isPeriodic()

virtual bool OdDbEllipse::isPeriodic ( ) const
virtual

Returns true if and only if this Curve object is periodic.

Reimplemented from OdDbCurve.

◆ isPlanar()

virtual bool OdDbEllipse::isPlanar ( ) const
virtual

Determines whether the elliptical figure is planar as a Boolean value and returns True. This method is inherited from the OdDbEntity class.

See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>
<link db_ellipse.html, Working with Ellipses>

OdDbEllipse::getPlane(), OdDbEntity::isPlanar() methods

Reimplemented from OdDbEntity.

◆ majorAxis()

OdGeVector3d OdDbEllipse::majorAxis ( ) const

Returns the WCS major axis vector for the elliptical figure (ellipse or arc). The major axis defines the major radius and rotation of the elliptical figure in the plane.

See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_specific.html, Specific Ellipse Properties>

OdDbEllipse::minorAxis(), OdDbEllipse::radiusRatio() methods

◆ minorAxis()

OdGeVector3d OdDbEllipse::minorAxis ( ) const

Returns the WCS minor axis vector for the elliptical figure (ellipse or arc). The minor axis defines the minor radius. The minor axis is perpendicular to the major axis. The minor radius less than or equal the major radius.

See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_specific.html, Specific Ellipse Properties>

OdDbEllipse::majorAxis(), OdDbEllipse::radiusRatio() methods

◆ normal()

OdGeVector3d OdDbEllipse::normal ( ) const

Returns the WCS unit vector which is the normal to the plane of the ellipse entity (DXF 210). The normal defines the orientation of the ellipse plane in world space.

See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_specific.html, Specific Ellipse Properties>

◆ ODDB_DECLARE_MEMBERS()

OdDbEllipse::ODDB_DECLARE_MEMBERS ( OdDbEllipse  )

◆ paramAtAngle()

double OdDbEllipse::paramAtAngle ( double  angle) const

Returns the parameter value corresponding to the specified angle value.

Parameters
angle[in] Angle as a Double value in radians.
Remarks
Can be used to retrieve the DXF 41 & 42 values.
See also
<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

◆ radiusRatio()

double OdDbEllipse::radiusRatio ( ) const

Returns the ratio of the minor radius to the major radius for the elliptical figure (ellipse or arc). The radius ratio is in the range [1e-6 to 1.0].

See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_specific.html, Specific Ellipse Properties>

OdDbEllipse::minorAxis(), OdDbEllipse::minorAxis(), OdDbEllipse::setRadiusRatio() methods

◆ reverseCurve()

virtual OdResult OdDbEllipse::reverseCurve ( )
virtual

Reimplemented from OdDbCurve.

◆ set()

void OdDbEllipse::set ( const OdGePoint3d center,
const OdGeVector3d unitNormal,
const OdGeVector3d majorAxis,
double  radiusRatio,
double  startAngle = 0.0,
double  endAngle = Oda2PI 
)

{NoAutoLink} Sets the properties for the ellipse entity.

Parameters
center[in] WCS center.
unitNormal[in] WCS unit normal.
majorAxis[in] WCS major axis.
radiusRatio[in] Radius ratio.
startAngle[in] Start angle.
endAngle[in] End angle.
Remarks
All angles are expressed in radians. A closed ellipse entity must have (StartAngle = 0) and (EndAngle = Oda2PI) and (EndAngle - StartAngle) > 1e-6. The radius ratio must be in the range [1e-6 to 1.0]. The major axis must be perpendicular to the normal within 1e-6.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_specific.html, Specific Ellipse Properties>

<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

◆ setCenter()

void OdDbEllipse::setCenter ( const OdGePoint3d center)

Sets the center of the elliptical figure (ellipse or arc) (DXF 10) in WCS. The initial value is (0,0,0) by default.

Parameters
center[in] Three-dimensional point instance to set the center.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_specific.html, Specific Ellipse Properties>

OdDbEllipse::center() method

◆ setEndAngle()

void OdDbEllipse::setEndAngle ( double  endAngle)

Sets the end angle for the elliptical figure (ellipse or arc) in the range �2PI radians (DXF 51). A positive value specifies the angle measured from the major axis counterclockwise. A negative value specifies the angle measured from the major axis clockwise. The initial value is 2PI by default.

Parameters
endAngle[in] End angle as a Double value.
Remarks
If an angle value is negative, this method automatically converts it to the positive equivalent. If an angle value is more than 2PI, this method automatically convertes it to the range 0 to 2PI. When (StartAngle = 0) and (EndAngle = Oda2PI) and (EndAngle - StartAngle) > 1e-6, the figure is closed, that is an ellipse.
See also
<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>
<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

OdDbEllipse::endAngle(), OdDbEllipse::setStartAngle() methods

◆ setEndParam()

void OdDbEllipse::setEndParam ( double  endParam)

Sets the end parameter for the elliptical figure (ellipse or arc) (DXF 42). Parameter is an angle measured from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius. A positive value specifies the end parameter measured counterclockwise A negative value specifies the end parameter measured clockwise. The initial value is 2PI by default.

Parameters
endParam[in] End parameter as a Double value in radians.
Remarks
If an parameter value is negative, this method automatically converts it to the positive equivalent. If an angle value is more than 2PI, this method automatically convertes it to the range 0 to 2PI. When (StartParam = 0) and (EndParam = Oda2PI) and (EndParam - StartParam) > 1e-6, the figure is closed, that is an ellipse.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

OdDbEllipse::getEndParam(), OdDbEllipse::setStartParam() methods

◆ setFromOdGeCurve()

virtual OdResult OdDbEllipse::setFromOdGeCurve ( const OdGeCurve3d geCurve,
OdGeVector3d normal = NULL,
const OdGeTol tol = OdGeContext::gTol 
)
virtual

Takes an OdGeCurve3d and sets this OdDbCurve to be geometrically identical to the OdGeCurve3d.

Parameters
geCurve[in] reference to an OdGeCurve3d.
normal[in] Optional normal vector. If this parameter is supplied then it must be a valid vector that is perpendicular to the input geCurve, and this vector will become the normal vector of the output pDbCurve. If this parameter is not supplied, then this function will compute the normal vector itself.
tol[in] Optional tolerance.
Returns
Returns eOk if successful.

Reimplemented from OdDbCurve.

◆ setRadiusRatio()

void OdDbEllipse::setRadiusRatio ( double  radiusRatio)

Sets the ratio of the minor radius to the major radius for the elliptical figure (ellipse or arc) in the range [1e-6 to 1.0]. The initial value is 1.0 by default.

Parameters
radiusRatio[in] Radius ratio as a Double value.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_specific.html, Specific Ellipse Properties>

OdDbEllipse::minorAxis(), OdDbEllipse::minorAxis(), OdDbEllipse::radiusRatio() methods

◆ setStartAngle()

void OdDbEllipse::setStartAngle ( double  startAngle)

Sets the start angle for the elliptical figure (ellipse or arc) in the range �2PI
radians (DXF 50). A positive value specifies the angle measured from the major axis
counterclockwise. A negative value specifies the angle measured from the major axis
clockwise. The initial value is zero by default.

Parameters
startAngle[in] Start angle as a Double.
Remarks
If an angle value is negative, this method automatically converts it to the positive equivalent. If an angle value is more than 2PI, this method automatically convertes it to the range 0 to 2PI. When (StartAngle = 0) and (EndAngle = Oda2PI) and (EndAngle - StartAngle) > 1e-6, the figure is closed, that is an ellipse.
See also
<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>
<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

OdDbEllipse::startAngle(), OdDbEllipse::setEndAngle() methods

◆ setStartParam()

void OdDbEllipse::setStartParam ( double  startParam)

Sets the start parameter for the elliptical figure (ellipse or arc) (DXF 41). Parameter is an angle measured from the major axis in the range 0 to 2PI radians as if the elliptical figure was a circular figure with a major radius. A positive value specifies the start parameter measured counterclockwise A negative value specifies the start parameter measured clockwise. The initial value is zero by default.

Parameters
startParam[in] Start parameter as a Double value in radians.
Remarks
If an parameter value is negative, this method automatically converts it to the positive equivalent. If an angle value is more than 2PI, this method automatically convertes it to the range 0 to 2PI. When (StartParam = 0) and (EndParam = Oda2PI) and (EndParam - StartParam) > 1e-6, the figure is closed, that is an ellipse.
See also
<link db_ellipse_sample.html, Example of Working with the Ellipse Object>

<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>

See also
<link db_ellipse_compute.html, Computed Ellipse and Elliptical Arc Properties>

<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

OdDbEllipse::getStartParam(), OdDbEllipse::setEndParam() methods

◆ startAngle()

double OdDbEllipse::startAngle ( ) const

Returns the start angle of the elliptical figure (ellipse or arc) in radians (DXF 50).

Remarks
The start angle is measured counterclockwise from the major axis. When (StartAngle = 0) and (EndAngle = Oda2PI) and (EndAngle - StartAngle) > 1e-6, the figure is closed, that is an ellipse.
See also
<link db_elliptical_arc_sample.html, Example of Working with the Elliptical Arc>
<link db_elliptical_arc_specific.html, Specific Elliptical Arc Properties>

OdDbEllipse::setStartAngle(), OdDbEllipse::endAngle() methods

◆ subGetClassID()

virtual OdResult OdDbEllipse::subGetClassID ( void pClsid) const
virtual

Reimplemented from OdDbEntity.

◆ subGetGeomExtents()

virtual OdResult OdDbEllipse::subGetGeomExtents ( OdGeExtents3d extents) const
virtual

Reimplemented from OdDbEntity.

◆ subTransformBy()

virtual OdResult OdDbEllipse::subTransformBy ( const OdGeMatrix3d xfm)
virtual

Reimplemented from OdDbEntity.

◆ subWorldDraw()

virtual bool OdDbEllipse::subWorldDraw ( OdGiWorldDraw pWd) const
virtual

Reimplemented from OdDbEntity.

◆ TD_USING() [1/2]

OdDbEllipse::TD_USING ( OdDbCurve::getFirstDeriv  )

◆ TD_USING() [2/2]

OdDbEllipse::TD_USING ( OdDbCurve::getSecondDeriv  )

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