Top | ![]() |
![]() |
![]() |
![]() |
VisuGlNodeSceneVisuGlNodeScene — Defines a storage object to handle all VisuGlExt used to render nodes and associated data. |
gboolean | axes-from-box | Read / Write |
gchar * | colorization-file-extension | Read / Write |
guint | colorization-policy | Read / Write |
VisuData * | data | Read / Write |
gboolean | geometry-differences | Read / Write |
gboolean | loading | Read |
gchar * | loading-message | Read |
gboolean | path-active | Read / Write / Construct |
guint | path-length | Read |
ToolShade * | path-shade | Read / Write |
gboolean | record-path | Read / Write / Construct |
gboolean | reorder-reference | Read / Write / Construct |
VisuDataColorizerFragment * | shell-colorizer | Read |
VisuGlView * | view | Read |
enum | VisuGlNodeSceneColorizationPolicies |
struct | VisuGlNodeScene |
struct | VisuGlNodeSceneClass |
VisuGlNodeScene * visu_gl_node_scene_new ();
Create an object to handle a set of VisuGlExt objects and draw them together.
Since: 3.8
gboolean visu_gl_node_scene_applyCLI (VisuGlNodeScene *scene
,GError **error
);
Call all the get methods on the command line options to tune the
given data
.
scene |
a VisuGlNodeScene object to apply the options on ; |
|
error |
a location for error report. |
gboolean visu_gl_node_scene_dump (VisuGlNodeScene *scene
,VisuDump *format
,const char *fileName
,guint width
,guint height
,ToolVoidDataFunc functionWait
,gpointer data
,GError **error
);
Call this method to dump the given scene
to a file.
scene |
a valid VisuGlNodeScene object ; |
|
format |
a VisuDump object, corresponding to the write method ; |
|
fileName |
a string that defined the file to write to ;. |
[type filename] |
width |
an integer, or 0 for current ; |
|
height |
an integer, or 0 for current ; |
|
functionWait |
a method to call periodically during the dump ;. |
[allow-none][closure data][scope call] |
data |
some pointer on object to be passed to the wait function. |
[closure] |
error |
a location to store some error (not NULL) ; |
gboolean visu_gl_node_scene_setData (VisuGlNodeScene *scene
,VisuData *data
);
Apply the given view
on all VisuGlExt objects stored in set
.
Since: 3.8
gboolean visu_gl_node_scene_loadData (VisuGlNodeScene *scene
,VisuDataLoadable *loadable
,guint iSet
,GCancellable *cancel
,GError **error
);
A convenience function that tries to load loadable
, see
visu_data_loadable_load()
. On success, loadable
is associated to
scene
, see visu_gl_node_scene_setData()
.
scene |
a VisuGlNodeScene object. |
|
loadable |
a VisuDataLoadable object. |
|
iSet |
an id. |
|
cancel |
a cancellable. |
[allow-none] |
error |
an error location. |
Since: 3.8
VisuData *
visu_gl_node_scene_getData (VisuGlNodeScene *scene
);
Retrives the VisuData represented by VisuGlNodeScene.
Since: 3.8
gboolean visu_gl_node_scene_setColorization (VisuGlNodeScene *scene
,VisuColorization *dt
);
Associates dt
with scene
to colorize nodes.
Since: 3.8
VisuColorization *
visu_gl_node_scene_getColorization (VisuGlNodeScene *scene
);
The attached VisuColorization object, if any.
Since: 3.8
gboolean visu_gl_node_scene_setColorizationPolicy (VisuGlNodeScene *scene
,VisuGlNodeSceneColorizationPolicies policy
);
Specifies how the colorization should be modified when a new
VisuData is associated to scene
.
Since: 3.8
VisuDataColorizerFragment *
visu_gl_node_scene_getFragmentColorizer
(VisuGlNodeScene *scene
);
Retrieves the default fragment colorizer object of scene
.
Since: 3.8
VisuGlView *
visu_gl_node_scene_getGlView (VisuGlNodeScene *scene
);
Retrieves the VisuGlView used by scene
to render nodes.
Since: 3.8
void visu_gl_node_scene_setGlCamera (VisuGlNodeScene *scene
,VisuGlCamera *camera
);
A convenience function to change the view all at once with animations.
Since: 3.8
VisuGlExtNodes *
visu_gl_node_scene_getNodes (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtNodes object used by scene
to render nodes.
Since: 3.8
VisuGlExtPairs *
visu_gl_node_scene_getPairs (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtPairs object used by scene
to render pairs.
Since: 3.8
VisuGlExtAxes *
visu_gl_node_scene_getAxes (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtAxes object used by scene
to render axes.
Since: 3.8
VisuGlExtBox *
visu_gl_node_scene_getBox (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtBox object used by scene
to render the box.
Since: 3.8
VisuGlExtBoxLegend *
visu_gl_node_scene_getBoxLegend (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtBoxLegend object used by scene
to render
the lgened of the box.
Since: 3.8
VisuGlExtLegend *
visu_gl_node_scene_getLegend (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtLegend object used by scene
to render the
node legend.
Since: 3.8
VisuGlExtBg *
visu_gl_node_scene_getBgImage (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtBg object used by scene
to render images on
the background.
Since: 3.8
VisuGlExtScale *
visu_gl_node_scene_getScales (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtScale object used by scene
to render scales.
Since: 3.8
VisuGlExtForces *
visu_gl_node_scene_getForces (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtForces object used by scene
to render forces.
Since: 3.8
VisuGlExtVibrations *
visu_gl_node_scene_getVibrations (VisuGlNodeScene *scene
);
Retrieves the associated VisuGlExtVibrations used to represent periodic displacements of nodes.
Since: 3.8
VisuGlExtShade *
visu_gl_node_scene_getColorizationLegend
(VisuGlNodeScene *scene
);
Retrieve the VisuGlExtShade object, used to represent the color variation of an attached VisuColorization object. The returned object is created if none already exists.
Since: 3.8
VisuGlExtGeodiff *
visu_gl_node_scene_getGeometryDifferences
(VisuGlNodeScene *scene
);
Retrieve the VisuGlExtGeodiff used to draw geometry differences.
Since: 3.8
VisuGlExtPlanes *
visu_gl_node_scene_addPlanes (VisuGlNodeScene *scene
);
Add or retrieve the VisuGlExtPlanes object used by scene
to render planes.
Since: 3.8
VisuGlExtSurfaces *
visu_gl_node_scene_addSurfaces (VisuGlNodeScene *scene
);
Add or retrieve the VisuGlExtSurfaces object used by scene
to render surfaces.
Since: 3.8
VisuGlExtMapSet * visu_gl_node_scene_addMaps (VisuGlNodeScene *scene
,VisuGlExtShade **mapLegend
);
Add or retrieve the VisuGlExtMapSet object used by scene
to render maps.
scene |
a VisuGlNodeScene object. |
|
mapLegend |
a pointer to retrieve the associated VisuGlExtShade legend of the coloured map. |
[out][transfer none] |
Since: 3.8
VisuGlExtMarks *
visu_gl_node_scene_getMarks (VisuGlNodeScene *scene
);
Retrieve the VisuGlExtMarks object used by scene
to render marks.
Since: 3.8
gboolean visu_gl_node_scene_setMarksFromFile (VisuGlNodeScene *scene
,const gchar *filename
,GError **error
);
Try to parse filename
and put marks on nodes of scene
accordingly.
Since: 3.8
gboolean visu_gl_node_scene_marksToFile (VisuGlNodeScene *scene
,const gchar *filename
,GError **error
);
Export the current selection and marks into filename
.
Since: 3.8
gboolean visu_gl_node_scene_getMarkActive (const VisuGlNodeScene *scene
,guint nodeId
);
Tests if nodeId
from scene
has some marks on it.
Since: 3.8
gboolean visu_gl_node_scene_setMark (VisuGlNodeScene *scene
,guint nodeId
,gboolean status
);
Display or removes marks on nodeId
, depending on status
.
Since: 3.8
VisuDataColorizerFragment * visu_gl_node_scene_colorizeShell (VisuGlNodeScene *scene
,gint nodeId
);
Apply colorization depending on neighbouring shell of nodeId
.
Since: 3.8
VisuDataColorizerFragment *
visu_gl_node_scene_colorizeFragments (VisuGlNodeScene *scene
);
Apply colorization depending on fragments if they are defined.
Since: 3.8
void
visu_gl_node_scene_removeMarks (VisuGlNodeScene *scene
);
Remove all marks on scene
.
Since: 3.8
VisuGlExtInfos *
visu_gl_node_scene_getInfos (VisuGlNodeScene *scene
);
Retrieves the VisuGlExtInfos object used by scene
to display info
on nodes.
Since: 3.8
gboolean visu_gl_node_scene_setDiffFromLoadable (VisuGlNodeScene *scene
,VisuDataLoadable *ref
,GError **error
);
Same as visu_gl_node_scene_setDiffFromData()
, but load first ref
before doing the difference.
Since: 3.8
void visu_gl_node_scene_setDiffFromData (VisuGlNodeScene *scene
,const VisuData *dataRef
);
Creates a VisuDataDiff from the current VisuData and dataRef
. If
the scene is in recording mode (see "record-path" property), the
difference is appended to the current path.
Since: 3.8
void
visu_gl_node_scene_clearPaths (VisuGlNodeScene *scene
);
Remove any VisuPaths from scene
.
Since: 3.8
gboolean visu_gl_node_scene_parsePathsFromXML (VisuGlNodeScene *scene
,const gchar *filename
,GError **error
);
Try to parse filename
to load some VisuPaths into scene
.
Since: 3.8
gboolean visu_gl_node_scene_exportPathsToXML (VisuGlNodeScene *scene
,const gchar *filename
,GError **error
);
If scene
has some VisuPaths, it exports them to an XML file
defined by filename
.
Since: 3.8
gboolean visu_gl_node_scene_addMasker (VisuGlNodeScene *scene
,VisuNodeMasker *masker
);
Add masker
to scene
, so when masker
is modified, VisuNode of
scene
are hidden accordingly.
Since: 3.8
gboolean visu_gl_node_scene_removeMasker (VisuGlNodeScene *scene
,VisuNodeMasker *masker
);
Remove masker
from the list of objects that may hide nodes in scene
.
Since: 3.8
gboolean visu_gl_node_scene_addMover (VisuGlNodeScene *scene
,VisuNodeMover *mover
);
Add mover
to scene
.
Since: 3.8
gboolean visu_gl_node_scene_removeMover (VisuGlNodeScene *scene
,VisuNodeMover *mover
);
Remove mover
from the list of objects that may move nodes in scene
.
Since: 3.8
void
visu_gl_node_scene_setDefault (VisuGlNodeScene *scene
);
Since: 3.8
The different policies to apply when a new VisuData is associated to a VisuGlNodeScene object.
no policy. |
||
try to load colourisation data from file matching file name. |
||
copy previous colourisation data to new VisuData. |
Since: 3.8
struct VisuGlNodeSceneClass { VisuGlExtSetClass parent; };
Common name to refer to a _VisuGlNodeSceneClass.
“axes-from-box”
property“axes-from-box” gboolean
axes follow the data super-cell.
Flags: Read / Write
Default value: FALSE
“colorization-file-extension”
property“colorization-file-extension” gchar *
extension used to discover colourisation file.
Flags: Read / Write
Default value: ".dat"
“colorization-policy”
property“colorization-policy” guint
colorization load policy.
Flags: Read / Write
Allowed values: <= 2
Default value: 2
“geometry-differences”
property“geometry-differences” gboolean
display arrows to represent differences.
Flags: Read / Write
Default value: FALSE
“loading”
property“loading” gboolean
flag indicating that data are loading.
Flags: Read
Default value: FALSE
“loading-message”
property“loading-message” gchar *
message when loading.
Flags: Read
Default value: ""
“path-active”
property“path-active” gboolean
display stored paths.
Flags: Read / Write / Construct
Default value: FALSE
“record-path”
property“record-path” gboolean
save differences between data.
Flags: Read / Write / Construct
Default value: FALSE
“reorder-reference”
property“reorder-reference” gboolean
reorder reference data before comparing.
Flags: Read / Write / Construct
Default value: FALSE
“shell-colorizer”
property“shell-colorizer” VisuDataColorizerFragment *
used to colorize neighbouring shells.
Flags: Read