OpenCMISS-Zinc C++ API Documentation
|
A specialised glyph type which draws a cylindrical colour bar. More...
#include <glyph.hpp>
Public Member Functions | |
GlyphColourBar (cmzn_glyph_colour_bar_id colour_bar_id) | |
int | getAxis (int valuesCount, double *valuesOut) |
int | setAxis (int valuesCount, const double *valuesIn) |
int | getCentre (int valuesCount, double *valuesOut) |
int | setCentre (int valuesCount, const double *valuesIn) |
double | getExtendLength () |
int | setExtendLength (double extendLength) |
int | getLabelDivisions () |
int | setLabelDivisions (int labelDivisions) |
Material | getLabelMaterial () |
int | setLabelMaterial (const Material &material) |
char * | getNumberFormat () |
int | setNumberFormat (const char *numberFormat) |
int | getSideAxis (int valuesCount, double *valuesOut) |
int | setSideAxis (int valuesCount, const double *valuesIn) |
double | getTickLength () |
int | setTickLength (double tickLength) |
Public Member Functions inherited from OpenCMISS::Zinc::Glyph | |
Glyph (cmzn_glyph_id in_glyph_id) | |
Glyph (const Glyph &glyph) | |
Glyph & | operator= (const Glyph &glyph) |
bool | isValid () const |
cmzn_glyph_id | getId () const |
char * | getName () |
int | setName (const char *name) |
bool | isManaged () |
int | setManaged (bool value) |
GlyphAxes | castAxes () |
GlyphColourBar | castColourBar () |
Additional Inherited Members | |
Public Types inherited from OpenCMISS::Zinc::Glyph | |
enum | RepeatMode { REPEAT_MODE_INVALID = CMZN_GLYPH_REPEAT_MODE_INVALID, REPEAT_MODE_NONE = CMZN_GLYPH_REPEAT_MODE_NONE, REPEAT_MODE_AXES_2D = CMZN_GLYPH_REPEAT_MODE_AXES_2D, REPEAT_MODE_AXES_3D = CMZN_GLYPH_REPEAT_MODE_AXES_3D, REPEAT_MODE_MIRROR = CMZN_GLYPH_REPEAT_MODE_MIRROR } |
enum | ShapeType { SHAPE_TYPE_INVALID = CMZN_GLYPH_SHAPE_TYPE_INVALID, SHAPE_TYPE_NONE = CMZN_GLYPH_SHAPE_TYPE_NONE, SHAPE_TYPE_ARROW = CMZN_GLYPH_SHAPE_TYPE_ARROW, SHAPE_TYPE_ARROW_SOLID = CMZN_GLYPH_SHAPE_TYPE_ARROW_SOLID, SHAPE_TYPE_AXIS = CMZN_GLYPH_SHAPE_TYPE_AXIS, SHAPE_TYPE_AXIS_SOLID = CMZN_GLYPH_SHAPE_TYPE_AXIS_SOLID, SHAPE_TYPE_CONE = CMZN_GLYPH_SHAPE_TYPE_CONE, SHAPE_TYPE_CONE_SOLID = CMZN_GLYPH_SHAPE_TYPE_CONE_SOLID, SHAPE_TYPE_CROSS = CMZN_GLYPH_SHAPE_TYPE_CROSS, SHAPE_TYPE_CUBE_SOLID = CMZN_GLYPH_SHAPE_TYPE_CUBE_SOLID, SHAPE_TYPE_CUBE_WIREFRAME = CMZN_GLYPH_SHAPE_TYPE_CUBE_WIREFRAME, SHAPE_TYPE_CYLINDER = CMZN_GLYPH_SHAPE_TYPE_CYLINDER, SHAPE_TYPE_CYLINDER_SOLID = CMZN_GLYPH_SHAPE_TYPE_CYLINDER_SOLID, SHAPE_TYPE_DIAMOND = CMZN_GLYPH_SHAPE_TYPE_DIAMOND, SHAPE_TYPE_LINE = CMZN_GLYPH_SHAPE_TYPE_LINE, SHAPE_TYPE_POINT = CMZN_GLYPH_SHAPE_TYPE_POINT, SHAPE_TYPE_SHEET = CMZN_GLYPH_SHAPE_TYPE_SHEET, SHAPE_TYPE_SPHERE = CMZN_GLYPH_SHAPE_TYPE_SPHERE, SHAPE_TYPE_AXES = CMZN_GLYPH_SHAPE_TYPE_AXES, SHAPE_TYPE_AXES_123 = CMZN_GLYPH_SHAPE_TYPE_AXES_123, SHAPE_TYPE_AXES_XYZ = CMZN_GLYPH_SHAPE_TYPE_AXES_XYZ, SHAPE_TYPE_AXES_COLOUR = CMZN_GLYPH_SHAPE_TYPE_AXES_COLOUR, SHAPE_TYPE_AXES_SOLID = CMZN_GLYPH_SHAPE_TYPE_AXES_SOLID, SHAPE_TYPE_AXES_SOLID_123 = CMZN_GLYPH_SHAPE_TYPE_AXES_SOLID_123, SHAPE_TYPE_AXES_SOLID_XYZ = CMZN_GLYPH_SHAPE_TYPE_AXES_SOLID_XYZ, SHAPE_TYPE_AXES_SOLID_COLOUR = CMZN_GLYPH_SHAPE_TYPE_AXES_SOLID_COLOUR } |
Protected Attributes inherited from OpenCMISS::Zinc::Glyph | |
cmzn_glyph_id | id |
A specialised glyph type which draws a cylindrical colour bar.
A specialised glyph type which draws a cylindrical colour bar showing the colours and range of a spectrum with controllable size, scale ticks and label etc. The colour bar automatically updates to show changes to the spectrum.
|
inline |
Gets the vector defining the main axis of the colour bar.
valuesCount | The size of valuesOut array. Gets maximum of 3 values. |
valuesOut | Array to receive axis vector. |
|
inline |
Gets the centre position of the colour bar.
valuesCount | The size of valuesOut array. Gets maximum of 3 values. |
valuesOut | Array to receive centre position. |
|
inline |
Gets the extend length used at each end of the colour bar to show values outside the spectrum range.
|
inline |
Gets the number of divisions between labels.
|
inline |
Gets the material used for colour bar labels and ticks. Can be NULL.
|
inline |
Get the number format used to write value labels on the colour bar.
|
inline |
Gets the vector defining the side/tick axis of the colour bar.
valuesCount | The size of valuesOut array. Gets maximum of 3 values. |
valuesOut | Array to receive side axis vector. |
|
inline |
Gets the tick length.
|
inline |
Sets the vector defining the main axis of the colour bar. The magnitude of this vector gives the length of the bar without the extend length. The default axis is (0,1,0) for vertical orientation in window coordinates.
valuesCount | The size of valuesIn array. Sets maximum of 3 values. |
valuesIn | Array containing axis vector. If fewer than 3 values then assumes zero for remaining components. |
|
inline |
Sets the centre position of the colour bar. The default centre is (0,0,0). It is recommended that this not be changed and instead use the graphics point attributes glyph offset.
valuesCount | The size of valuesIn array. Sets maximum of 3 values. |
valuesIn | Array containing centre position. If fewer than 3 values then assumes zero for remaining components. |
|
inline |
Sets the extend length used at each end of the colour bar to show values outside the spectrum range. The default extend length is 0.05.
extendLength | The new extend length. Must be non-negative. |
|
inline |
Sets the number of divisions between labels. This is one less than the number of labels/ticks. The default label divisions is 10.
labelDivisions | The new number of divisions, at least 1. |
|
inline |
Sets the material used for colour bar labels and ticks. Can be NULL. Default is none i.e. use the same material as for the colour bar itself, which is supplied by the graphics.
material | The new label material; can be NULL to clear. |
|
inline |
Set the number format used to write value labels on the colour bar. This is a C printf format string with a single numerical format in the form: %[+/-/0][length].precision Other characters can be added before or after the number format. Note a literal % is entered by repeating it i.e. %%. The default format is "%+.4e".
numberFormat | The printf number format used for value labels. |
|
inline |
Sets the vector defining the side/tick axis of the colour bar. The magnitude of this vector gives the diameter of the bar. The default side axis is (0.1,0,0) for vertical bar and horizontal ticks in window coordinates.
valuesCount | The size of valuesIn array. Sets maximum of 3 values. |
valuesIn | Array containing side axis vector. If fewer than 3 values then assumes zero for remaining components. |
|
inline |
Sets the tick length measured from outside radius of the colour bar, in the direction of the side axis. The default tick length is 0.05.
tickLength | The new tick length. Must be non-negative. |