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