Model
Model holds information which is to be gathered to constitute a view.
Model is an abstract base class. All models must implement this interface.
The Model class has three main subclasses:
UnstructGridModel
MarkupModel
GeometryModel
UnstructGridModel
The UnstructGridModel
class is a
subclass of Model
which adds specific model structure and functionality for representing
scientific and engineering models, e.g. finite element data.
Essential to UnstructGridModel is DataSource
which represents the actual source of model
information. Subclasses to DataSource distinguish between file based and programmatic input of
model information.
See topic Getting data into UnstructGridModel for further descriptions of data sources.
UnstructGridModel employs a model specification, the ModelSpec
class, to specify what to
visualize at any given time. ModelSpec enables selection of states (e.g. load cases, time steps,
and frequencies), and results (scalar, vector, and displacements).
The data model consists of nodes, elements, element connectivity, and aggregations to parts.
Nodes and elements can be index- or id-based. Elements also have optional user properties.
The parts bind elements and nodes. A geometry consists of a collection of parts. The Unstructured Grid component
supports multiple geometries per state and allows combination of static and dynamic geometries. All parts
have its own part settings
.
The data model may contain multiple scalar, vector results, displacement results and transformations.
The Unstructured Grid component supports partial results (results available only for a subset of parts).
See the Unstruct Grid Component documentation
for further information.
Tutorial: UnstructGrid: Simple Model with Two Triangles |
|
Tutorial: UnstructGrid: A Simple Model with Results |
|
Tutorial: UnstructGrid: Load Model from File and Set Up Model Specification |
MarkupModel
The cee::vis::MarkupModel
class is a subclass of cee::vis::Model
which
draws simple object and markups such as annotations, distance measurements etc.
The following markup part types are available:
Tutorial: Visualization: Draw Bounding Box Using Markup Model |
GeometryModel
The GeometryModel class is a subclass of Model
which
can handle a large number of Parts
efficiently.
It supports the following part types:
Each part has with relevant effects/attributes like color, textures, opacity/transparency, size/width, halo/silhouetted edges, lighting etc.
The GeometryModel supports ray and region intersects which may be used to mimic e.g. picking/selection schemes.
Tutorial: Geometry: Create a Geometry Model |
|
Tutorial: Geometry: Create a Geometry Model with Texture |
|
Tutorial: Geometry: Create a Geometry Model with Geometric Primitives |