OpenCMISS-Zinc C++ API Documentation
|
Base graphics type: produces 3-D graphics visualising domains and fields. More...
#include <graphics.hpp>
Public Types | |
enum | RenderPolygonMode { RENDER_POLYGON_MODE_INVALID = CMZN_GRAPHICS_RENDER_POLYGON_MODE_INVALID, RENDER_POLYGON_MODE_SHADED = CMZN_GRAPHICS_RENDER_POLYGON_MODE_SHADED, RENDER_POLYGON_MODE_WIREFRAME = CMZN_GRAPHICS_RENDER_POLYGON_MODE_WIREFRAME } |
enum | SelectMode { SELECT_MODE_INVALID = CMZN_GRAPHICS_SELECT_MODE_INVALID, SELECT_MODE_ON = CMZN_GRAPHICS_SELECT_MODE_ON, SELECT_MODE_OFF = CMZN_GRAPHICS_SELECT_MODE_OFF, SELECT_MODE_DRAW_SELECTED = CMZN_GRAPHICS_SELECT_MODE_DRAW_SELECTED, SELECT_MODE_DRAW_UNSELECTED = CMZN_GRAPHICS_SELECT_MODE_DRAW_UNSELECTED } |
enum | Type { TYPE_INVALID = CMZN_GRAPHICS_TYPE_INVALID, TYPE_POINTS = CMZN_GRAPHICS_TYPE_POINTS, TYPE_LINES = CMZN_GRAPHICS_TYPE_LINES, TYPE_SURFACES = CMZN_GRAPHICS_TYPE_SURFACES, TYPE_CONTOURS = CMZN_GRAPHICS_TYPE_CONTOURS, TYPE_STREAMLINES = CMZN_GRAPHICS_TYPE_STREAMLINES } |
Protected Attributes | |
cmzn_graphics_id | id |
Base graphics type: produces 3-D graphics visualising domains and fields.
Base graphics type: produces 3-D graphics visualising domains and fields from the owning scene's region. Derived types (points, lines, surfaces, contours and streamlines) specify the algorithm used to create the graphics and may have additional type-specific attributes.
Enumeration controlling how graphics interact with selection: whether the objects can be picked, the selection highlighted or only the selected or unselected primitives are drawn.
Enumeration giving the algorithm used to create graphics.
|
inline |
If the graphics is of type contours then this function returns the derived contours graphics handle.
|
inline |
If the graphics is of type lines then this function returns the derived lines graphics handle.
|
inline |
If the graphics is of type points then this function returns the derived points graphics handle.
|
inline |
If the graphics is of type streamlines then this function returns the derived streamlines graphics handle.
|
inline |
If the graphics is of type surfaces then this function returns the derived surfaces graphics handle.
|
inline |
Gets the field supplying coordinates for the graphics.
|
inline |
Gets the data field used with the spectrum to colour the graphics.
|
inline |
Gets the element face type the graphics is limited to generating graphics for.
|
inline |
Get the field domain type graphics are created from with the graphics.
|
inline |
If the graphics produces lines or extrusions then returns a handle to the line attribute object for specifying section profile and scaling.
|
inline |
If the graphics produces points then returns a handle to point attribute object for specifying glyph, scaling fields, scale factors and labels.
|
inline |
If the graphics samples points from elements then returns a handle to sampling attribute object for specifying sampling mode, density field etc.
|
inline |
|
inline |
Gets the material giving the colour/shading of the graphics when unselected.
|
inline |
Return the name of the graphics. The graphics has no name until user sets it.
|
inline |
Get the width used for rendering line primitives in GL in renderer 'point units', typically pixels for on-screen display.
|
inline |
Get the size used for rendering point primitives in GL in renderer 'point units', typically pixels for on-screen display.
|
inline |
Get mode controlling how polygons in the graphics are rendered in GL.
|
inline |
Get the scene owning this graphics.
|
inline |
Get the scene coordinate system in which to render the coordinates of graphics.
|
inline |
Gets the material giving the colour/shading of the graphics when selected.
|
inline |
Gets the mode controlling how graphics are drawn depending on whether the underlying object is selected, and also whether picking is enabled.
|
inline |
Gets the spectrum used with the data field to colour the graphics.
|
inline |
Gets the field which returns true/non-zero for primitive to be created.
|
inline |
Returns the tessellation object of the graphics. Caller must destroy returned handle.
|
inline |
Gets the field controlling tessellation quality.
|
inline |
Get the texture coordinate field of the graphics. Caller must destroy handle.
|
inline |
Get the graphics type: POINTS, LINES, SURFACES, CONTOURS, STREAMLINES
|
inline |
Return status of graphics visibility flag attribute.
|
inline |
Gets flag to generate graphics for exterior faces or lines only.
|
inline |
Check if this is a valid Graphics object.
|
inline |
Sets the field supplying coordinates for the graphics. Non rectangular- Cartesian coordinates are automatically converted to RC for the graphics.
coordinateField | The field to use as the coordinate field. May have from 1 to 3 components. |
|
inline |
Sets the data field used with the spectrum to colour the graphics.
dataField | The field to use as the data field. |
|
inline |
Sets the element face type the graphics is limited to generating graphics for. e.g. FACE_TYPE_XI1_0 generates graphics only on faces and lines where the top-level element 'xi1' coordinate equals 0. Value FACE_TYPE_ALL disables the face check so all elements of dimension - face or non-face - are accepted.
faceType | A valid element face type. |
|
inline |
Sets flag to generate graphics for exterior faces or lines only.
exterior | New boolean value: true to set, false to clear. |
|
inline |
Set the field domain type to create graphics from with the graphics. Note that all domain types are applicable to all graphics types, for example this attribute cannot be changed for LINES and SURFACES, which always use 1D and 2D elements domains, respectively.
domainType | Enumerated value of the field domain type to use. |
|
inline |
Sets the material giving the colour/shading of the graphics when unselected.
material | The standard/unselected material. |
|
inline |
Sets the name of the graphics. Unlike other containers, scene can contain multiple graphics with the same name. New graphics default to having no name. A common use of the name is to mark the graphics for filtering, like metadata.
name | The new name for the graphics, OR NULL to clear. |
|
inline |
Set the width used for rendering line primitives in GL in renderer 'point units', typically pixels for on-screen display but scalable to ensure lines are of appropriate thickness on high resolution output. Note there may be arbitrary limits on values depending on the GL implementation, and for non-antialised rendering the nearest integer is used. The default value is 1.0.
width | The line render width in pixels. Value > 0.0. |
|
inline |
Set the size used for rendering point primitives in GL in renderer 'point units', typically pixels for on-screen display but scalable to ensure points are of appropriate size on high resolution output. Note there may be arbitrary limits on values depending on the GL implementation, and may be rounded to the nearest integer in use. The default value is 1.0.
size | The point render size in pixels. Value > 0.0. |
|
inline |
Set mode controlling how polygons in the graphics are rendered in GL: shaded/filled, wireframe etc.
renderPolygonMode | Mode of polygon rendering: shaded, wireframe. |
|
inline |
Set the scene coordinate system in which to render the coordinates of graphics.
coordinateSystem | enumerator describing coordinate system to be set for graphics. |
|
inline |
Set the material giving the colour/shading of the graphics when selected.
material | The selected/highlight material. |
|
inline |
Sets the mode controlling how graphics are drawn depending on whether the underlying object is selected, and also whether picking is enabled. An object is selected if it is in the current selection_group for the scene which owns the graphics. The default select mode for new graphics is CMZN_GRAPHICS_SELECT_MODE_ON.
selectMode | A valid select mode for the graphics. |
|
inline |
Sets the spectrum used with the data field to colour the graphics.
spectrum | The spectrum to use to map colours. |
|
inline |
Sets optional field which causes graphics to be generated only for parts of the domain where its value is true/non-zero. Commonly a group, node_group or element_group field which is efficiently iterated over. Note general fields are evaluated at an arbitrary location in elements.
subgroupField | Scalar subgroup field. |
|
inline |
Sets the tessellation object of the graphics.
tessellation | The tessellation object to be set for graphics. |
|
inline |
Sets a field which sets tessellation quality to match its native refinement in any element (if any) and also apply refinement factors if the field function is non-linear at its native refinement. If no tessellation field is supplied, the coordinate field is checked for non-linearity of function OR coordinate system, but not native refinement.
tessellationField | The field which sets tessellation quality. |
|
inline |
Set the texture coordinate field of the graphics. Values of this field specify mapping of the material's image field to coordinates in the graphics. The texture coordinate field is currently unused by POINTS and STREAMLINES.
textureCoordinateField | The field to be set as the texture coordinate field, or 0 for none. Field must have from 1 to 3 components. |
|
inline |
Sets status of graphics visibility flag attribute. Note this only affects visibility of graphics when a scene filter is acting on it.
visibilityFlag | Boolean true to set, false to clear. |