CFx SDK Documentation  2023 SP0
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
AECGeGridUV Class Reference

#include <AECGeGridUV.h>

Inheritance diagram for AECGeGridUV:
AECImpObj OdRxObjectImpl< OdRxObject, AECImpObj > OdRxObject AECGeGridUVRadial AECGeGridUVRect AECGeGridUVW AECGeGridUVWRect

Public Member Functions

double GetXDimension () const
 
void SetXDimension (double dDimension)
 
double GetYDimension () const
 
void SetYDimension (double dDimension)
 
double GetXBaySize () const
 
void SetXBaySize (double dSize)
 
double GetYBaySize () const
 
void SetYBaySize (double dSize)
 
double GetXStartOffset () const
 
void SetXStartOffset (double dOffset)
 
double GetXEndOffset () const
 
void SetXEndOffset (double dOffset)
 
double GetYStartOffset () const
 
void SetYStartOffset (double dOffset)
 
double GetYEndOffset () const
 
void SetYEndOffset (double dOffset)
 
AECDefs::SpacingType GetXSpacingType () const
 
void SetXSpacingType (AECDefs::SpacingType eType)
 
AECDefs::SpacingType GetYSpacingType () const
 
void SetYSpacingType (AECDefs::SpacingType eType)
 
OdUInt32 GetNextIndex () const
 
OdUInt32 GetNextIndexInc ()
 
OdUInt32 GetNodeCount () const
 
AECLayoutGrid2dNodeSubPtr GetNodeByIndex (OdUInt32 iIndex) const
 
AECImpArraySubPtr GetNodes () const
 DOM. More...
 
OdUInt32 GetCellCount () const
 
AECLayoutGrid2dCellSubPtr GetCellByIndex (OdUInt32 iIndex) const
 
AECImpArraySubPtr GetCells () const
 DOM. More...
 
void GetRealXDimension (OdGeInterval &intDimension) const
 
void GetRealXPositions (std::vector< double > &aPos) const
 
void GetRealYDimension (OdGeInterval &intDimension) const
 
void GetRealYPositions (std::vector< double > &aPos) const
 
OdUInt32 GetXCellCount () const
 
void SetXCellCount (OdUInt32 iCount)
 
OdUInt32 GetYCellCount () const
 
void SetYCellCount (OdUInt32 iCount)
 
virtual void AddXGridLine (double dLocation)
 
virtual void ModeXGridLine (double dLocation, double dNewLocation)
 
virtual void RemoveXGridLine (double dLocation)
 
virtual void AddYGridLine (double dLocation)
 
virtual void ModeYGridLine (double dLocation, double dNewLocation)
 
virtual void RemoveYGridLine (double dLocation)
 
virtual void Regenerate ()
 
- Public Member Functions inherited from AECImpObj
const OdStringGetDescription () const
 
void SetDescription (const OdString &strDescription)
 
virtual void onObjectLoaded ()
 
virtual void SubClose ()
 DOM. More...
 
OdRxObjectGetOwner () const
 
OdRxObjectGetOwner (OdRxClass *pClass) const
 
void addRefSubPtr ()
 
void releaseSubPtr ()
 
void assertReadEnabled () const
 
void assertWriteEnabled (bool autoUndo=true, bool recordModified=true)
 
bool isReadEnabled () const
 
bool isWriteEnabled () const
 
OdDbDatabasedatabase () const
 
void copyFrom (const OdRxObject *pOther)
 
virtual OdUInt16 minSupportedVersion () const
 
void SetOwner (OdDbObject *pOwner)
 DOM. More...
 
void SetOwner (AECImpObj *pOwner)
 DOM. More...
 
class AECSIBase * GetImpl () const
 DOM. More...
 
virtual OdResult dwgInFieldsEx20 (AECDbDwgFiler *pFiler)
 DOM. More...
 
virtual OdResult dwgInFieldsEx1 (AECDbDwgFiler *pFiler)
 DOM. More...
 
- 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 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
 

Protected Member Functions

virtual void RegenerateXY (OdUInt32 iCntX, OdUInt32 iCntY)
 DOM. More...
 
void FindX (double dX, std::vector< AECLayoutGrid2dNodeSubPtr > &aX) const
 DOM. More...
 
void FindY (double dY, std::vector< AECLayoutGrid2dNodeSubPtr > &aY) const
 DOM. More...
 
- Protected Member Functions inherited from OdRxObjectImpl< OdRxObject, AECImpObj >
 ODRX_HEAP_OPERATORS ()
 

Static Protected Member Functions

static void GetCoords (AECDefs::SpacingType eType, const std::vector< double > &aOld, OdUInt32 iEvenCnt, double dS, double dE, double dBaySize, std::vector< double > &aRes)
 DOM. More...
 

Protected Attributes

double m_dXDimension
 
double m_dYDimension
 
double m_dXBaySize
 
double m_dYBaySize
 
double m_dXStartOffset
 
double m_dYStartOffset
 
double m_dXEndOffset
 
double m_dYEndOffset
 
AECDefs::SpacingType m_eXSpacing
 
AECDefs::SpacingType m_eYSpacing
 
OdUInt32 m_iNextIndex
 
AECImpArray m_aNodes
 
AECImpArray m_aCells
 
- Protected Attributes inherited from AECImpObj
class AECSIBase * m_pImp
 DOM. More...
 
OdUInt16 m_iMinSupportedVersion
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObjectImpl< OdRxObject, AECImpObj >
static OdSmartPtr< AECImpObjcreateObject ()
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

Abstract base class for UV Grids.

<group TA_API_Subobjects_Ge>

Definition at line 37 of file AECGeGridUV.h.

Member Function Documentation

◆ AddXGridLine()

virtual void AECGeGridUV::AddXGridLine ( double  dLocation)
virtual

Adds X grid line.

Reimplemented in AECGeGridUVW.

◆ AddYGridLine()

virtual void AECGeGridUV::AddYGridLine ( double  dLocation)
virtual

Adds Y grid line.

Reimplemented in AECGeGridUVW.

◆ FindX()

void AECGeGridUV::FindX ( double  dX,
std::vector< AECLayoutGrid2dNodeSubPtr > &  aX 
) const
protected

DOM.

◆ FindY()

void AECGeGridUV::FindY ( double  dY,
std::vector< AECLayoutGrid2dNodeSubPtr > &  aY 
) const
protected

DOM.

◆ GetCellByIndex()

AECLayoutGrid2dCellSubPtr AECGeGridUV::GetCellByIndex ( OdUInt32  iIndex) const

Returns cell by index.

Remarks
Throws eInvalidIndex exception for invalid iIndex parameter.

◆ GetCellCount()

OdUInt32 AECGeGridUV::GetCellCount ( ) const

Returns the number of cells.

◆ GetCells()

AECImpArraySubPtr AECGeGridUV::GetCells ( ) const

DOM.

◆ GetCoords()

static void AECGeGridUV::GetCoords ( AECDefs::SpacingType  eType,
const std::vector< double > &  aOld,
OdUInt32  iEvenCnt,
double  dS,
double  dE,
double  dBaySize,
std::vector< double > &  aRes 
)
staticprotected

DOM.

◆ GetNextIndex()

OdUInt32 AECGeGridUV::GetNextIndex ( ) const

Returns the index to assign to the newly created primitive within this grid definition.

◆ GetNextIndexInc()

OdUInt32 AECGeGridUV::GetNextIndexInc ( )

Same as GetNextCellIndex method. This variant increases next index by one.

◆ GetNodeByIndex()

AECLayoutGrid2dNodeSubPtr AECGeGridUV::GetNodeByIndex ( OdUInt32  iIndex) const

Returns node by index.

Remarks
Throws eInvalidIndex exception for invalid iIndex parameter.

◆ GetNodeCount()

OdUInt32 AECGeGridUV::GetNodeCount ( ) const

Returns the number of nodes.

◆ GetNodes()

AECImpArraySubPtr AECGeGridUV::GetNodes ( ) const

DOM.

◆ GetRealXDimension()

void AECGeGridUV::GetRealXDimension ( OdGeInterval intDimension) const

Returns calculated X dimension.

◆ GetRealXPositions()

void AECGeGridUV::GetRealXPositions ( std::vector< double > &  aPos) const

Returns grid lines positions along X axis.

◆ GetRealYDimension()

void AECGeGridUV::GetRealYDimension ( OdGeInterval intDimension) const

Returns calculated Y dimension.

◆ GetRealYPositions()

void AECGeGridUV::GetRealYPositions ( std::vector< double > &  aPos) const

Returns grid lines positions along Y axis.

◆ GetXBaySize()

double AECGeGridUV::GetXBaySize ( ) const

Returns segment dimension along X axis.

Remarks
Used only for AEC::estBay spacing along X axis.

◆ GetXCellCount()

OdUInt32 AECGeGridUV::GetXCellCount ( ) const

Returns the number of cells along X axis.

◆ GetXDimension()

double AECGeGridUV::GetXDimension ( ) const

Returns grid X dimension of the grid.

Remarks
X dimension of the grid is width in case of rectangular grid and radius in case of radial grid.

◆ GetXEndOffset()

double AECGeGridUV::GetXEndOffset ( ) const

Returns end offset along X axis.

◆ GetXSpacingType()

AECDefs::SpacingType AECGeGridUV::GetXSpacingType ( ) const

Returns type of spacing for X axis.

◆ GetXStartOffset()

double AECGeGridUV::GetXStartOffset ( ) const

Returns start offset along X axis.

◆ GetYBaySize()

double AECGeGridUV::GetYBaySize ( ) const

Returns segment dimension along Y axis.

Remarks
Used only for AEC::estBay spacing along Y axis.

◆ GetYCellCount()

OdUInt32 AECGeGridUV::GetYCellCount ( ) const

Returns the number of cells along Y axis.

◆ GetYDimension()

double AECGeGridUV::GetYDimension ( ) const

Returns grid Y dimension of the grid.

Remarks
Y dimension of the grid is depth in case of rectangular grid and sweep angle in case of radial grid.

◆ GetYEndOffset()

double AECGeGridUV::GetYEndOffset ( ) const

Returns end offset along Y axis.

◆ GetYSpacingType()

AECDefs::SpacingType AECGeGridUV::GetYSpacingType ( ) const

Returns type of spacing for Y axis.

◆ GetYStartOffset()

double AECGeGridUV::GetYStartOffset ( ) const

Returns start offset along Y axis.

◆ ModeXGridLine()

virtual void AECGeGridUV::ModeXGridLine ( double  dLocation,
double  dNewLocation 
)
virtual

Moves existing X grid line.

Reimplemented in AECGeGridUVW.

◆ ModeYGridLine()

virtual void AECGeGridUV::ModeYGridLine ( double  dLocation,
double  dNewLocation 
)
virtual

Moves existing Y grid line.

Reimplemented in AECGeGridUVW.

◆ Regenerate()

virtual void AECGeGridUV::Regenerate ( )
virtual

Regenerates node and cell information.

Reimplemented in AECGeGridUVW.

◆ RegenerateXY()

virtual void AECGeGridUV::RegenerateXY ( OdUInt32  iCntX,
OdUInt32  iCntY 
)
protectedvirtual

DOM.

Reimplemented in AECGeGridUVW.

◆ RemoveXGridLine()

virtual void AECGeGridUV::RemoveXGridLine ( double  dLocation)
virtual

Removes existing X grid line.

Reimplemented in AECGeGridUVW.

◆ RemoveYGridLine()

virtual void AECGeGridUV::RemoveYGridLine ( double  dLocation)
virtual

Removes existing Y grid line.

Reimplemented in AECGeGridUVW.

◆ SetXBaySize()

void AECGeGridUV::SetXBaySize ( double  dSize)

Sets segment dimension along X axis.

Remarks
Used only for AEC::estBay spacing along X axis.

◆ SetXCellCount()

void AECGeGridUV::SetXCellCount ( OdUInt32  iCount)

Sets the number of cells along X axis.

Remarks
Works only for AECDefs::estEven spacing type and causes immediate regeneration.

◆ SetXDimension()

void AECGeGridUV::SetXDimension ( double  dDimension)

Sets grid X dimension of the grid.

Remarks
X dimension of the grid is width in case of rectangular grid and radius in case of radial grid.

◆ SetXEndOffset()

void AECGeGridUV::SetXEndOffset ( double  dOffset)

Sets end offset along X axis.

◆ SetXSpacingType()

void AECGeGridUV::SetXSpacingType ( AECDefs::SpacingType  eType)

Sets type of spacing for X axis.

◆ SetXStartOffset()

void AECGeGridUV::SetXStartOffset ( double  dOffset)

Sets start offset along X axis.

◆ SetYBaySize()

void AECGeGridUV::SetYBaySize ( double  dSize)

Sets segment dimension along Y axis.

Remarks
Used only for AEC::estBay spacing along Y axis.

◆ SetYCellCount()

void AECGeGridUV::SetYCellCount ( OdUInt32  iCount)

Sets the number of cells along Y axis.

Remarks
Works only for AECDefs::estEven spacing type and causes immediate regeneration.

◆ SetYDimension()

void AECGeGridUV::SetYDimension ( double  dDimension)

Sets grid Y dimension of the grid.

Remarks
Y dimension of the grid is depth in case of rectangular grid and sweep angle in case of radial grid.

◆ SetYEndOffset()

void AECGeGridUV::SetYEndOffset ( double  dOffset)

Sets end offset along Y axis.

◆ SetYSpacingType()

void AECGeGridUV::SetYSpacingType ( AECDefs::SpacingType  eType)

Sets type of spacing for Y axis.

◆ SetYStartOffset()

void AECGeGridUV::SetYStartOffset ( double  dOffset)

Sets start offset along Y axis.

Member Data Documentation

◆ m_aCells

AECImpArray AECGeGridUV::m_aCells
protected

Definition at line 360 of file AECGeGridUV.h.

◆ m_aNodes

AECImpArray AECGeGridUV::m_aNodes
protected

Definition at line 357 of file AECGeGridUV.h.

◆ m_dXBaySize

double AECGeGridUV::m_dXBaySize
protected

Definition at line 327 of file AECGeGridUV.h.

◆ m_dXDimension

double AECGeGridUV::m_dXDimension
protected

Definition at line 318 of file AECGeGridUV.h.

◆ m_dXEndOffset

double AECGeGridUV::m_dXEndOffset
protected

Definition at line 341 of file AECGeGridUV.h.

◆ m_dXStartOffset

double AECGeGridUV::m_dXStartOffset
protected

Definition at line 334 of file AECGeGridUV.h.

◆ m_dYBaySize

double AECGeGridUV::m_dYBaySize
protected

Definition at line 331 of file AECGeGridUV.h.

◆ m_dYDimension

double AECGeGridUV::m_dYDimension
protected

Definition at line 322 of file AECGeGridUV.h.

◆ m_dYEndOffset

double AECGeGridUV::m_dYEndOffset
protected

Definition at line 345 of file AECGeGridUV.h.

◆ m_dYStartOffset

double AECGeGridUV::m_dYStartOffset
protected

Definition at line 337 of file AECGeGridUV.h.

◆ m_eXSpacing

AECDefs::SpacingType AECGeGridUV::m_eXSpacing
protected

Definition at line 348 of file AECGeGridUV.h.

◆ m_eYSpacing

AECDefs::SpacingType AECGeGridUV::m_eYSpacing
protected

Definition at line 351 of file AECGeGridUV.h.

◆ m_iNextIndex

OdUInt32 AECGeGridUV::m_iNextIndex
protected

Definition at line 354 of file AECGeGridUV.h.


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