OpenCMISS-Zinc C++ API Documentation
|
Container/manager for graphics visualising a region. More...
#include <scene.hpp>
Protected Attributes | |
cmzn_scene_id | id |
Container/manager for graphics visualising a region.
Container/manager for the graphics making up the visualisation of the region's domains and fields.
|
inline |
Use this function before making multiple changes on the scene, this will stop scene from executing any immediate changes made in scene. After multiple changes have been made, call the scene end change method to notify clients of changes made up to that point. Can be nested.
|
inline |
Creates a cloud of points (nodes) in the supplied nodeset sampled at random locations according to a Poisson distribution on the lines and surfaces that are in the scene tree (filtered by the optional filter), i.e. including all its descendents. Points/nodes are created with the next available identifier. The density of points is set by supplied arguments and may be scaled by data values stored in each graphics.
filter | The filter determining which graphics from the scene tree are converted. If not supplied then all graphics are converted. |
nodeset | The nodeset to add nodes to. |
coordinateField | The coordinate field to be defined and assigned on the new nodes. Must be from the same region as the nodeset. |
lineDensity | The expected number of points per unit length for lines. |
lineDensity_scale_factor | If a lines graphics has a data field the mean value of its first component multiplied by this factor is added to the expected value. |
surfaceDensity | The expected number of points per unit area of surfaces. |
surfaceDensity_scale_factor | If a surfaces graphics has a data field the mean value of its first component multiplied by this factor is added to the expected value. |
|
inline |
Create a contours graphics in the scene. Contours create graphics showing where the isoscalar field has fixed value(s): iso-surfaces for 3-D domains, iso-lines for 2-D domains.
|
inline |
Create a lines graphics in the scene. Used to visualise 1-D elements and lines/faces of elements.
|
inline |
Create a points graphics in the scene. Used to visualise static points, nodes, data and sampled element points. Must set the domain type after creation.
|
inline |
Create a streamlines graphics in the scene.
|
inline |
Create a surfaces graphics in the scene. Used to visualise 2-D elements and faces.
|
inline |
Return a handle to selection notifier for this scene. User can add and remove callback functions from the selection notifier. The callback functions will be called when selection on the scene has changed. Please see selection.h for more details.
|
inline |
Call the scene begin change method before making multiple changes on the scene, to stop the scene from notifying clients of every change. After changes have been made, call this method to restart notifications and notify clients of changes made since calling begin change.
|
inline |
Returns the graphics of the specified name from the scene. Beware that graphics in the same scene may have the same name and this function will only return the first graphics found with the specified name;
scene | Scene in which to find the graphics. |
name | The name of the graphics to find. |
name | The name of the graphics to find. |
|
inline |
Get the first graphics on the graphics list of <scene>.
|
inline |
Get the font module which manages fonts for rendering text in graphics.
|
inline |
Get the glyph module which stores static graphics for visualising points, vectors, axes etc. Note on startup no glyphs are defined and glyph module functions need to be called to define standard glyphs.
|
inline |
|
inline |
Return the material module which manages materials used to colour, texture and shade graphics. Note on startup only materials "default" and "default_selected" are defined, as white and red, respectively. Additional standard and custom materials can be defined using material module functions.
Get the next graphics after <ref_graphics> on the graphics list of <scene>.
refGraphics | Handle to a graphics object. |
|
inline |
Returns the number of graphics in <scene>.
Get the graphics before <ref_graphics> on the graphics list of <scene>.
refGraphics | Handle to a graphics object. |
|
inline |
Gets the region this scene visualises.
|
inline |
Get the scene filter module which manages scenefilter objects for filtering contents of scenes with scenepicker and sceneviewer etc.
|
inline |
Returns a handle to a sceneviewer module which manages sceneviewer objects for rendering 3-D scenes into rectangular windows or canvases using OpenGL.
|
inline |
Get the selection field for the scene, if any.
|
inline |
Get the range of graphics data field values rendered with the spectrum. Search is limited to the scene and its sub-scenes with an optional filter. Spectrum colour bar glyphs do not contribute to the range.
filter | Optional filter on which graphics to get data range from. If omitted, then all graphics within the scene tree contribute. |
spectrum | The spectrum to get the range for. Only data for graphics using this spectrum contribute to the range. |
valuesCount | The number of data values to get the minimum and maximum range for, at least 1. |
minimumValuesOut | Array to receive the data value minimums. Must be at least as large as valuesCount. |
maximumValuesOut | Array to receive the data value maximums. Must be at least as large as valuesCount. |
|
inline |
Get the spectrum module which manages spectrum objects controlling how graphics data fields are converted into colours.
|
inline |
Get the tessellation module which manages objects controlling how curves are approximated by line segments in graphics.
|
inline |
Get the timekeeper module which manages objects for synchronising time across zinc objects.
|
inline |
Returns the state of the scene's visibility flag.
|
inline |
Check if this is a valid Scene object.
|
inline |
Move a graphics to the position before ref_graphics in the scene's graphics list, or last in the list if no reference graphics supplied. Earlier graphics are drawn first and in hardware rendering their pixel fragments are displayed in priority over later graphics at the same depth.
graphics | The graphics to be moved. Must be from scene. |
refGraphics | Another graphics from this scene to insert before, or NULL to move graphics to last position in list. |
|
inline |
Removes all graphics from the scene.
|
inline |
Removes a graphics from scene and decrements the position of all subsequent graphics.
graphics | The graphics to be removed. |
|
inline |
Set the field giving selection and highlighting in the scene. Currently restricted to 'field_group' type fields. This function will also set the selection field for all of its subregion scenes if the a corresponding subregion field_group exists, otherwise the selection group of the child scene will be set to NULL.
selectionField | Group field to be used as the selection. |
|
inline |
Set the state of the scene's visibility flag. Note this only affects visibility of graphics when a scene filter is acting on it.
visibilityFlag | Boolean true to set, false to clear. |