#include <vtkGraphLayoutView.h>
vtkGraphLayoutView performs graph layout and displays a vtkGraph. You may color and label the vertices and edges using fields in the graph. If coordinates are already assigned to the graph vertices in your graph, set the layout strategy to PassThrough in this view. The default layout is Fast2D which is fast but not that good, for better layout set the layout to Simple2D or ForceDirected. There are also tree and circle layout strategies. :)
.SEE ALSO vtkFast2DLayoutStrategy vtkSimple2DLayoutStrategy vtkForceDirectedLayoutStrategy
Definition at line 84 of file vtkGraphLayoutView.h.
vtkGraphLayoutView::vtkGraphLayoutView | ( | ) | [protected] |
vtkGraphLayoutView::~vtkGraphLayoutView | ( | ) | [protected] |
static vtkGraphLayoutView* vtkGraphLayoutView::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkRenderView.
virtual const char* vtkGraphLayoutView::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkRenderView.
static int vtkGraphLayoutView::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkRenderView.
virtual int vtkGraphLayoutView::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkRenderView.
static vtkGraphLayoutView* vtkGraphLayoutView::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkRenderView.
void vtkGraphLayoutView::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkRenderView.
void vtkGraphLayoutView::SetVertexLabelArrayName | ( | const char * | name | ) |
The array to use for vertex labeling. Default is "label".
const char* vtkGraphLayoutView::GetVertexLabelArrayName | ( | ) |
The array to use for vertex labeling. Default is "label".
void vtkGraphLayoutView::SetEdgeLabelArrayName | ( | const char * | name | ) |
The array to use for edge labeling. Default is "label".
const char* vtkGraphLayoutView::GetEdgeLabelArrayName | ( | ) |
The array to use for edge labeling. Default is "label".
void vtkGraphLayoutView::SetVertexLabelVisibility | ( | bool | vis | ) |
Whether to show vertex labels. Default is off.
bool vtkGraphLayoutView::GetVertexLabelVisibility | ( | ) |
Whether to show vertex labels. Default is off.
void vtkGraphLayoutView::VertexLabelVisibilityOn | ( | ) |
Whether to show vertex labels. Default is off.
void vtkGraphLayoutView::VertexLabelVisibilityOff | ( | ) |
Whether to show vertex labels. Default is off.
void vtkGraphLayoutView::SetEdgeLabelVisibility | ( | bool | vis | ) |
Whether to show edge labels. Default is off.
bool vtkGraphLayoutView::GetEdgeLabelVisibility | ( | ) |
Whether to show edge labels. Default is off.
void vtkGraphLayoutView::EdgeLabelVisibilityOn | ( | ) |
Whether to show edge labels. Default is off.
void vtkGraphLayoutView::EdgeLabelVisibilityOff | ( | ) |
Whether to show edge labels. Default is off.
void vtkGraphLayoutView::SetVertexColorArrayName | ( | const char * | name | ) |
The array to use for coloring vertices. Default is "color".
const char* vtkGraphLayoutView::GetVertexColorArrayName | ( | ) |
The array to use for coloring vertices. Default is "color".
void vtkGraphLayoutView::SetColorVertices | ( | bool | vis | ) |
Whether to color vertices. Default is off.
bool vtkGraphLayoutView::GetColorVertices | ( | ) |
Whether to color vertices. Default is off.
void vtkGraphLayoutView::ColorVerticesOn | ( | ) |
Whether to color vertices. Default is off.
void vtkGraphLayoutView::ColorVerticesOff | ( | ) |
Whether to color vertices. Default is off.
void vtkGraphLayoutView::SetEdgeColorArrayName | ( | const char * | name | ) |
The array to use for coloring edges. Default is "color".
const char* vtkGraphLayoutView::GetEdgeColorArrayName | ( | ) |
The array to use for coloring edges. Default is "color".
void vtkGraphLayoutView::SetColorEdges | ( | bool | vis | ) |
Whether to color edges. Default is off.
bool vtkGraphLayoutView::GetColorEdges | ( | ) |
Whether to color edges. Default is off.
void vtkGraphLayoutView::ColorEdgesOn | ( | ) |
Whether to color edges. Default is off.
void vtkGraphLayoutView::ColorEdgesOff | ( | ) |
Whether to color edges. Default is off.
void vtkGraphLayoutView::SetScalingArrayName | ( | const char * | name | ) |
The array used for scaling (if ScaledGlyphs is ON)
const char* vtkGraphLayoutView::GetScalingArrayName | ( | ) |
The array used for scaling (if ScaledGlyphs is ON)
void vtkGraphLayoutView::SetScaledGlyphs | ( | bool | arg | ) |
Whether to use scaled glyphs or not. Default is off.
bool vtkGraphLayoutView::GetScaledGlyphs | ( | ) |
Whether to use scaled glyphs or not. Default is off.
virtual void vtkGraphLayoutView::ScaledGlyphsOn | ( | ) | [virtual] |
Whether to use scaled glyphs or not. Default is off.
virtual void vtkGraphLayoutView::ScaledGlyphsOff | ( | ) | [virtual] |
Whether to use scaled glyphs or not. Default is off.
void vtkGraphLayoutView::SetLayoutStrategy | ( | const char * | name | ) |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
void vtkGraphLayoutView::SetLayoutStrategyToRandom | ( | ) | [inline] |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
Definition at line 171 of file vtkGraphLayoutView.h.
void vtkGraphLayoutView::SetLayoutStrategyToForceDirected | ( | ) | [inline] |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
Definition at line 172 of file vtkGraphLayoutView.h.
void vtkGraphLayoutView::SetLayoutStrategyToSimple2D | ( | ) | [inline] |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
Definition at line 173 of file vtkGraphLayoutView.h.
void vtkGraphLayoutView::SetLayoutStrategyToClustering2D | ( | ) | [inline] |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
Definition at line 174 of file vtkGraphLayoutView.h.
void vtkGraphLayoutView::SetLayoutStrategyToCommunity2D | ( | ) | [inline] |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
Definition at line 175 of file vtkGraphLayoutView.h.
void vtkGraphLayoutView::SetLayoutStrategyToFast2D | ( | ) | [inline] |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
Definition at line 176 of file vtkGraphLayoutView.h.
void vtkGraphLayoutView::SetLayoutStrategyToPassThrough | ( | ) | [inline] |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
Definition at line 177 of file vtkGraphLayoutView.h.
void vtkGraphLayoutView::SetLayoutStrategyToCircular | ( | ) | [inline] |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
Definition at line 178 of file vtkGraphLayoutView.h.
const char* vtkGraphLayoutView::GetLayoutStrategyName | ( | ) | [inline] |
The layout strategy to use when performing the graph layout. The possible strings are: "Random" - Randomly places vertices in a box. "Force Directed" - A layout in 3D or 2D simulating forces on edges. "Simple 2D" - A simple 2D force directed layout. "Clustering 2D" - A 2D force directed layout that's just like - simple 2D but uses some techniques to cluster better. "Fast 2D"
Definition at line 179 of file vtkGraphLayoutView.h.
virtual vtkGraphLayoutStrategy* vtkGraphLayoutView::GetLayoutStrategy | ( | ) | [virtual] |
The layout strategy to use when performing the graph layout. This signature allows an application to create a layout object directly and simply set the pointer through this method
void vtkGraphLayoutView::SetLayoutStrategy | ( | vtkGraphLayoutStrategy * | s | ) |
The layout strategy to use when performing the graph layout. This signature allows an application to create a layout object directly and simply set the pointer through this method
void vtkGraphLayoutView::SetIterationsPerLayout | ( | int | iterations | ) |
Set the number of iterations per refresh (defaults to all) In other words, the default is to do the entire layout and then do a visual refresh. Changing this variable to something like '1', will enable an application to see the layout as it progresses.
void vtkGraphLayoutView::SetIconTexture | ( | vtkTexture * | texture | ) |
The icon sheet to use for textures.
void vtkGraphLayoutView::AddIconType | ( | char * | type, | |
int | index | |||
) |
Associate the icon at index "index" in the vtkTexture to all vertices containing "type" as a value in the vertex attribute array specified by IconArrayName.
void vtkGraphLayoutView::ClearIconTypes | ( | ) |
Clear all icon mappings.
void vtkGraphLayoutView::SetIconSize | ( | int * | size | ) |
Each icon's size on the sheet.
void vtkGraphLayoutView::SetIconAlignment | ( | int | alignment | ) |
Specify where the icons should be placed in relation to the vertex. See vtkIconGlyphFilter.h for possible values.
void vtkGraphLayoutView::SetIconVisibility | ( | bool | b | ) |
Whether icons are visible (default off).
bool vtkGraphLayoutView::GetIconVisibility | ( | ) |
Whether icons are visible (default off).
virtual void vtkGraphLayoutView::IconVisibilityOn | ( | ) | [virtual] |
Whether icons are visible (default off).
virtual void vtkGraphLayoutView::IconVisibilityOff | ( | ) | [virtual] |
Whether icons are visible (default off).
void vtkGraphLayoutView::SetIconArrayName | ( | const char * | name | ) |
The array used for assigning icons
const char* vtkGraphLayoutView::GetIconArrayName | ( | ) |
The array used for assigning icons
void vtkGraphLayoutView::SetSelectionArrayName | ( | const char * | name | ) |
The array used for populating the selection list
const char* vtkGraphLayoutView::GetSelectionArrayName | ( | ) |
The array used for populating the selection list
virtual void vtkGraphLayoutView::SetupRenderWindow | ( | vtkRenderWindow * | win | ) | [virtual] |
Sets up interactor style.
Reimplemented from vtkRenderView.
virtual void vtkGraphLayoutView::ApplyViewTheme | ( | vtkViewTheme * | theme | ) | [virtual] |
Apply the theme to this view.
Reimplemented from vtkRenderView.
virtual void vtkGraphLayoutView::SetVertexLabelFontSize | ( | const int | size | ) | [virtual] |
The size of the font used for vertex labeling
virtual int vtkGraphLayoutView::GetVertexLabelFontSize | ( | ) | [virtual] |
The size of the font used for vertex labeling
virtual void vtkGraphLayoutView::SetEdgeLabelFontSize | ( | const int | size | ) | [virtual] |
The size of the font used for edge labeling
virtual int vtkGraphLayoutView::GetEdgeLabelFontSize | ( | ) | [virtual] |
The size of the font used for edge labeling
virtual int vtkGraphLayoutView::IsLayoutComplete | ( | ) | [virtual] |
Is the graph layout complete? This method is useful for when the strategy is iterative and the application wants to show the iterative progress of the graph layout See Also: UpdateLayout();
virtual void vtkGraphLayoutView::UpdateLayout | ( | ) | [virtual] |
This method is useful for when the strategy is iterative and the application wants to show the iterative progress of the graph layout. The application would have something like while(!IsLayoutComplete()) { UpdateLayout(); } See Also: IsLayoutComplete();
virtual void vtkGraphLayoutView::ProcessEvents | ( | vtkObject * | caller, | |
unsigned long | eventId, | |||
void * | callData | |||
) | [protected, virtual] |
Called to process the user event from the interactor style.
Reimplemented from vtkRenderView.
virtual void vtkGraphLayoutView::AddInputConnection | ( | vtkAlgorithmOutput * | conn | ) | [protected, virtual] |
Connects the algorithm output to the internal pipeline. This view only supports a single representation.
virtual void vtkGraphLayoutView::RemoveInputConnection | ( | vtkAlgorithmOutput * | conn | ) | [protected, virtual] |
Removes the algorithm output from the internal pipeline.
virtual void vtkGraphLayoutView::SetSelectionLink | ( | vtkSelectionLink * | link | ) | [protected, virtual] |
Connects the selection link to the internal pipeline.
virtual void vtkGraphLayoutView::PrepareForRendering | ( | ) | [protected, virtual] |
Prepares the view for rendering.
Reimplemented from vtkRenderView.
void vtkGraphLayoutView::MapToXYPlane | ( | double | displayX, | |
double | displayY, | |||
double & | x, | |||
double & | y | |||
) | [protected] |
May a display coordinate to a world coordinate on the x-y plane.
virtual char* vtkGraphLayoutView::GetLayoutStrategyNameInternal | ( | ) | [protected, virtual] |
Used to store the layout strategy name
virtual void vtkGraphLayoutView::SetLayoutStrategyNameInternal | ( | const char * | ) | [protected, virtual] |
Used to store the layout strategy name
virtual char* vtkGraphLayoutView::GetSelectionArrayNameInternal | ( | ) | [protected, virtual] |
Used to store the selection array name
virtual void vtkGraphLayoutView::SetSelectionArrayNameInternal | ( | const char * | ) | [protected, virtual] |
Used to store the selection array name
virtual char* vtkGraphLayoutView::GetIconArrayNameInternal | ( | ) | [protected, virtual] |
Used to store the icon array name
virtual void vtkGraphLayoutView::SetIconArrayNameInternal | ( | const char * | ) | [protected, virtual] |
Used to store the icon array name
char* vtkGraphLayoutView::LayoutStrategyNameInternal [protected] |
Used to store the layout strategy name
Definition at line 291 of file vtkGraphLayoutView.h.
vtkGraphLayoutStrategy* vtkGraphLayoutView::LayoutStrategy [protected] |
Used to store the current layout strategy
Definition at line 296 of file vtkGraphLayoutView.h.
char* vtkGraphLayoutView::SelectionArrayNameInternal [protected] |
Used to store the selection array name
Definition at line 301 of file vtkGraphLayoutView.h.
char* vtkGraphLayoutView::IconArrayNameInternal [protected] |
Used to store the icon array name
Definition at line 308 of file vtkGraphLayoutView.h.
vtkSmartPointer<vtkCoordinate> vtkGraphLayoutView::Coordinate [protected] |
Definition at line 314 of file vtkGraphLayoutView.h.
vtkSmartPointer<vtkGraphLayout> vtkGraphLayoutView::GraphLayout [protected] |
Definition at line 317 of file vtkGraphLayoutView.h.
Definition at line 318 of file vtkGraphLayoutView.h.
vtkSmartPointer<vtkForceDirectedLayoutStrategy> vtkGraphLayoutView::ForceDirectedStrategy [protected] |
Definition at line 319 of file vtkGraphLayoutView.h.
Definition at line 320 of file vtkGraphLayoutView.h.
Definition at line 321 of file vtkGraphLayoutView.h.
Definition at line 322 of file vtkGraphLayoutView.h.
vtkSmartPointer<vtkConstrained2DLayoutStrategy> vtkGraphLayoutView::Constrained2DStrategy [protected] |
Definition at line 323 of file vtkGraphLayoutView.h.
Definition at line 324 of file vtkGraphLayoutView.h.
Definition at line 325 of file vtkGraphLayoutView.h.
Definition at line 326 of file vtkGraphLayoutView.h.
Definition at line 327 of file vtkGraphLayoutView.h.
vtkSmartPointer<vtkEdgeCenters> vtkGraphLayoutView::EdgeCenters [protected] |
Definition at line 328 of file vtkGraphLayoutView.h.
vtkSmartPointer<vtkActor> vtkGraphLayoutView::GraphActor [protected] |
Definition at line 329 of file vtkGraphLayoutView.h.
vtkSmartPointer<vtkGraphMapper> vtkGraphLayoutView::GraphMapper [protected] |
Definition at line 330 of file vtkGraphLayoutView.h.
Definition at line 331 of file vtkGraphLayoutView.h.
Definition at line 332 of file vtkGraphLayoutView.h.
Definition at line 333 of file vtkGraphLayoutView.h.
vtkSmartPointer<vtkActor2D> vtkGraphLayoutView::EdgeLabelActor [protected] |
Definition at line 334 of file vtkGraphLayoutView.h.
Definition at line 337 of file vtkGraphLayoutView.h.
Definition at line 338 of file vtkGraphLayoutView.h.
Definition at line 339 of file vtkGraphLayoutView.h.
Definition at line 340 of file vtkGraphLayoutView.h.
Definition at line 341 of file vtkGraphLayoutView.h.