GraphViewer¶
-
MacroModule
¶ author MeVis Medical Solutions AG
package MeVisLab/Standard
definition MLGraphEditing.def
Purpose¶
The module GraphViewer
provides a viewer that displays a simplified version of an attached Graph.
Details¶
The viewer displays the nodes and edges of a graph, while ignoring the edge skeletons. Edges are displayed as a connection (arrow) between the predecessor and successor nodes, i.e. the real path of the edges defined by the skeleton positions is not visualized.
Nodes and edges are displayed in different styles depending on their type, so that root nodes, branch nodes and end nodes as well as cyclic and non-cyclic edges can be distinguished visually. Also, the IDs of the nodes and edges can be displayed.
The macro module is intended to be used as a debugging viewer for quickly investigating the structure of a graph.
Input Fields¶
inGraph¶
-
name:
inGraph
, type:
Graph(MLBase)
¶ - For accessing this object via scripting see the Scripting Reference:
MLGraphWrapper
.
Parameter Fields¶
Field Index¶
Arrow Head Size : Float |
nearDistance : Float |
Root Nodes : Bool |
Arrow Line Size : Float |
Node Size : Float |
Show Details : Bool |
Branch Nodes : Bool |
Non Cyclic Edges : Bool |
Show edge ids : Bool |
Cyclic Edges : Bool |
Num Edges : Integer |
Show node ids : Bool |
End Nodes : Bool |
Num Nodes : Integer |
|
farDistance : Float |
Num Roots : Integer |
|
focalDistance : Float |
orientation : Rotation |
|
height : Float |
position : Vector3 |
Visible Fields¶
Show Details¶
-
name:
showDetails
, type:
Bool
, default:
TRUE
¶ Shows or hides the additional controls for adjusting the display of the graph.
Root Nodes¶
-
name:
rootNodes
, type:
Bool
, default:
TRUE
¶ If selected, nodes that do not have any incoming non-cyclic edges are displayed.
Branch Nodes¶
-
name:
branchNodes
, type:
Bool
, default:
FALSE
¶ If selected, nodes that are neither root nodes nor end nodes are displayed.
End Nodes¶
-
name:
endNodes
, type:
Bool
, default:
FALSE
¶ If selected, nodes that do not have any outgoing edges are displayed.
Node Size¶
-
name:
nodeSize
, type:
Float
, default:
1.5
, minimum:
0
¶ Controls the visual extent of the displayed nodes.
Show node ids¶
-
name:
showNodeIds
, type:
Bool
, default:
FALSE
¶ Toggles the display of the node IDs on or off.
Non Cyclic Edges¶
-
name:
nonCyclicEdges
, type:
Bool
, default:
TRUE
¶ If selected, edges that are not marked as cyclic are displayed.
Cyclic Edges¶
-
name:
cyclicEdges
, type:
Bool
, default:
TRUE
¶ If selected, edges that are marked as cyclic are displayed.
Arrow Head Size¶
-
name:
arrowHeadSize
, type:
Float
, default:
1.3
, minimum:
0
¶ Controls the visual extent of the arrow heads indicating the direction of the edges.
Arrow Line Size¶
-
name:
arrowLineSize
, type:
Float
, default:
0.2
, minimum:
0
¶ Controls the thickness of the edge lines.
Show edge ids¶
-
name:
showEdgeIds
, type:
Bool
, default:
FALSE
¶ Toggles the display of the edge IDs on or off.
Num Nodes¶
-
name:
numNodes
, type:
Integer
, persistent:
no
¶ Shows the total number of nodes in the graph.