Top | ![]() |
![]() |
![]() |
![]() |
VisuDataColorizerVisuDataColorizer — a virtual class to colorise VisuNodeArray. |
GObject ╰── ToolDbgObj ╰── VisuDataColorizer ├── VisuColorization ├── VisuDataColorizerFragment ╰── VisuDataColorizerVector
gboolean visu_data_colorizer_setActive (VisuDataColorizer *colorizer
,gboolean status
);
Changes the active status
of colorizer
.
Since: 3.8
gboolean
visu_data_colorizer_getActive (const VisuDataColorizer *colorizer
);
Retrieve if colorizer
is actively changing the VisuNode colours.
Since: 3.8
gboolean
visu_data_colorizer_setDirty (VisuDataColorizer *colorizer
);
Notifies when colorizer
colorising parameters have been changed.
Since: 3.8
VisuNodeValues *
visu_data_colorizer_getNodeModel (VisuDataColorizer *colorizer
);
If colorizer
is based on a VisuNodeValues, this function
retrieves it.
Since: 3.8
const VisuNodeValues *
visu_data_colorizer_getConstNodeModel (const VisuDataColorizer *colorizer
);
Retrieves the VisuNodeValues model used by colorizer
. This value
may be NULL
if colorizer
is not using any VisuNodeValues model.
Since: 3.8
gboolean visu_data_colorizer_setNodeModel (VisuDataColorizer *colorizer
,VisuNodeValues *model
);
Calls the class function to set the VisuNodeValues model used by colorizer
.
Since: 3.8
gboolean visu_data_colorizer_setSource (VisuDataColorizer *colorizer
,const gchar *source
);
colorizer
can be bound to a specific VisuNodeValues defined by
its name. When source
is not NULL
and colorizer
attached to a
VisuNodeArrayRenderer, see
visu_node_array_renderer_setColorizer()
, its model is changed to
match any VisuNodeValues of its current VisuNodeArray with the
label source
.
Since: 3.8
const gchar *
visu_data_colorizer_getSource (const VisuDataColorizer *colorizer
);
Retrieves the name of the property colorizer
should be bound to to
retrieve its VisuNodeValues model.
Since: 3.8
gboolean visu_data_colorizer_getColor (const VisuDataColorizer *colorizer
,float rgba[4]
,const VisuData *visuData
,const VisuNode *node
);
Call the class colorizer function of colorizer
to setup a colour
in rgba
for given node
inside visuData
. If there is no specific
colour for this node and the default element colour should be used
instead, this function returns FALSE.
colorizer |
a VisuDataColorizer object. |
|
rgba |
a location for store a colour definition. |
[array fixed-size=4][out caller-allocates] |
visuData |
a VisuData object. |
|
node |
a VisuNode structure. |
Since: 3.8
gfloat visu_data_colorizer_getScalingFactor (const VisuDataColorizer *colorizer
,const VisuData *visuData
,const VisuNode *node
);
Calls the class scaling function of colorizer
to retrieve a
scaling factor for node
in visuData
.
colorizer |
a VisuDataColorizer object. |
|
visuData |
a VisuData object. |
|
node |
a VisuNode structure. |
Since: 3.8
struct VisuDataColorizer;
Structure used to define VisuDataColorizer objects.
Since: 3.8
struct VisuDataColorizerClass { VisuObjectClass parent; gboolean (*setNodeModel)(VisuDataColorizer *colorizer, VisuNodeValues *model); gboolean (*colorize)(const VisuDataColorizer *colorizer, float rgba[4], const VisuData *visuData, const VisuNode* node); gfloat (*scale)(const VisuDataColorizer *colorizer, const VisuData *visuData, const VisuNode* node); };
Interface for class that can represent VisuDataColorizer.
its parent. |
||
a method to change the VisuNodeValues used to store the model. |
||
a method to colorize a given node according to a model. |
||
a method to scale a given node according to a model. |
Since: 3.8
“dirty”
signalvoid user_function (VisuDataColorizer *arg0, gpointer user_data)
Gets emitted when colorizer characteristics have changed and a redraw is needed.
Flags: No Hooks
Since: 3.8