Workspace 6.21.5
|
#include <HDF5/hdf5statestorage.h>
Hdf5StateStorage | ( | ) |
|
default |
size_type addItem | ( | ) |
size_type addState | ( | const Mesh::Vector3d & | defaultValue | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
size_type addState | ( | double | defaultValue | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
defaultValue | The default value to assign to new items for this state. |
size_type addState | ( | quint16 | defaultValue | ) |
defaultValue | The default value to assign to new items for this state. |
size_type addState | ( | quint8 | defaultValue | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void clear | ( | ) |
void emptyTrash | ( | ) |
Cleans up the state data, removing invalid items (i.e. state data for nodes or elements that no longer exist in the associated mesh) from the structure. Invoke this at the conclusion of an algorithm that significantly modifies the underlying mesh structure.
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
Retrieves a specific state value from a specific item.
stateIndex | The index of the state to retrieve as a contiguous array of integers. |
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
Retrieves a specific state value from a specific item.
std::vector< double > & getScalarStateData | ( | size_type | stateIndex | ) |
stateIndex | The index of the state to retrieve as a contiguous array of doubles. |
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
Retrieves a specific state value from a specific item.
std::vector< quint16 > & getUInt16StateData | ( | size_type | stateIndex | ) |
stateIndex | The index of the state to retrieve as a contiguous array of integers. |
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
Retrieves a specific state value from a specific item.
std::vector< quint8 > & getUInt8StateData | ( | size_type | stateIndex | ) |
stateIndex | The index of the state to retrieve as a contiguous array of integers. |
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
Retrieves a specific state value from a specific item.
stateIndex | The index of the state to retrieve as a contiguous array of vectors. |
bool isDoubleStateLoaded | ( | const Mesh::StateHandle & | state | ) | const |
state | The handle of the state to inspect. |
bool isIntStateLoaded | ( | const Mesh::StateHandle & | state | ) | const |
state | The handle of the state to inspect. |
bool isItemValid | ( | size_type | index | ) | const |
index | The index of the item for which to assess validity. |
bool isUInt16StateLoaded | ( | const Mesh::StateHandle & | state | ) | const |
state | The handle of the state to inspect. |
bool isUInt8StateLoaded | ( | const Mesh::StateHandle & | state | ) | const |
state | The handle of the state to inspect. |
bool isVectorStateLoaded | ( | const Mesh::StateHandle & | state | ) | const |
state | The handle of the state to inspect. |
void logText | ( | const QString & | msg | ) | const |
msg | The message to write to the log. |
size_type numValidAndInvalidItems | ( | ) | const |
Note that items only become invalid once they have been 'removed' in some way but emptyTrash() has not yet been called to clean up the structure.
size_type numValidItems | ( | ) | const |
Note that items only become invalid once they have been 'removed' in some way but emptyTrash() has not yet been called to clean up the structure.
|
default |
void removeAllItems | ( | ) |
Removes all integer, double and vector data from state storage. Note that space is not de-allocated - it remains reserved for reallocation.
void removeDoubleState | ( | size_type | index | ) |
index | The index of the double state to remove. |
void removeIntState | ( | size_type | index | ) |
index | The index of the integer state to remove. |
void removeItem | ( | size_type | index | ) |
index | The index of the item to remove from storage. |
void removeUInt16State | ( | size_type | index | ) |
index | The index of the integer state to remove. |
void removeUInt8State | ( | size_type | index | ) |
index | The index of the uint8 state to remove. |
void removeVector3dState | ( | size_type | index | ) |
index | The index of the vector state to remove. |
void reserve | ( | size_type | numItems | ) |
numItems | The number of nodes (or elements) to reserve storage space for. |
bool resetToSize | ( | size_type | numItems | ) |
numItems | The desired number of items (nodes or elements) for which state data is to be stored. |
Resets the size variables to the specific number of items. Does not clear existing state data, however. If this is needed, users should manually invoke clear().
void setState | ( | size_type | stateIndex, |
size_type | itemIndex, | ||
const Mesh::Vector3d & | value | ||
) |
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
value | The state value to assign to the item. |
Sets the value of the specified state for a specific item.
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
value | The state value to assign to the item. |
Sets the value of the specified state for a specific item.
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
value | The state value to assign to the item. |
Sets the value of the specified state for a specific item.
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
value | The state value to assign to the item. |
Sets the value of the specified state for a specific item.
stateIndex | The index of the state being set. |
itemIndex | The index of the item for which the state value is being set. |
value | The state value to assign to the item. |
Sets the value of the specified state for a specific item.