|
CFx SDK Documentation 2026 SP0
|
#include <FxVariant.h>
Public Types | |
| enum | _Type { eNone , eVoid , eDouble , eString , eInt32 , eColor , eCollection , eCollectionElement , eId , ePoint2D , ePoint3D , eTransparency , eAngle , eLineType , eScale } |
| typedef enum CFxVariant::_Type | Type |
Static Public Attributes | |
| static const char * | varies |
| static CFxVariant | kNull |
Static Protected Member Functions | |
| static void | GetIdDescription (OdDbObjectId id, CFxString &sPath, CFxString &sObjectName) |
| static bool | BuildOwnerPath (OdDbDictionaryPtr pRootDict, OdDbObjectId idTarget, const CFxString &sRootName, CFxString &sPath) |
| static OdDbObjectId | ResolvePath (OdDbDictionaryPtr pRootDict, const CFxString &sPath, const CFxString &sObjectName) |
Protected Attributes | |
| Type | m_Type |
| bool | m_bUseUnitsConversion |
Protected Attributes inherited from FX_VARIANT | |
| void * | m_pVoid |
| int | m_Size |
| double | m_Double |
| bool | m_UseUnitsConversion |
| CFxString | m_String |
| OdInt32 | m_Int32 |
| OdCmColor | m_Color |
| CFxVariantCollectionElement | m_CollectionElement |
| CFxVariantCollection | m_Collection |
| OdDbObjectId | m_Id |
| OdGePoint2d | m_Point2D |
| OdGePoint3d | m_Point3D |
| OdCmTransparency | m_Transparency |
Friends | |
| DDKERNEL_API bool | operator!= (const CFxVariant &v1, const CFxVariant &v2) |
| DDKERNEL_API bool | operator== (const CFxVariant &v1, const CFxVariant &v2) |
Additional Inherited Members | |
Protected Member Functions inherited from FX_VARIANT | |
| FX_VARIANT () | |
Description: Represents the variant. Library: DDKernel
Definition at line 233 of file FxVariant.h.
| typedef enum CFxVariant::_Type CFxVariant::Type |
Description: Represents the type of the stored in variant.
| enum CFxVariant::_Type |
Description: Represents the type of the stored in variant.
| Enumerator | |
|---|---|
| eNone | |
| eVoid | |
| eDouble | |
| eString | |
| eInt32 | |
| eColor | |
| eCollection | |
| eCollectionElement | |
| eId | |
| ePoint2D | |
| ePoint3D | |
| eTransparency | |
| eAngle | |
| eLineType | |
| eScale | |
Definition at line 248 of file FxVariant.h.
| CFxVariant::CFxVariant | ( | ) |
Description: Initializes a new instance of the CFxVariant class with default values.
| CFxVariant::CFxVariant | ( | const CFxVariant & | variant | ) |
Description: Initializes a new instance of the CFxVariant class using an existing CFxVariant object. Arguments:
| variant | The CFxVariant object to copy. |
| CFxVariant::CFxVariant | ( | const CFxVariant * | pVariant | ) |
Description: Initializes a new instance of the CFxVariant class using a pointer to an existing CFxVariant object. Arguments:
| pVariant | The pointer to the CFxVariant object to copy. |
| CFxVariant::CFxVariant | ( | const void * | value, |
| int | size ) |
Description: Initializes a new instance of the CFxVariant class using a pointer to a value and its size. Arguments:
| value | The pointer to the value to be used. |
| size | The size of the value. |
| CFxVariant::CFxVariant | ( | double | value, |
| bool | useUnitsConversion = true ) |
Description: Initializes a new instance of the CFxVariant class using a double value. Arguments:
| value | The double value to initialize the variant with. |
| useUnitsConversion | Indicates whether to use units conversion. |
| CFxVariant::CFxVariant | ( | const CFxString & | value | ) |
Description: Initializes a new instance of the CFxVariant class using a CFxString value. Arguments:
| value | The CFxString value to initialize the variant with. |
| CFxVariant::CFxVariant | ( | OdInt32 | value | ) |
Description: Initializes a new instance of the CFxVariant class using an OdInt32 value. Arguments:
| value | The OdInt32 value to initialize the variant with. |
| CFxVariant::CFxVariant | ( | const OdCmColor & | value | ) |
Description: Initializes a new instance of the CFxVariant class using an OdCmColor value. Arguments:
| value | The OdCmColor value to initialize the variant with. |
| CFxVariant::CFxVariant | ( | const OdCmTransparency & | value | ) |
Description: Initializes a new instance of the CFxVariant class using an OdCmTransparency value. Arguments:
| value | The OdCmTransparency value to initialize the variant with. |
| CFxVariant::CFxVariant | ( | const CFxVariantCollection & | value | ) |
Description: Initializes a new instance of the CFxVariant class using a CFxVariantCollection value. Arguments:
| value | The CFxVariantCollection value to initialize the variant with. |
| CFxVariant::CFxVariant | ( | const CFxVariantCollectionElement & | value | ) |
Description: Initializes a new instance of the CFxVariant class using a CFxVariantCollectionElement value. Arguments:
| value | The CFxVariantCollectionElement value to initialize the variant with. |
| CFxVariant::CFxVariant | ( | const OdDbObjectId & | value | ) |
Description: Initializes a new instance of the CFxVariant class using an OdDbObjectId value. Arguments:
| value | The OdDbObjectId value to initialize the variant with. |
| CFxVariant::CFxVariant | ( | const OdGePoint2d & | value | ) |
Description: Initializes a new instance of the CFxVariant class using an OdGePoint2d value. Arguments:
| value | The OdGePoint2d value to initialize the variant with. |
| CFxVariant::CFxVariant | ( | const OdGePoint3d & | value | ) |
Description: Initializes a new instance of the CFxVariant class using an OdGePoint3d value. Arguments:
| value | The OdGePoint3d value to initialize the variant with. |
|
virtual |
Description: Destructor for CFxVariant class that handles cleanup based on the type of variant.
|
staticprotected |
Description: Builds and checks the path for a given target ID in a nested dictionary structure Arguments:
| pRootDict | The root dictionary to start the search from. |
| idTarget | The target object ID to find the path for |
| sRootName | Root name string. |
| sPath | The string to store the resulting path if the target is found Return Value: Returns true if the target ID is found in the root dictionary, otherwise false. |
| CFxVariantCollection & CFxVariant::GetCollection | ( | ) |
Description: Returns a reference to the CFxVariantCollection stored in the variant
| const CFxVariantCollection & CFxVariant::GetCollection | ( | ) | const |
Description: Returns a const reference to the CFxVariantCollection stored in the variant
| const CFxVariantCollectionElement & CFxVariant::GetCollectionElement | ( | ) | const |
Description: Returns a const reference to the CFxVariantCollectionElement stored in the variant
| const OdCmColor & CFxVariant::GetColor | ( | ) | const |
Description: Retrieves the color value stored in the variant.
| double CFxVariant::GetDouble | ( | ) | const |
Description: Retrieves the double value stored in the variant.
| const OdDbObjectId & CFxVariant::GetId | ( | ) | const |
Description: Retrieves the database object ID value stored in the variant.
|
staticprotected |
Description: Retrieves the description of an OdDbObjectId Arguments:
| id | The OdDbObjectId to get the description for. |
| sPath | Reference to a CFxString to store the description of the object. |
| sObjectName | Reference to a CFxString to store the name of the object. |
| OdInt32 CFxVariant::GetInt32 | ( | ) | const |
Description: Retrieves the integer value stored in the variant.
| const OdGePoint2d & CFxVariant::GetPoint2d | ( | ) | const |
Description: Retrieves the 2D point value stored in the variant.
| const OdGePoint3d & CFxVariant::GetPoint3d | ( | ) | const |
Description: Retrieves the 3D point value stored in the variant.
| CFxString CFxVariant::GetString | ( | ) | const |
Description: Retrieves the string representation of the variant.
| const OdCmTransparency & CFxVariant::GetTransparency | ( | ) | const |
Description: Retrieves the transparency value stored in the variant.
| Type CFxVariant::GetType | ( | ) | const |
Description: Gets the type of the variant. Return Value: The type of the variant as a CFxVariant::Type enum.
| void * CFxVariant::GetVoid | ( | int * | size = 0 | ) | const |
Description: Retrieves a void pointer from the CFxVariant object Arguments:
| size | Pointer to an integer where the size of the void data will be stored. Return Value: A void pointer to the data if the type is eVoid, otherwise returns 0. |
| bool CFxVariant::IsNull | ( | ) | const |
Description: Checks if the variant is null. Return Value: True if the variant is null, false otherwise.
| void CFxVariant::Load | ( | QByteArray & | data, |
| CFxDocument * | pContext ) |
Description: Loads the variant data from a QByteArray. Arguments:
| data | The QByteArray containing the data to load. |
| pContext | The context document used during loading. |
| const CFxVariant & CFxVariant::operator+= | ( | const CFxVariant & | v | ) |
Description: Adds the given CFxVariant to the current CFxVariant. Arguments:
| v | The CFxVariant to be added. Return Value: A reference to the current CFxVariant after addition. |
|
staticprotected |
Description: Resolves the path to a specific object within a dictionary. Arguments:
| pRootDict | The root dictionary to start the search from. |
| sPath | The path to resolve within the dictionary. |
| sObjectName | The name of the object to find. Return Value: The object ID of the resolved path, or OdDbObjectId::kNull if not found. |
| QByteArray CFxVariant::Save | ( | ) | const |
Description: Saves the variant data to a QByteArray. Return Value: A QByteArray containing the saved variant data.
| void CFxVariant::SetValue | ( | const CFxVariant & | value | ) |
Description: Sets the value of the CFxVariant Arguments:
| value | The CFxVariant object to set as the value. |
| bool CFxVariant::UseUnitsConversion | ( | ) | const |
Description: Determines if unit conversion is used. Return Value: True if unit conversion is used, false otherwise.
|
friend |
Description: Compares two CFxVariant objects for inequality. Arguments:
| v1 | The first CFxVariant object to compare. |
| v2 | The second CFxVariant object to compare. Return Value: Returns true if the two CFxVariant objects are not equal, otherwise false. |
|
friend |
Description: Compares two CFxVariant objects for equality. Arguments:
| v1 | The first CFxVariant object to compare. |
| v2 | The second CFxVariant object to compare. Return Value: Returns true if the two CFxVariant objects are equal, otherwise false. |
|
static |
Description: Represents a null variant.
Definition at line 243 of file FxVariant.h.
|
protected |
Description: Indicates whether units conversion is used or not
Definition at line 552 of file FxVariant.h.
|
protected |
Description: Represents the type of the variant.
Definition at line 547 of file FxVariant.h.
|
static |
Description: Represents a constant character pointer to a string "varies".
Definition at line 239 of file FxVariant.h.