cee::ug::Situation
-
class
Situation
: public RefCountedObject A situation stores the setup of the unstructgrid model and view.
This enables the user to reapply/recreate a specific situation. This can for instance be fringes, vector results, current step, draw style, cutting plane configuration and so on. This enables the user to quickly change between a number of desired setups without having to manually apply all the changed settings.
The situation item is model independent and can be applied to any fitting model.
Situations can be saved/loaded from file using the SituationIo class.
Public Functions
-
Situation
() Creates an empty situation item.
-
const PropertySetCollection *
propertyCollection
() const Returns the collection of properties for this situation.
-
void
setPropertyCollection
(PropertySetCollection *collection) Sets the property collection.
-
Str
date
() const Returns the date for when this situation item was created. Format: yy:mm:dd:hh:mm.
-
size_t
elementSetCount
() const Returns the number of element sets.
-
const DataElementSet *
elementSet
(size_t setIndex) const Returns the element set at the given index.
-
void
addElementSet
(const DataElementSet *elementSet, SetInfo setInfo) Adds an element set to a situation.
-
size_t
userDataCount
() const Returns the number of user-defined data items.
-
void
setUserData
(const Str &key, const Str &value) Sets the value of a given user-defined data key.
User data consists of a map of key-value pair. Key names must be unique.
-
void
capture
(const UnstructGridModel &model, const vis::View &view) Captures the situation content from the given model and view.
-
void
updateModel
(UnstructGridModel *model) const Updates the given model with this situation.
-