CFx SDK Documentation 2024 SP0
|
#include <AECWallCutLine.h>
Public Types | |
enum | Side { eTop = 0 , eBottom = 1 } |
enum | CutlineAnchorFlags { eVertDefault = 0 , eVertBaseLine = 0x1 , eVertPrevPoint = 0x2 , eVertNextPoint = 0x3 , eVertBaseHeight = 0x4 , eHorzDefault = 0 , eHorzWallStart = 0x10 , eHorzWallEnd = 0x20 , eHorzWallMidPoint = 0x30 , eHorzPrevPoint = 0x40 , eHorzNextPoint = 0x50 , eHorzMidOfNeighbours = 0x60 } |
Public Member Functions | |
Side | GetSide () const |
void | SetSide (Side eSide) |
OdUInt32 | GetAnchorCount () const |
AECWallCutLineAnchorSubPtr | GetAnchor (OdUInt32 iIndex) const |
AECImpArraySubPtr | GetAnchors () const |
double | GetHorizontalOffset (OdUInt32 iIndex, double dWallLength=0) const |
double | GetVerticalOffset (OdUInt32 iIndex, double dBaseHeight=0) const |
void | Reverse () |
void | GetRawCutLine (FacetModeler::Contour2D &cCutLine, double dWallLength=0, double dWallHeight=0) const |
void | SetRawCutLine (const FacetModeler::Contour2D &cCutLine, double dWallLength=0, double dWallHeight=0) |
Public Member Functions inherited from AECImpObj | |
const OdString & | GetDescription () const |
void | SetDescription (const OdString &strDescription) |
virtual void | onObjectLoaded () |
virtual void | SubClose () |
DOM. | |
OdRxObject * | GetOwner () const |
OdRxObject * | GetOwner (OdRxClass *pClass) const |
void | addRefSubPtr () |
void | releaseSubPtr () |
void | assertReadEnabled () const |
void | assertWriteEnabled (bool autoUndo=true, bool recordModified=true) |
bool | isReadEnabled () const |
bool | isWriteEnabled () const |
OdDbDatabase * | database () const |
void | copyFrom (const OdRxObject *pOther) |
virtual OdUInt16 | minSupportedVersion () const |
void | SetOwner (OdDbObject *pOwner) |
DOM. | |
void | SetOwner (AECImpObj *pOwner) |
DOM. | |
class AECSIBase * | GetImpl () const |
DOM. | |
virtual OdResult | dwgInFieldsEx20 (AECDbDwgFiler *pFiler) |
DOM. | |
virtual OdResult | dwgInFieldsEx1 (AECDbDwgFiler *pFiler) |
DOM. | |
Public Member Functions inherited from OdRxObjectImpl< OdRxObject, AECImpObj > | |
OdRxObjectImpl () | |
void | addRef () |
void | release () |
long | numRefs () const |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Attributes | |
Side | m_eSide |
AECImpArray | m_aWallCutLineAnchors |
Protected Attributes inherited from AECImpObj | |
class AECSIBase * | m_pImp |
DOM. | |
OdUInt16 | m_iMinSupportedVersion |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObjectImpl< OdRxObject, AECImpObj > | |
static OdSmartPtr< AECImpObj > | createObject () |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions inherited from OdRxObjectImpl< OdRxObject, AECImpObj > | |
ODRX_HEAP_OPERATORS () | |
Flags for Set/Get RawCutline methods. Combination of eHorz* and eVert* flags is returned as metadata by GetRawCutline method and is handled by SetRawCutline method. Use cCutLine.metadataAt, cCutLine.setMetatadaAt, cCutLine.setAllMetadata to access the flags.
Enumerator | |
---|---|
eVertDefault | |
eVertBaseLine | |
eVertPrevPoint | |
eVertNextPoint | |
eVertBaseHeight | |
eHorzDefault | |
eHorzWallStart | |
eHorzWallEnd | |
eHorzWallMidPoint | |
eHorzPrevPoint | |
eHorzNextPoint | |
eHorzMidOfNeighbours |
Definition at line 122 of file AECWallCutLine.h.
enum AECWallCutLine::Side |
AECWallCutLineAnchorSubPtr AECWallCutLine::GetAnchor | ( | OdUInt32 | iIndex | ) | const |
Returns anchor by index.
Throws:
Cause eInvalidIndex Specified index is out of bounds
OdUInt32 AECWallCutLine::GetAnchorCount | ( | ) | const |
Returns the number of anchors in cutline.
AECImpArraySubPtr AECWallCutLine::GetAnchors | ( | ) | const |
Returns the array of anchors.
double AECWallCutLine::GetHorizontalOffset | ( | OdUInt32 | iIndex, |
double | dWallLength = 0 |
||
) | const |
Calculates the offset from Wall start to the position of anchor with specified index along X axis in Wall OCS.
Throws:
Cause eInvalidIndex Specified index is out of bounds
void AECWallCutLine::GetRawCutLine | ( | FacetModeler::Contour2D & | cCutLine, |
double | dWallLength = 0 , |
||
double | dWallHeight = 0 |
||
) | const |
Returns cutline contour.
Note that self-intersecting cutline is considered invalid. You may check this condition by calling of FacetModeler::Contour2D::isSelfIntersecting.
Side AECWallCutLine::GetSide | ( | ) | const |
Returns the side of cutline.
double AECWallCutLine::GetVerticalOffset | ( | OdUInt32 | iIndex, |
double | dBaseHeight = 0 |
||
) | const |
Calculates the offset from Wall bottom to the position of anchor with specified index along Z axis in Wall OCS.
Throws:
Cause eInvalidIndex Specified index is out of bounds
void AECWallCutLine::Reverse | ( | ) |
Reverses the cutline. All anchors are reversed, "after" and "before", "WallStart" and "WallEnd" and other horizontal relations are swapped.
void AECWallCutLine::SetRawCutLine | ( | const FacetModeler::Contour2D & | cCutLine, |
double | dWallLength = 0 , |
||
double | dWallHeight = 0 |
||
) |
Sets cutline contour. This method uses cCutline.metadataAt() flags to set anchor horizontal and vertical relations. Appropriate defaults are used for vertices with zero flags. Wall length and height are obtained from the owner AECDbWall by default.
|
protected |
Definition at line 168 of file AECWallCutLine.h.
|
protected |
Definition at line 165 of file AECWallCutLine.h.