Top | ![]() |
![]() |
![]() |
![]() |
VisuNodeMaskerVisuNodeMasker — an interface for objects with masking capabilities on VisuNode. |
gboolean | (*VisuNodeMaskerFunc) () |
gboolean | visu_node_masker_setMaskFunc () |
void | visu_node_masker_apply () |
void | visu_node_masker_emitDirty () |
VisuNodeMasker is implemented by VisuBox, VisuColorization, VisuDataColorizerFragment, VisuGlExtMarks and VisuPlaneSet.
Implementers of this interface are objects that can change
the visibility of VisuNode through the visu_node_masker_apply()
routine. When an implementer has its masking parameters that have
changed, it should call visu_node_masker_emitDirty()
.
gboolean (*VisuNodeMaskerFunc) (const VisuNodeMasker *masker
,const VisuNodeValuesIter *at
,gpointer data
);
Function to decide to hide a node or not.
masker |
a VisuNodeMasker object ; |
|
at |
a VisuNodeValuesIter pointer |
|
data |
some data. |
[closure] |
Since: 3.8
gboolean visu_node_masker_setMaskFunc (VisuNodeMasker *masker
,VisuNodeMaskerFunc func
,gpointer data
,GDestroyNotify destroy
);
If the implementation provides a user defined masking function,
this calls the set_mask_func()
routine.
masker |
a VisuNodeMasker object. |
|
func |
a VisuNodeMaskerFunc object. |
[closure data][scope notified][allow-none] |
data |
some data. |
[closure] |
destroy |
destroy function. |
[destroy data] |
Since: 3.8
void visu_node_masker_apply (const VisuNodeMasker *masker
,gboolean *redraw
,VisuNodeArray *array
);
Apply the masking properties of masker
over array
. If any node
visibility has changed, redraw
is set to TRUE
.
masker |
a VisuNodeMasker object. |
|
redraw |
a location for a boolean. |
[out caller-allocates] |
array |
a VisuNodeArray object. |
Since: 3.8
void
visu_node_masker_emitDirty (VisuNodeMasker *masker
);
Emits the "masking-dirty" signal. To be used by implementation of this interface to signal that some masking properties have changed.
Since: 3.8
struct VisuNodeMaskerInterface { GTypeInterface parent; gboolean (*set_mask_func)(VisuNodeMasker *masker, VisuNodeMaskerFunc func, gpointer data, GDestroyNotify destroy); gboolean (*apply) (const VisuNodeMasker *masker, VisuNodeArray *array); };
The different routines common to objects implementing a VisuNodeMasker interface.
GTypeInterface |
its parent. |
|
a method to specify a custom masking routine. |
||
a method used to apply a visibility mask on a VisuNodeArray. |
Since: 3.8
“masking-dirty”
signalvoid user_function (VisuNodeMasker *masker, gpointer user_data)
This signal is emitted when some masking parameters changed.
masker |
the object emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.8