v_sim.GlNodeScene¶
- Subclasses:
None
Methods¶
- Inherited:
v_sim.GlExtSet (8), v_sim.Gl (42), GObject.Object (37), v_sim.Boxed (2)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
v_sim.GlExtSet (2), v_sim.Gl (4), GObject.Object (7), v_sim.Boxed (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
axes follow the data super-cell. |
||
r/w |
extension used to discover colourisation file. |
||
r/w |
colorization load policy. |
||
r/w |
storing data for nodes |
||
r/w |
display arrows to represent differences |
||
r |
flag indicating that data are loading. |
||
r |
message when loading. |
||
r/w/c |
display stored paths |
||
r |
store the path length |
||
r/w |
store the path shade |
||
r/w/c |
save differences between data |
||
r/w/c |
reorder reference data before comparing |
||
r |
used to colorize neighbouring shells. |
||
r |
storing the view to represent the data |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.GlNodeScene(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Common name to refer to a #_VisuGlNodeScene.
- classmethod new()¶
- Returns:
a newly created
v_sim.GlNodeSceneobject.- Return type:
Create an object to handle a set of
v_sim.GlExtobjects and draw them together.New in version 3.8.
- addMaps()¶
- Returns:
a
v_sim.GlExtMapSetobject.- mapLegend:
a pointer to retrieve the associated
v_sim.GlExtShadelegend of the coloured map.
- Return type:
(
v_sim.GlExtMapSet, mapLegend:v_sim.GlExtShade)
Add or retrieve the
v_sim.GlExtMapSetobject used by self to render maps.New in version 3.8.
- addMasker(masker)¶
- Parameters:
masker (
v_sim.NodeMasker) – av_sim.NodeMaskerobject.- Returns:
Falseif masker already exists.- Return type:
Add masker to self, so when masker is modified,
v_sim.Nodeof self are hidden accordingly.New in version 3.8.
- addMover(mover)¶
- Parameters:
mover (
v_sim.NodeMover) – av_sim.NodeMoverobject.- Returns:
Falseif mover already exists.- Return type:
Add mover to self.
New in version 3.8.
- addPlanes()¶
- Returns:
a
v_sim.GlExtPlanesobject.- Return type:
Add or retrieve the
v_sim.GlExtPlanesobject used by self to render planes.New in version 3.8.
- addSurfaces()¶
- Returns:
a
v_sim.GlExtSurfacesobject.- Return type:
Add or retrieve the
v_sim.GlExtSurfacesobject used by self to render surfaces.New in version 3.8.
- applyCLI()¶
- Raises:
- Returns:
Trueif complete without error.- Return type:
Call all the get methods on the command line options to tune the given data.
- clearPaths()¶
Remove any
v_sim.Pathsfrom self.New in version 3.8.
- colorizeFragments()¶
- Returns:
the associated
v_sim.DataColorizerFragmentobject.- Return type:
Apply colorization depending on fragments if they are defined.
New in version 3.8.
- colorizeShell(nodeId)¶
- Parameters:
nodeId (
int) – a node id.- Returns:
the
v_sim.DataColorizerFragmentused for the colorization.- Return type:
Apply colorization depending on neighbouring shell of nodeId.
New in version 3.8.
- dump(format, fileName, width, height, functionWait, *data)¶
- Parameters:
format (
v_sim.Dump) – av_sim.Dumpobject, corresponding to the write method ;fileName (
str) – a string that defined the file to write to ;width (
int) – an integer, or 0 for current ;height (
int) – an integer, or 0 for current ;functionWait (
v_sim.VoidDataFuncorNone) – a method to call periodically during the dump ;data (
objectorNone) – some pointer on object to be passed to the wait function.
- Raises:
- Returns:
Trueif everything went right.- Return type:
Call this method to dump the given self to a file.
- exportPathsToXML(filename)¶
-
If self has some
v_sim.Paths, it exports them to an XML file defined by filename.New in version 3.8.
- getAxes()¶
- Returns:
a
v_sim.GlExtAxesobject.- Return type:
Retrieve the
v_sim.GlExtAxesobject used by self to render axes.New in version 3.8.
- getBgImage()¶
- Returns:
a
v_sim.GlExtBgobject.- Return type:
Retrieve the
v_sim.GlExtBgobject used by self to render images on the background.New in version 3.8.
- getBox()¶
- Returns:
a
v_sim.GlExtBoxobject.- Return type:
Retrieve the
v_sim.GlExtBoxobject used by self to render the box.New in version 3.8.
- getBoxLegend()¶
- Returns:
a
v_sim.GlExtBoxLegendobject.- Return type:
Retrieve the
v_sim.GlExtBoxLegendobject used by self to render the lgened of the box.New in version 3.8.
- getColorization()¶
- Returns:
a
v_sim.Colorizationobject, orNone.- Return type:
The attached
v_sim.Colorizationobject, if any.New in version 3.8.
- getColorizationLegend()¶
- Returns:
- Return type:
Retrieve the
v_sim.GlExtShadeobject, used to represent the color variation of an attachedv_sim.Colorizationobject. The returned object is created if none already exists.New in version 3.8.
- getData()¶
- Returns:
a
v_sim.Dataobject.- Return type:
Retrives the
v_sim.Datarepresented byv_sim.GlNodeScene.New in version 3.8.
- getForces()¶
- Returns:
a
v_sim.GlExtForcesobject.- Return type:
Retrieve the
v_sim.GlExtForcesobject used by self to render forces.New in version 3.8.
- getFragmentColorizer()¶
- Returns:
the default
v_sim.DataColorizerFragment.- Return type:
Retrieves the default fragment colorizer object of self.
New in version 3.8.
- getGeometryDifferences()¶
- Returns:
a
v_sim.GlExtGeodiffobject.- Return type:
Retrieve the
v_sim.GlExtGeodiffused to draw geometry differences.New in version 3.8.
- getGlView()¶
- Returns:
a
v_sim.GlViewobject.- Return type:
Retrieves the
v_sim.GlViewused by self to render nodes.New in version 3.8.
- getInfos()¶
- Returns:
a
v_sim.GlExtInfosobject.- Return type:
Retrieves the
v_sim.GlExtInfosobject used by self to display info on nodes.New in version 3.8.
- getLegend()¶
- Returns:
a
v_sim.GlExtLegendobject.- Return type:
Retrieve the
v_sim.GlExtLegendobject used by self to render the node legend.New in version 3.8.
- getMarkActive(nodeId)¶
-
Tests if nodeId from self has some marks on it.
New in version 3.8.
- getMarks()¶
- Returns:
a
v_sim.GlExtMarksobject.- Return type:
Retrieve the
v_sim.GlExtMarksobject used by self to render marks.New in version 3.8.
- getNodes()¶
- Returns:
a
v_sim.GlExtNodesobject.- Return type:
Retrieve the
v_sim.GlExtNodesobject used by self to render nodes.New in version 3.8.
- getPairs()¶
- Returns:
a
v_sim.GlExtPairsobject.- Return type:
Retrieve the
v_sim.GlExtPairsobject used by self to render pairs.New in version 3.8.
- getScales()¶
- Returns:
a
v_sim.GlExtScaleobject.- Return type:
Retrieve the
v_sim.GlExtScaleobject used by self to render scales.New in version 3.8.
- getVibrations()¶
- Returns:
the attached
v_sim.GlExtVibrations, owned by V_Sim.- Return type:
Retrieves the associated
v_sim.GlExtVibrationsused to represent periodic displacements of nodes.New in version 3.8.
- loadData(loadable, iSet, cancel)¶
- Parameters:
loadable (
v_sim.DataLoadable) – av_sim.DataLoadableobject.iSet (
int) – an id.cancel (
Gio.CancellableorNone) – a cancellable.
- Raises:
- Returns:
Trueon success.- Return type:
A convenience function that tries to load loadable, see
v_sim.DataLoadable.load(). On success, loadable is associated to self, seev_sim.GlNodeScene.setData().New in version 3.8.
- marksToFile(filename)¶
-
Export the current selection and marks into filename.
New in version 3.8.
- parsePathsFromXML(filename)¶
-
Try to parse filename to load some
v_sim.Pathsinto self.New in version 3.8.
- removeMarks()¶
Remove all marks on self.
New in version 3.8.
- removeMasker(masker)¶
- Parameters:
masker (
v_sim.NodeMasker) – av_sim.NodeMaskerobject.- Returns:
Trueon successful removal.- Return type:
Remove masker from the list of objects that may hide nodes in self.
New in version 3.8.
- removeMover(mover)¶
- Parameters:
mover (
v_sim.NodeMover) – av_sim.NodeMoverobject.- Returns:
Trueon successful removal.- Return type:
Remove mover from the list of objects that may move nodes in self.
New in version 3.8.
- setColorization(dt)¶
- Parameters:
dt (
v_sim.ColorizationorNone) – av_sim.Colorizationobject.- Returns:
Trueif value is actually changed.- Return type:
Associates dt with self to colorize nodes.
New in version 3.8.
- setColorizationPolicy(policy)¶
- Parameters:
policy (
v_sim.GlNodeSceneColorizationPolicies) – av_sim.GlNodeSceneColorizationPoliciesvalue.- Returns:
Trueif value is actually changed.- Return type:
Specifies how the colorization should be modified when a new
v_sim.Datais associated to self.New in version 3.8.
- setData(data)¶
- Parameters:
data (
v_sim.Data) – av_sim.Dataobject.- Returns:
Trueif the view actually change.- Return type:
Apply the given view on all
v_sim.GlExtobjects stored in set.New in version 3.8.
- setDiffFromData(dataRef)¶
- Parameters:
dataRef (
v_sim.Data) – av_sim.Dataobject.
Creates a
v_sim.DataDifffrom the currentv_sim.Dataand dataRef. If the scene is in recording mode (see “record-path” property), the difference is appended to the current path.New in version 3.8.
- setDiffFromLoadable(ref)¶
- Parameters:
ref (
v_sim.DataLoadable) – av_sim.Dataobject.- Raises:
- Returns:
Trueon success.- Return type:
Same as
v_sim.GlNodeScene.setDiffFromData(), but load first ref before doing the difference.New in version 3.8.
- setGlCamera(camera)¶
- Parameters:
camera (
v_sim.GlCamera) – av_sim.GlCameraobject.
A convenience function to change the view all at once with animations.
New in version 3.8.
- setMark(nodeId, status)¶
- Parameters:
- Returns:
Trueif nodeId mark status changed.- Return type:
xlib.Displayor removes marks on nodeId, depending on status.New in version 3.8.
Property Details¶
- v_sim.GlNodeScene.props.axes_from_box¶
-
axes follow the data super-cell.
- v_sim.GlNodeScene.props.colorization_file_extension¶
-
extension used to discover colourisation file.
- v_sim.GlNodeScene.props.colorization_policy¶
-
colorization load policy.
- v_sim.GlNodeScene.props.data¶
- Name:
data- Type:
- Default Value:
- Flags:
storing data for nodes
- v_sim.GlNodeScene.props.geometry_differences¶
-
display arrows to represent differences
- v_sim.GlNodeScene.props.loading¶
-
flag indicating that data are loading.
- v_sim.GlNodeScene.props.loading_message¶
-
message when loading.
- v_sim.GlNodeScene.props.path_active¶
-
display stored paths
- v_sim.GlNodeScene.props.path_length¶
-
store the path length
- v_sim.GlNodeScene.props.path_shade¶
- Name:
path-shade- Type:
- Default Value:
- Flags:
store the path shade
- v_sim.GlNodeScene.props.record_path¶
-
save differences between data
- v_sim.GlNodeScene.props.reorder_reference¶
-
reorder reference data before comparing
- v_sim.GlNodeScene.props.shell_colorizer¶
- Name:
shell-colorizer- Type:
- Default Value:
- Flags:
used to colorize neighbouring shells.
- v_sim.GlNodeScene.props.view¶
- Name:
view- Type:
- Default Value:
- Flags:
storing the view to represent the data