Go to the documentation of this file.
31 #ifndef vtkRenderedGraphRepresentation_h
32 #define vtkRenderedGraphRepresentation_h
101 virtual
void SetEdgeLabelArrayName(const
char*
name);
102 virtual const
char* GetEdgeLabelArrayName();
103 virtual
void SetEdgeLabelPriorityArrayName(const
char*
name);
104 virtual const
char* GetEdgeLabelPriorityArrayName();
105 virtual
void SetEdgeLabelVisibility(
bool b);
106 virtual
bool GetEdgeLabelVisibility();
123 virtual
void SetVertexIconArrayName(const
char*
name);
124 virtual const
char* GetVertexIconArrayName();
125 virtual
void SetVertexIconPriorityArrayName(const
char*
name);
126 virtual const
char* GetVertexIconPriorityArrayName();
127 virtual
void SetVertexIconVisibility(
bool b);
128 virtual
bool GetVertexIconVisibility();
130 virtual
void AddVertexIconType(const
char*
name,
int type);
131 virtual
void ClearVertexIconTypes();
132 virtual
void SetUseVertexIconTypeMap(
bool b);
133 virtual
bool GetUseVertexIconTypeMap();
135 virtual
void SetVertexIconAlignment(
int align);
136 virtual
int GetVertexIconAlignment();
137 virtual
void SetVertexSelectedIcon(
int icon);
138 virtual
int GetVertexSelectedIcon();
139 virtual
void SetVertexDefaultIcon(
int icon);
140 virtual
int GetVertexDefaultIcon();
148 virtual
void SetVertexIconSelectionMode(
int mode);
149 virtual
int GetVertexIconSelectionMode();
150 virtual
void SetVertexIconSelectionModeToSelectedIcon()
151 { this->SetVertexIconSelectionMode(0); }
153 { this->SetVertexIconSelectionMode(1); }
155 { this->SetVertexIconSelectionMode(2); }
157 { this->SetVertexIconSelectionMode(3); }
239 { this->SetLayoutStrategy(
"Random"); }
241 { this->SetLayoutStrategy(
"Force Directed"); }
243 { this->SetLayoutStrategy(
"Simple 2D"); }
245 { this->SetLayoutStrategy(
"Clustering 2D"); }
247 { this->SetLayoutStrategy(
"Community 2D"); }
249 { this->SetLayoutStrategy(
"Fast 2D"); }
251 { this->SetLayoutStrategy(
"Pass Through"); }
253 { this->SetLayoutStrategy(
"Circular"); }
255 { this->SetLayoutStrategy(
"Tree"); }
257 { this->SetLayoutStrategy(
"Cosmic Tree"); }
259 { this->SetLayoutStrategy(
"Cone"); }
261 { this->SetLayoutStrategy(
"Span Tree"); }
268 const char* xarr,
const char* yarr = 0,
const char* zarr = 0);
284 double leafSpacing = 0.9,
285 double logSpacing = 1.0);
299 const char* nodeSizeArrayName,
300 bool sizeLeafNodesOnly =
true,
313 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
315 { this->SetEdgeLayoutStrategy(
"Pass Through"); }
map vtkPolyData to graphics primitives
vtkSmartPointer< vtkEdgeCenters > EdgeCenters
vtkSmartPointer< vtkGraphToGlyphs > OutlineGlyph
char * VertexHoverArrayName
convert a vtkGraph to vtkPolyData
virtual bool RemoveFromView(vtkView *view)
draw vtkPolyData onto the image plane
virtual void SetEdgeIconAlignment(int align)
virtual const char * GetEdgeIconPriorityArrayName()
A view containing a renderer.
virtual const char * GetVertexColorArrayName()
GLboolean GLboolean GLboolean b
virtual bool GetEdgeScalarBarVisibility()
void SetLayoutStrategyToPassThrough()
vtkRenderedGraphRepresentation()
virtual void SetVertexScalarBarVisibility(bool b)
virtual vtkEdgeLayoutStrategy * GetEdgeLayoutStrategy()
actor that draws 2D data with texture support
Adds an attribute array with the degree of each vertex.
char * EdgeColorArrayNameInternal
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
virtual void PrepareForRendering(vtkRenderView *view)
virtual void SetEdgeScalarBarVisibility(bool b)
virtual void SetScaling(bool b)
virtual int GetGlyphType()
void SetLayoutStrategyToForceDirected()
abstract superclass for all graph layout strategies
#define VTKVIEWSINFOVIS_EXPORT
vtkSmartPointer< vtkApplyColors > ApplyColors
vtkSmartPointer< vtkPolyDataMapper > EdgeMapper
vtkSmartPointer< vtkActor > OutlineActor
virtual void SetEdgeLayoutStrategyToGeo(double explodeFactor=0.2)
void SetLayoutStrategyToClustering2D()
char * VertexColorArrayNameInternal
virtual const char * GetEdgeIconArrayName()
#define vtkTypeMacro(thisClass, superclass)
vtkSmartPointer< vtkPolyDataMapper > OutlineMapper
virtual void SetEdgeIconArrayName(const char *name)
virtual void SetColorEdgesByArray(bool b)
vtkSmartPointer< vtkScalarBarWidget > VertexScalarBar
bool HideEdgeLabelsOnInteraction
virtual bool GetEdgeIconVisibility()
apply colors to a data set.
void SetLayoutStrategyToCommunity2D()
vtkSmartPointer< vtkPointSetToLabelHierarchy > VertexLabelHierarchy
~vtkRenderedGraphRepresentation()
vtkSmartPointer< vtkPointSetToLabelHierarchy > EdgeLabelHierarchy
virtual void SetVertexColorArrayName(const char *name)
A node in a selection tree. Used to store selection results.
virtual const char * GetEnabledEdgesArrayName()
virtual const char * GetScalingArrayName()
virtual void AddEdgeIconType(const char *name, int type)
Filter that generates a polydata consisting of quads with texture coordinates referring to a set of i...
virtual const char * GetEdgeColorArrayName()
char * EdgeLayoutStrategyName
vtkSmartPointer< vtkPolyDataMapper > VertexMapper
virtual void SetEdgeLayoutStrategy(const char *name)
char * ScalingArrayNameInternal
virtual void ApplyViewTheme(vtkViewTheme *theme)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSmartPointer< vtkPolyDataMapper2D > VertexIconMapper
virtual vtkTextProperty * GetVertexLabelTextProperty()
virtual void SetLayoutStrategyToTree(bool radial, double angle=90, double leafSpacing=0.9, double logSpacing=1.0)
Perturbs vertices that are coincident.
The superclass for all views.
create glyphs for graph vertices
convert a vtkGraph a set of points.
virtual int GetEdgeIconAlignment()
Sets theme colors for a graphical view.
char * EdgeHoverArrayName
virtual vtkScalarBarWidget * GetVertexScalarBar()
GLuint const GLchar * name
void PrintSelf(ostream &os, vtkIndent indent)
void SetLayoutStrategyToCosmicTree()
virtual void SetEdgeIconVisibility(bool b)
vtkSmartPointer< vtkActor > VertexActor
virtual void SetVertexIconSelectionModeToSelectedOffset()
virtual void SetEnabledEdgesArrayName(const char *name)
void SetLayoutStrategyToSimple2D()
vtkSmartPointer< vtkGraphToPoints > VertexIconPoints
virtual void SetVertexIconSelectionModeToIgnoreSelection()
virtual bool GetEdgeVisibility()
vtkSmartPointer< vtkGraphToPolyData > GraphToPoly
virtual bool GetVertexScalarBarVisibility()
virtual void SetLayoutStrategyToAssignCoordinates(const char *xarr, const char *yarr=0, const char *zarr=0)
virtual bool GetColorVerticesByArray()
represents an object (geometry & properties) in a rendered scene
bool HideVertexLabelsOnInteraction
a simple class to control print indentation
virtual void SetScalingArrayName(const char *name)
String class that stores Unicode text.
#define vtkSetStringMacro(name)
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
virtual bool GetEnableVerticesByArray()
virtual void SetLayoutStrategy(const char *name)
virtual bool AddToView(vtkView *view)
virtual void SetEdgeColorArrayName(const char *name)
build a label hierarchy for a graph or point set.
virtual vtkGraphLayoutStrategy * GetLayoutStrategy()
virtual void SetEnableVerticesByArray(bool b)
virtual void SetEdgeLayoutStrategy(vtkEdgeLayoutStrategy *strategy)
vtkSmartPointer< vtkTransformCoordinateSystems > VertexIconTransform
#define vtkGetMacro(name, type)
vtkSmartPointer< vtkEdgeLayout > EdgeLayout
Superclass for mapping scalar values to colors.
vtkGetStringMacro(ExtensionsString)
virtual bool IsLayoutComplete()
void SetLayoutStrategyToFast2D()
void ComputeSelectedGraphBounds(double bounds[6])
virtual vtkScalarBarWidget * GetEdgeScalarBar()
virtual void SetVertexLabelPriorityArrayName(const char *name)
virtual bool GetScaling()
void SetLayoutStrategyToSpanTree()
vtkSmartPointer< vtkApplyIcons > ApplyVertexIcons
virtual void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
represent text properties.
vtkBooleanMacro(IgnoreDriverBugs, bool)
virtual void SetVertexLabelArrayName(const char *name)
vtkSetMacro(IgnoreDriverBugs, bool)
map scalar values into colors via a lookup table
vtkSmartPointer< vtkGraphToGlyphs > VertexGlyph
vtkSmartPointer< vtkGraphLayout > Layout
virtual bool GetVertexLabelVisibility()
virtual void SetUseEdgeIconTypeMap(bool b)
virtual void SetEdgeIconPriorityArrayName(const char *name)
virtual void ClearEdgeIconTypes()
virtual void SetVertexIconSelectionModeToAnnotationIcon()
virtual vtkUnicodeString GetHoverTextInternal(vtkSelection *sel)
virtual void SetGlyphType(int type)
Removes the rows/edges/vertices of input data flagged by ann.
virtual void SetEnableEdgesByArray(bool b)
vtkSmartPointer< vtkIconGlyphFilter > VertexIconGlyph
virtual void UpdateLayout()
virtual void SetLayoutStrategyToCosmicTree(const char *nodeSizeArrayName, bool sizeLeafNodesOnly=true, int layoutDepth=0, vtkIdType layoutRoot=-1)
vtkSmartPointer< vtkPerturbCoincidentVertices > Coincident
void SetLayoutStrategyToTree()
virtual bool GetColorEdgesByArray()
void SetEdgeLayoutStrategyToArcParallel()
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetEdgeSelection(bool b)
vtkSmartPointer< vtkRemoveHiddenData > RemoveHiddenGraph
virtual const char * GetVertexLabelPriorityArrayName()
abstract superclass for all edge layout strategies
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel)
void SetLayoutStrategyToCircular()
virtual void SetColorVerticesByArray(bool b)
virtual void SetEnabledVerticesArrayName(const char *name)
virtual void SetVertexLabelTextProperty(vtkTextProperty *p)
generate points at center of edges
virtual const char * GetEnabledVerticesArrayName()
char * LayoutStrategyName
void SetLayoutStrategyToCone()
virtual void SetVertexLabelVisibility(bool b)
GLuint GLuint GLsizei GLenum type
void SetEdgeLayoutStrategyToPassThrough()
vtkSmartPointer< vtkActor > EdgeActor
vtkSmartPointer< vtkTexturedActor2D > VertexIconActor
layout a graph in 2 or 3 dimensions
vtkSmartPointer< vtkPolyData > EmptyPolyData
void SetLayoutStrategyToRandom()
virtual bool GetEnableEdgesByArray()
vtkSmartPointer< vtkVertexDegree > VertexDegree
virtual const char * GetVertexLabelArrayName()
virtual void SetEdgeVisibility(bool b)
virtual bool GetUseEdgeIconTypeMap()
apply icons to a data set.
static vtkRenderedGraphRepresentation * New()