#include <customgui_matassign.h>
Material assignment custom data type (CUSTOMDATATYPE_MATASSIGN).
◆ MatAssignData()
◆ ~MatAssignData()
◆ SetMaterial()
void SetMaterial |
( |
const AtomArray & |
materials | ) |
|
Sets the materials.
- Parameters
-
[in] | materials | The materials. |
◆ GetMaterial()
Retrieves the materials.
- Parameters
-
[in] | doc | The document for the materials. The caller owns the pointed document. |
[out] | materials | Filled with the materials. |
- Returns
- true if successful, otherwise false.
◆ InsertObject()
Inserts an object into the list.
- Parameters
-
[in] | pObject | The object to insert. The caller owns the pointed object. |
[in] | lFlags | A bit field for the initial selection state of pObject. |
- Returns
- true if successful, otherwise false.
◆ DeleteObject() [1/2]
Deletes an object from the list.
- Parameters
-
[in] | doc | The document for pObject. The caller owns the pointed document. |
[in] | pObject | The object to delete. The caller owns the pointed object. |
- Returns
- true if successful, otherwise false.
◆ DeleteObject() [2/2]
Deletes an object by index.
- Parameters
-
- Returns
- true if successful, otherwise false.
◆ GetObjectIndex()
Gets an object's index in the list.
- Parameters
-
[in] | doc | The document for pObject. The caller owns the pointed document. |
[in] | pObject | The object to get the index for. The caller owns the pointed object. |
- Returns
- The object index, or NOTOK if it is not found.
◆ ObjectFromIndex()
Gets an object by index.
- Parameters
-
[in] | doc | The document for the object. The caller owns the pointed document. |
[in] | lIndex | The object index: 0 <= lIndex < GetObjectCount() |
- Returns
- The object, as inserted with InsertObject().
◆ GetObjectCount()
Gets the object count.
- Returns
- The number of objects in the list.
◆ GetFlags() [1/2]
Gets the flags of an object by index.
- Parameters
-
- Returns
- A bit field for the selection state of the object at lIndex in the list.
◆ GetFlags() [2/2]
Gets the flags of an object.
- Parameters
-
[in] | doc | The document for pObject. The caller owns the pointed document. |
[in] | pObject | The object to get the flags for. The caller owns the pointed object. |
- Returns
- A bit field for the initial selection state of pObject.
◆ GetData() [1/2]
Retrieves the data for an object by index.
- Parameters
-
- Returns
- The data.
◆ GetData() [2/2]
Gets the data for an object.
- Parameters
-
[in] | doc | The document for pObject. The caller owns the pointed document. |
[in] | pObject | The object to get the data for. The caller owns the pointed object. |
- Returns
- The data.
◆ BuildInclusionTable()
Builds a material inclusion table containing all included objects.
- Parameters
-
[in] | doc | The document. The caller owns the pointed document. |
[in] | hierarchy_bit | The hierarchy bit. Starts at 0. |
- Returns
- The inclusion table. Delete the list by calling (
table
).