OpenCMISS-Zinc C++ API Documentation
|
A single finite element from a mesh. More...
#include <element.hpp>
Public Types | |
enum | ChangeFlag { CHANGE_FLAG_NONE = CMZN_ELEMENT_CHANGE_FLAG_NONE, CHANGE_FLAG_ADD = CMZN_ELEMENT_CHANGE_FLAG_ADD, CHANGE_FLAG_REMOVE = CMZN_ELEMENT_CHANGE_FLAG_REMOVE, CHANGE_FLAG_IDENTIFIER = CMZN_ELEMENT_CHANGE_FLAG_IDENTIFIER, CHANGE_FLAG_DEFINITION = CMZN_ELEMENT_CHANGE_FLAG_DEFINITION, CHANGE_FLAG_FIELD = CMZN_ELEMENT_CHANGE_FLAG_FIELD } |
enum | FaceType { FACE_TYPE_INVALID = CMZN_ELEMENT_FACE_TYPE_INVALID, FACE_TYPE_ALL = CMZN_ELEMENT_FACE_TYPE_ALL, FACE_TYPE_XI1_0 = CMZN_ELEMENT_FACE_TYPE_XI1_0, FACE_TYPE_XI1_1 = CMZN_ELEMENT_FACE_TYPE_XI1_1, FACE_TYPE_XI2_0 = CMZN_ELEMENT_FACE_TYPE_XI2_0, FACE_TYPE_XI2_1 = CMZN_ELEMENT_FACE_TYPE_XI2_1, FACE_TYPE_XI3_0 = CMZN_ELEMENT_FACE_TYPE_XI3_0, FACE_TYPE_XI3_1 = CMZN_ELEMENT_FACE_TYPE_XI3_1 } |
enum | ShapeType { SHAPE_TYPE_INVALID = CMZN_ELEMENT_SHAPE_TYPE_INVALID, SHAPE_TYPE_LINE = CMZN_ELEMENT_SHAPE_TYPE_LINE, SHAPE_TYPE_SQUARE = CMZN_ELEMENT_SHAPE_TYPE_SQUARE, SHAPE_TYPE_TRIANGLE = CMZN_ELEMENT_SHAPE_TYPE_TRIANGLE, SHAPE_TYPE_CUBE = CMZN_ELEMENT_SHAPE_TYPE_CUBE, SHAPE_TYPE_TETRAHEDRON = CMZN_ELEMENT_SHAPE_TYPE_TETRAHEDRON, SHAPE_TYPE_WEDGE12 = CMZN_ELEMENT_SHAPE_TYPE_WEDGE12, SHAPE_TYPE_WEDGE13 = CMZN_ELEMENT_SHAPE_TYPE_WEDGE13, SHAPE_TYPE_WEDGE23 = CMZN_ELEMENT_SHAPE_TYPE_WEDGE23 } |
enum | PointSamplingMode { POINT_SAMPLING_MODE_INVALID = CMZN_ELEMENT_POINT_SAMPLING_MODE_INVALID, POINT_SAMPLING_MODE_CELL_CENTRES = CMZN_ELEMENT_POINT_SAMPLING_MODE_CELL_CENTRES, POINT_SAMPLING_MODE_CELL_CORNERS = CMZN_ELEMENT_POINT_SAMPLING_MODE_CELL_CORNERS, POINT_SAMPLING_MODE_CELL_POISSON = CMZN_ELEMENT_POINT_SAMPLING_MODE_CELL_POISSON, POINT_SAMPLING_MODE_SET_LOCATION = CMZN_ELEMENT_POINT_SAMPLING_MODE_SET_LOCATION } |
typedef int | ChangeFlags |
Public Member Functions | |
Element (cmzn_element_id element_id) | |
Element (const Element &element) | |
bool | isValid () const |
Element & | operator= (const Element &element) |
cmzn_element_id | getId () const |
int | getDimension () |
int | getIdentifier () |
int | setIdentifier (int identifier) |
Mesh | getMesh () const |
enum ShapeType | getShapeType () |
int | merge (const Elementtemplate &elementTemplate) |
A single finite element from a mesh.
A single finite element from a mesh. Represents a local coordinate chart of prescribed shape/bounds, over which fields can be defined.
typedef int OpenCMISS::Zinc::Element::ChangeFlags |
Type for passing logical OR of ChangeFlag
Bit flags summarising changes to an element or elements in a mesh.
An enumeration for selecting the faces of elements.
Mode controlling how points are sampled from elements.
Common element shape enumeration.
|
inline |
Returns the number of dimensions of the element's chart.
|
inline |
|
inline |
Returns the non-negative integer uniquely identifying the element in its mesh.
|
inline |
Get the mesh which owns this element.
|
inline |
Gets the shape type of the element. Note that legacy meshes may return an unknown shape type for certain custom element shapes e.g. polygon shapes. It is intended that future revisions of the API will offer more detailed shape query and modification functions.
|
inline |
Check if this is a valid Element object.
|
inline |
Set an integer uniquely identifying the element in its mesh.
identifier | unique identifier to be set for the element |