#include <c4d_gedata.h>
Represents any data inside a BaseContainer.
◆ GeData() [1/19]
◆ GeData() [2/19]
Copy constructor.
- Parameters
-
◆ GeData() [3/19]
Creates an Int32 data.
- Parameters
-
[in] | n | Initial Int32 value. |
◆ GeData() [4/19]
◆ GeData() [5/19]
Creates a double data.
- Parameters
-
[in] | n | Initial double value. |
◆ GeData() [6/19]
Creates a void pointer data.
- Parameters
-
[in] | n | Initial void pointer value. |
[in] | v | Dummy parameter. Should always be VOIDVALUE. |
◆ GeData() [7/19]
Creates an Int64 data.
- Parameters
-
[in] | n | Initial Int64 value. |
[in] | v | Dummy parameter. Should always be LLONGVALUE. |
◆ GeData() [8/19]
Creates a Vector data.
- Parameters
-
[in] | n | Initial Vector value. |
◆ GeData() [9/19]
Creates a Matrix data.
- Parameters
-
[in] | n | Initial Matrix value. |
◆ GeData() [10/19]
Creates a Char*
data.
- Parameters
-
[in] | n | Initial Char* value. |
◆ GeData() [11/19]
Creates a String data.
- Parameters
-
◆ GeData() [12/19]
◆ GeData() [13/19]
◆ GeData() [14/19]
◆ GeData() [15/19]
◆ GeData() [16/19]
◆ GeData() [17/19]
◆ GeData() [18/19]
Creates a data with a custom data type.
- Parameters
-
[in] | type | A custom data type ID. |
[in] | customdata | Initial custom data value. |
◆ GeData() [19/19]
Creates a custom data type with the default value for the type.
The second parameter is simply a typing trick so that the compiler chooses this constructor:
- Parameters
-
[in] | type | A custom data type ID. |
[in] | v | Dummy parameter. Should always be DEFAULTVALUE. |
◆ ~GeData()
◆ operator=()
Assignment operator.
- Parameters
-
[in] | d | The right-hand operand data. |
- Returns
- The data is assigned to the left-hand operand.
◆ operator==()
Equality operator.
- Parameters
-
[in] | d | The data to compare with. |
- Returns
- true if the data equasl the right-hand operand data, otherwise false.
◆ operator!=()
Not equality operator.
- Parameters
-
[in] | d | The data to compare with. |
- Returns
- true if the data is different than the right-hand operand data, otherwise false.
◆ InitType()
Initializes the data type.
- Parameters
-
[in] | type | The type of the data: DA. |
- Returns
- true if the data was successfully initialized, otherwise false.
◆ Free()
Frees the internal data. Sets the type of the data to DA_NIL afterward.
◆ GetType()
Gets the type of the data.
- Returns
- The type of the data: DA.
◆ GetBool()
Gets the value of Bool data objects. Forbidden for other data.
- Returns
- The value.
◆ GetInt32()
Gets the value of Int32 data objects. Forbidden for other data.
- Returns
- The value.
◆ GetInt64()
Gets the value of Int64 data objects. Forbidden for other data.
- Returns
- The value.
◆ GetFloat()
Gets the value of Float data. Forbidden for other data.
- Returns
- The value.
◆ GetVoid()
Gets the value of void*
data. Forbidden for other data.
- Returns
- The value.
◆ GetVector()
const Vector& GetVector |
( |
| ) |
const |
Gets the value of Vector data. Forbidden for other data.
- Returns
- The value.
◆ GetMatrix()
const Matrix& GetMatrix |
( |
| ) |
const |
Gets the value of Matrix data. Forbidden for other data.
- Returns
- The value.
◆ GetString()
const String& GetString |
( |
| ) |
const |
Gets the value of String data. Forbidden for other data.
- Returns
- The value.
◆ GetFilename()
Gets the value of Filename data. Forbidden for other data.
- Returns
- The value.
◆ GetCustomDataType()
Gets the value of custom data. Forbidden for other data.
- Parameters
-
[in] | datatype | The type ID of the data to retrieve. |
- Returns
- The value, or nullptr if the wrong datatype was specified. The data owns the pointed value.
◆ GetContainer()
Gets the value of BaseContainer data objects. Forbidden for other data.
- Returns
- The value.
◆ GetByteArray()
◆ GetBaseLink()
Gets the value of BaseLink data objects. Forbidden for other data.
- Returns
- The value.
◆ GetLink()
Gets the value of BaseList2D data objects. Forbidden for other data.
- Returns
- The value.
◆ GetTime()
Gets the value of BaseTime data objects. Forbidden for other data.
- Returns
- The value.
◆ CopyData()
Copies the data object to another with an alias translator for the links.
- Parameters
-
[in] | dest | The destination data. The caller owns the pointed data. |
[in] | aliastrans | An alias translator for the operation. Can be nullptr. The caller owns the pointed alias translator. |
◆ SetFloat()
Sets the Float value and change the data type accordingly.
- Parameters
-
◆ SetInt32()
Sets the Int32 value and change the data type accordingly.
- Parameters
-
◆ SetInt64()
void SetInt64 |
( |
const Int64 & |
v | ) |
|
Sets the Int64 value and change the data type accordingly.
- Parameters
-
◆ SetVoid()
Sets the void* value and change the data type accordingly.
- Parameters
-
◆ SetVector()
void SetVector |
( |
const Vector & |
v | ) |
|
Sets the Vector value and change the data type accordingly.
- Parameters
-
◆ SetMatrix()
void SetMatrix |
( |
const Matrix & |
v | ) |
|
Sets the Matrix value and change the data type accordingly.
- Parameters
-
◆ SetString()
void SetString |
( |
const String & |
v | ) |
|
Sets the String value and change the data type accordingly.
- Parameters
-
◆ SetFilename()
Sets the Filename value and change the data type accordingly.
- Parameters
-
◆ SetMarker()
Sets the GeMarker value and change the data type accordingly.
- Parameters
-
◆ SetBaseTime()
Sets the BaseTime value and change the data type accordingly.
- Parameters
-
◆ SetContainer()
Sets the BaseContainer value and change the data type accordingly.
- Parameters
-
◆ SetByteArray()
◆ SetBaseLink()
Sets the BaseLink value and change the data type accordingly.
- Parameters
-
◆ SetCustomDataType()
Sets the custom data value and change the data type accordingly.
- Parameters
-
[in] | datatype | The type ID of the data to set. |
[in] | v | The value to set. |
◆ Read()
Reads the data from a hyper file.
- Parameters
-
[in] | hf | The hyper file to read from. The caller owns the pointed hyper file. |
- Returns
- true if the data was read, otherwise false.
◆ Write()
Writes the data to a hyper file.
- Parameters
-
[in] | hf | The hyper file to write to. The caller owns the pointed hyper file. |
- Returns
- true if the data was written, otherwise false.
◆ Type
◆ dummy
◆ DInteger
◆ DReal
◆ DVoid
◆ DVector
◆ DMatrix
◆ DLLong
◆ DString
◆ DFilename
◆ DMarker
◆ DBaseTime
◆ DContainer
◆ DArray
◆ DAliasLink
◆ DCustomData
◆ DMissingPlugin
◆ @6