42 #ifndef vtkGraphLayoutView_h
43 #define vtkGraphLayoutView_h
46 #include "vtkViewsInfovisModule.h"
82 vtkBooleanMacro(VertexLabelVisibility,
bool);
91 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool);
100 vtkBooleanMacro(EdgeVisibility,
bool);
109 vtkBooleanMacro(EdgeLabelVisibility,
bool);
118 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool);
136 vtkBooleanMacro(ColorVertices,
bool);
153 vtkBooleanMacro(ColorEdges,
bool);
162 vtkBooleanMacro(EdgeSelection,
bool);
211 vtkBooleanMacro(ScaledGlyphs,
bool);
307 vtkBooleanMacro(IconVisibility,
bool);
401 bool VertexLabelsRequested;
402 bool EdgeLabelsRequested;
Proxy object to connect input/output ports.
The superclass for all representations.
abstract superclass for all edge layout strategies
abstract superclass for all graph layout strategies
Lays out and displays a graph.
bool GetVertexLabelVisibility()
void SetLayoutStrategyToSpanTree()
void SetEdgeLayoutStrategy(vtkEdgeLayoutStrategy *s)
void SetScaledGlyphs(bool arg)
Whether to use scaled glyphs or not.
void SetScalingArrayName(const char *name)
The array used for scaling (if ScaledGlyphs is ON)
virtual void SetVertexLabelFontSize(const int size)
The size of the font used for vertex labeling.
void SetEdgeLayoutStrategyToPassThrough()
bool GetEdgeLabelVisibility()
void SetLayoutStrategyToClustering2D()
void SetEdgeLayoutStrategy(const char *name)
The layout strategy to use when performing the edge layout.
void SetGlyphType(int type)
The type of glyph to use for the vertices.
void SetEnabledVerticesArrayName(const char *name)
The array to use for coloring vertices.
const char * GetLayoutStrategyName()
static vtkGraphLayoutView * New()
void SetEdgeLayoutStrategyToArcParallel()
virtual vtkRenderedGraphRepresentation * GetGraphRepresentation()
void SetVertexColorArrayName(const char *name)
The array to use for coloring vertices.
const char * GetScalingArrayName()
void AddIconType(const char *type, int index)
Associate the icon at index "index" in the vtkTexture to all vertices containing "type" as a value in...
int GetEnableEdgesByArray()
void ProcessEvents(vtkObject *caller, unsigned long eventId, void *callData) override
Called to process events.
void SetColorEdges(bool vis)
Whether to color edges.
vtkEdgeLayoutStrategy * GetEdgeLayoutStrategy()
The layout strategy to use when performing the edge layout.
const char * GetVertexLabelArrayName()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int IsLayoutComplete()
Is the graph layout complete? This method is useful for when the strategy is iterative and the applic...
void SetLayoutStrategyToRandom()
const char * GetEnabledVerticesArrayName()
void SetLayoutStrategyToCone()
const char * GetIconArrayName()
void SetEdgeColorArrayName(const char *name)
The array to use for coloring edges.
vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn) override
Overrides behavior in vtkView to create a vtkRenderedGraphRepresentation by default.
void SetLayoutStrategyToCosmicTree()
void SetLayoutStrategyToTree()
void SetLayoutStrategy(const char *name)
The layout strategy to use when performing the graph layout.
void SetLayoutStrategyToPassThrough()
int GetEnableVerticesByArray()
void SetVertexLabelArrayName(const char *name)
The array to use for vertex labeling.
bool GetHideVertexLabelsOnInteraction()
void SetIconArrayName(const char *name)
The array used for assigning icons.
~vtkGraphLayoutView() override
vtkGraphLayoutStrategy * GetLayoutStrategy()
The layout strategy to use when performing the graph layout.
void SetEdgeLabelVisibility(bool vis)
Whether to show edge labels.
void SetHideEdgeLabelsOnInteraction(bool vis)
Whether to hide edge labels during mouse interactions.
bool GetVertexScalarBarVisibility()
void SetLayoutStrategyToSimple2D()
bool GetHideEdgeLabelsOnInteraction()
virtual int GetVertexLabelFontSize()
void SetEdgeSelection(bool vis)
Whether edges are selectable.
void SetEnableEdgesByArray(bool vis)
Whether to color edges.
void SetEdgeVisibility(bool vis)
Whether to show the edges at all.
void SetEnableVerticesByArray(bool vis)
Whether to color vertices.
void SetLayoutStrategyToCircular()
virtual int GetEdgeLabelFontSize()
void SetEdgeScalarBarVisibility(bool vis)
Whether the scalar bar for edges is visible.
const char * GetEnabledEdgesArrayName()
void SetEdgeLabelArrayName(const char *name)
The array to use for edge labeling.
const char * GetVertexColorArrayName()
void SetLayoutStrategyToForceDirected()
void ZoomToSelection()
Reset the camera based on the bounds of the selected region.
virtual void UpdateLayout()
This method is useful for when the strategy is iterative and the application wants to show the iterat...
void SetIconVisibility(bool b)
Whether icons are visible (default off).
void SetVertexScalarBarVisibility(bool vis)
Whether the scalar bar for vertices is visible.
virtual void SetEdgeLabelFontSize(const int size)
The size of the font used for edge labeling.
void SetLayoutStrategyToCommunity2D()
void SetColorVertices(bool vis)
Whether to color vertices.
bool GetEdgeScalarBarVisibility()
const char * GetEdgeColorArrayName()
const char * GetEdgeLabelArrayName()
void SetLayoutStrategyToFast2D()
void SetIconAlignment(int alignment)
Specify where the icons should be placed in relation to the vertex.
void ClearIconTypes()
Clear all icon mappings.
void SetLayoutStrategy(vtkGraphLayoutStrategy *s)
void SetVertexLabelVisibility(bool vis)
Whether to show vertex labels.
const char * GetEdgeLayoutStrategyName()
void SetEnabledEdgesArrayName(const char *name)
The array to use for coloring edges.
void SetHideVertexLabelsOnInteraction(bool vis)
Whether to hide vertex labels during mouse interactions.
a simple class to control print indentation
abstract base class for most VTK objects
A view containing a renderer.
Sets theme colors for a graphical view.