A non-decreasing list of times at which nodal parameters can be stored.
More...
#include <timesequence.hpp>
A non-decreasing list of times at which nodal parameters can be stored.
A non-decreasing list of times at which nodal parameters can be stored. Setting a timesequence for a field in a nodetemplate establishes storage for N values of each component x type x version at the node (with N = the number of times in the timesequence), indexed by looking up time in the timesequence and linearly interpolating between stored times. Note that if time-varying parameters are required, a time sequence must be set when the node field is first defined: it is not currently possible to add time variation to a node field that is not time-varying (but it is possible to merge or add times to an existing time-varying node field).
- See also
- Fieldmodule::getMatchingTimesequence
-
Nodetemplate::setTimesequence
cmzn_timesequence_id OpenCMISS::Zinc::Timesequence::getId |
( |
| ) |
const |
|
inline |
int OpenCMISS::Zinc::Timesequence::getNumberOfTimes |
( |
| ) |
|
|
inline |
Gets the number of times in the time sequence.
- Returns
- The number of times.
double OpenCMISS::Zinc::Timesequence::getTime |
( |
int |
timeIndex | ) |
|
|
inline |
Gets the time at the given time_index in the time sequence.
- Parameters
-
timeIndex | The index of the time to get, starting at 1. |
- Returns
- The time or 0 if error.
bool OpenCMISS::Zinc::Timesequence::isValid |
( |
| ) |
const |
|
inline |
Check if this is a valid Timesequence object.
- Returns
- Status True if object is valid, false otherwise.
int OpenCMISS::Zinc::Timesequence::setTime |
( |
int |
timeIndex, |
|
|
double |
time |
|
) |
| |
|
inline |
Sets the time for the given time_index in the time sequence. This can only be done while the time sequence is not in use by other objects. If the sequence does not have as many times as the <time_index> then it will be expanded and the unspecified times also set to <time>.
- Parameters
-
timeIndex | The index of the time to set, starting at 1. |
time | The time to set. |
- Returns
- Status OpenCMISS::Zinc::OK on success, otherwise OpenCMISS::Zinc::ERROR_ARGUMENT.
The documentation for this class was generated from the following file: