OpenCMISS-Zinc C++ API Documentation
|
Module managing all tessellation objects. More...
#include <tessellation.hpp>
Public Member Functions | |
Tessellationmodule (cmzn_tessellationmodule_id in_tessellationmodule_id) | |
Tessellationmodule (const Tessellationmodule &tessellationModule) | |
Tessellationmodule & | operator= (const Tessellationmodule &tessellationModule) |
bool | isValid () const |
cmzn_tessellationmodule_id | getId () const |
Tessellation | createTessellation () |
Tessellationiterator | createTessellationiterator () |
Tessellation | findTessellationByName (const char *name) |
int | beginChange () |
int | endChange () |
Tessellation | getDefaultTessellation () |
int | setDefaultTessellation (const Tessellation &tessellation) |
Tessellation | getDefaultPointsTessellation () |
int | setDefaultPointsTessellation (const Tessellation &tessellation) |
int | readDescription (const char *description) |
char * | writeDescription () |
Tessellationmodulenotifier | createTessellationmodulenotifier () |
Protected Attributes | |
cmzn_tessellationmodule_id | id |
Module managing all tessellation objects.
Module managing all tessellation objects. It maintains separate default tessellations for points and continuous graphics, the default points tessellation having only 1 point in each direction.
|
inline |
Begin caching or increment cache level for this tessellation module. Call this function before making multiple changes to minimise number of change messages sent to clients. Must remember to end_change after completing changes. Can be nested.
|
inline |
Create and return a new tessellation.
tessellation will belong to.
|
inline |
Create a tessellation iterator object for iterating through the tessellations in the tessellation module, in alphabetical order of name. The iterator initially points at the position before the first tessellation, so the first call to the iterator next() method returns the first tessellation and advances the iterator. The iterator becomes invalid if tessellations are added, removed or renamed while in use.
tessellations are to be iterated over.
|
inline |
Create a notifier for getting callbacks for changes to the tessellations in the tessellation module.
|
inline |
Decrement cache level or end caching of changes for the tessellation module. Call tessellation module begin change method before making multiple changes and call this afterwards. When change level is restored to zero, cached change messages are sent out to clients.
|
inline |
Find the tessellation with the specified name, if any.
name | The name of the tessellation. |
|
inline |
Get the default tessellation to be used by new points and streamlines graphics. If there is none, one is automatically created with minimum divisions 1, refinement factors 1, and circle divisions 12, and given the name "default_points".
|
inline |
Get the default tessellation to be used by new lines, surfaces and isosurfaces graphics. If there is none, one is automatically created with minimum divisions 1, refinement factors 6, and circle divisions 12, and given the name "default".
|
inline |
Return the C handle of the Tessellationmodule object.
|
inline |
Check if this is a valid Tessellationmodule object.
|
inline |
Read the json description to the tessellation module. This will change the tessellations in the tessellation module.
The string containing json description
|
inline |
Set the default tessellation to be used by new points and streamlines graphics.
tessellation | The tessellation to set as default for points. |
|
inline |
Set the default tessellation to be used by new lines, surfaces and isosurfaces graphics.
tessellation | The tessellation to set as default. |
|
inline |
Write the json file describing the tessellations in the tessellation module, which can be used to store the current tessellation settings.