OpenCMISS-Zinc C++ API Documentation
|
The context is the primary object created for each instance of Zinc. More...
#include <context.hpp>
Public Member Functions | |
Context (const char *contextName) | |
Context (cmzn_context_id context_id) | |
Context (const Context &context) | |
bool | isValid () const |
Context & | operator= (const Context &context) |
cmzn_context_id | getId () const |
int | getVersion (int *versionOut3) |
const char * | getRevision () |
char * | getVersionString () |
Region | createRegion () |
Region | getDefaultRegion () |
int | setDefaultRegion (const Region ®ion) |
Fontmodule | getFontmodule () |
Glyphmodule | getGlyphmodule () |
Lightmodule | getLightmodule () |
Logger | getLogger () |
Materialmodule | getMaterialmodule () |
Scenefiltermodule | getScenefiltermodule () |
Sceneviewermodule | getSceneviewermodule () |
Spectrummodule | getSpectrummodule () |
Tessellationmodule | getTessellationmodule () |
Timekeepermodule | getTimekeepermodule () |
The context is the primary object created for each instance of Zinc.
The context is the primary object created for each instance of Zinc. All other objects are created or obtained directly or indirectly from it. If multiple contexts are used, ensure that only objects stemming from the same context are used together.
|
inline |
Create a new region and return a handle to it. Use this function to create a region forming the root of an independent region tree. Equivalent to region create region method. Compare with region create child/subregion methods which create and add a region to the tree.
|
inline |
Returns the default region in the context. A convenience for applications that need only one region tree.
|
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 light module which manages lights used to calculate the final colour of vertices in combination with material colour.
|
inline |
Return the logger which logs debug messages.
|
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.
|
inline |
|
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 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 |
Get the version number of this Zinc library. It will return the major version, minor version and patch version in a 3 component integer array.
versionOut3 | Array of size 3 to hold the values of the version number, they are the major version, minor version and patch version respectively. |
|
inline |
Get the version string of this Zinc library. The version string will be output in the following format "[major version].[minor version].[patch version].r[revision(M)](.Debug)" (M) indicates this binary contains local modifications that are not included in the revision, and (.Debug) indicates this binary is not optimised.
|
inline |
Check if this is a valid Context object.
|
inline |
Sets the default region in the context. A convenience for applications that need only one region tree.
region | The new default region. |