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.

Windows

Default Panel

../../../Projects/MLGraphEditing/Modules/mhelp/Images/Screenshots/GraphViewer.Example.png

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.

Num Edges

name: numEdges, type: Integer, persistent: no

Shows the total number of edges in the graph.

Num Roots

name: numRoots, type: Integer, persistent: no

Shows the total number of root nodes in the graph.

Hidden Fields

height

name: height, type: Float, default: 0

position

name: position, type: Vector3, default: 0 0 0

orientation

name: orientation, type: Rotation, default: 0 0 1 0

nearDistance

name: nearDistance, type: Float, default: 0

farDistance

name: farDistance, type: Float, default: 0

focalDistance

name: focalDistance, type: Float, default: 0