31 #ifndef vtkRenderedGraphRepresentation_h
32 #define vtkRenderedGraphRepresentation_h
79 virtual void SetVertexLabelArrayName(
const char*
name);
80 virtual const char* GetVertexLabelArrayName();
81 virtual void SetVertexLabelPriorityArrayName(
const char*
name);
82 virtual const char* GetVertexLabelPriorityArrayName();
83 virtual void SetVertexLabelVisibility(
bool b);
84 virtual bool GetVertexLabelVisibility();
85 vtkBooleanMacro(VertexLabelVisibility,
bool);
88 vtkSetStringMacro(VertexHoverArrayName);
89 vtkGetStringMacro(VertexHoverArrayName);
93 vtkSetMacro(HideVertexLabelsOnInteraction,
bool)
94 vtkGetMacro(HideVertexLabelsOnInteraction,
bool)
95 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool)
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();
107 vtkBooleanMacro(EdgeLabelVisibility,
bool);
110 vtkSetStringMacro(EdgeHoverArrayName);
111 vtkGetStringMacro(EdgeHoverArrayName);
115 vtkSetMacro(HideEdgeLabelsOnInteraction,
bool)
116 vtkGetMacro(HideEdgeLabelsOnInteraction,
bool)
117 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool)
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();
129 vtkBooleanMacro(VertexIconVisibility,
bool);
130 virtual
void AddVertexIconType(const
char* name,
int type);
131 virtual
void ClearVertexIconTypes();
132 virtual
void SetUseVertexIconTypeMap(
bool b);
133 virtual
bool GetUseVertexIconTypeMap();
134 vtkBooleanMacro(UseVertexIconTypeMap,
bool);
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); }
163 virtual void SetEdgeIconArrayName(
const char*
name);
164 virtual const char* GetEdgeIconArrayName();
165 virtual void SetEdgeIconPriorityArrayName(
const char*
name);
166 virtual const char* GetEdgeIconPriorityArrayName();
167 virtual void SetEdgeIconVisibility(
bool b);
168 virtual bool GetEdgeIconVisibility();
169 vtkBooleanMacro(EdgeIconVisibility,
bool);
170 virtual void AddEdgeIconType(
const char*
name,
int type);
171 virtual void ClearEdgeIconTypes();
172 virtual void SetUseEdgeIconTypeMap(
bool b);
173 virtual bool GetUseEdgeIconTypeMap();
174 vtkBooleanMacro(UseEdgeIconTypeMap,
bool);
175 virtual void SetEdgeIconAlignment(
int align);
176 virtual int GetEdgeIconAlignment();
181 virtual void SetColorVerticesByArray(
bool b);
182 virtual bool GetColorVerticesByArray();
183 vtkBooleanMacro(ColorVerticesByArray,
bool);
184 virtual void SetVertexColorArrayName(
const char*
name);
185 virtual const char* GetVertexColorArrayName();
190 virtual void SetColorEdgesByArray(
bool b);
191 virtual bool GetColorEdgesByArray();
192 vtkBooleanMacro(ColorEdgesByArray,
bool);
193 virtual void SetEdgeColorArrayName(
const char*
name);
194 virtual const char* GetEdgeColorArrayName();
199 virtual void SetEnableVerticesByArray(
bool b);
200 virtual bool GetEnableVerticesByArray();
201 vtkBooleanMacro(EnableVerticesByArray,
bool);
202 virtual void SetEnabledVerticesArrayName(
const char*
name);
203 virtual const char* GetEnabledVerticesArrayName();
208 virtual void SetEnableEdgesByArray(
bool b);
209 virtual bool GetEnableEdgesByArray();
210 vtkBooleanMacro(EnableEdgesByArray,
bool);
211 virtual void SetEnabledEdgesArrayName(
const char*
name);
212 virtual const char* GetEnabledEdgesArrayName();
214 virtual void SetEdgeVisibility(
bool b);
215 virtual bool GetEdgeVisibility();
216 vtkBooleanMacro(EdgeVisibility,
bool);
218 void SetEdgeSelection(
bool b);
219 bool GetEdgeSelection();
232 virtual void SetLayoutStrategy(
const char*
name);
233 vtkGetStringMacro(LayoutStrategyName);
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"); }
267 virtual void SetLayoutStrategyToAssignCoordinates(
268 const char* xarr,
const char* yarr = 0,
const char* zarr = 0);
281 virtual void SetLayoutStrategyToTree(
284 double leafSpacing = 0.9,
285 double logSpacing = 1.0);
298 virtual void SetLayoutStrategyToCosmicTree(
299 const char* nodeSizeArrayName,
300 bool sizeLeafNodesOnly =
true,
313 { this->SetEdgeLayoutStrategy(
"Arc Parallel"); }
315 { this->SetEdgeLayoutStrategy(
"Pass Through"); }
320 virtual void SetEdgeLayoutStrategyToGeo(
double explodeFactor = 0.2);
324 virtual void SetEdgeLayoutStrategy(
const char*
name);
325 vtkGetStringMacro(EdgeLayoutStrategyName);
336 virtual void SetGlyphType(
int type);
337 virtual int GetGlyphType();
342 virtual void SetScaling(
bool b);
343 virtual bool GetScaling();
344 vtkBooleanMacro(Scaling,
bool);
349 virtual void SetScalingArrayName(
const char*
name);
350 virtual const char* GetScalingArrayName();
355 virtual void SetVertexScalarBarVisibility(
bool b);
356 virtual bool GetVertexScalarBarVisibility();
357 virtual void SetEdgeScalarBarVisibility(
bool b);
358 virtual bool GetEdgeScalarBarVisibility();
369 virtual bool IsLayoutComplete();
372 virtual void UpdateLayout();
375 void ComputeSelectedGraphBounds(
double bounds[6] );
438 vtkSetStringMacro(VertexColorArrayNameInternal);
439 vtkGetStringMacro(VertexColorArrayNameInternal);
442 vtkSetStringMacro(EdgeColorArrayNameInternal);
443 vtkGetStringMacro(EdgeColorArrayNameInternal);
446 vtkSetStringMacro(ScalingArrayNameInternal);
447 vtkGetStringMacro(ScalingArrayNameInternal);
450 vtkSetStringMacro(LayoutStrategyName);
452 vtkSetStringMacro(EdgeLayoutStrategyName);
void SetLayoutStrategyToClustering2D()
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
vtkSmartPointer< vtkPolyDataMapper > OutlineMapper
vtkSmartPointer< vtkGraphToPoints > VertexIconPoints
virtual void SetVertexIconSelectionModeToIgnoreSelection()
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection)
vtkSmartPointer< vtkGraphToPolyData > GraphToPoly
vtkSmartPointer< vtkScalarBarWidget > VertexScalarBar
bool HideEdgeLabelsOnInteraction
void SetEdgeLayoutStrategyToPassThrough()
represents an object (geometry & properties) in a rendered scene
actor that draws 2D data with texture support
vtkSmartPointer< vtkApplyIcons > ApplyVertexIcons
vtkSmartPointer< vtkPointSetToLabelHierarchy > VertexLabelHierarchy
Filter that generates a polydata consisting of quads with texture coordinates referring to a set of i...
char * EdgeLayoutStrategyName
char * VertexHoverArrayName
vtkSmartPointer< vtkGraphToGlyphs > VertexGlyph
vtkSmartPointer< vtkActor > VertexActor
void PrintSelf(ostream &os, vtkIndent indent)
map scalar values into colors via a lookup table
void SetLayoutStrategyToPassThrough()
vtkSmartPointer< vtkIconGlyphFilter > VertexIconGlyph
void SetLayoutStrategyToCosmicTree()
A node in a selection tree. Used to store selection results.
Adds an attribute array with the degree of each vertex.
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
virtual bool AddToView(vtkView *vtkNotUsed(view))
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkSmartPointer< vtkApplyColors > ApplyColors
char * VertexColorArrayNameInternal
void SetLayoutStrategyToCircular()
static vtkRenderedRepresentation * New()
abstract superclass for all graph layout strategies
vtkSmartPointer< vtkPolyDataMapper > EdgeMapper
vtkSmartPointer< vtkVertexDegree > VertexDegree
convert a vtkGraph to vtkPolyData
Superclass for mapping scalar values to colors.
vtkSmartPointer< vtkEdgeLayout > EdgeLayout
generate points at center of edges
Sets theme colors for a graphical view.
vtkSmartPointer< vtkTexturedActor2D > VertexIconActor
vtkSmartPointer< vtkTransformCoordinateSystems > VertexIconTransform
void SetLayoutStrategyToSpanTree()
The superclass for all views.
void SetLayoutStrategyToCommunity2D()
a simple class to control print indentation
vtkSmartPointer< vtkPointSetToLabelHierarchy > EdgeLabelHierarchy
vtkSmartPointer< vtkGraphLayout > Layout
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
layout a graph in 2 or 3 dimensions
virtual void PrepareForRendering(vtkRenderView *view)
vtkSmartPointer< vtkPolyData > EmptyPolyData
void SetLayoutStrategyToRandom()
void SetLayoutStrategyToTree()
void SetLayoutStrategyToSimple2D()
Perturbs vertices that are coincident.
char * EdgeHoverArrayName
represent text properties.
build a label hierarchy for a graph or point set.
vtkSmartPointer< vtkRemoveHiddenData > RemoveHiddenGraph
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetLayoutStrategyToCone()
map vtkPolyData to graphics primitives
vtkSmartPointer< vtkActor > OutlineActor
char * EdgeColorArrayNameInternal
vtkSmartPointer< vtkActor > EdgeActor
char * LayoutStrategyName
void SetLayoutStrategyToForceDirected()
bool HideVertexLabelsOnInteraction
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
A view containing a renderer.
abstract superclass for all edge layout strategies
vtkSmartPointer< vtkEdgeCenters > EdgeCenters
convert a vtkGraph a set of points.
apply colors to a data set.
void SetLayoutStrategyToFast2D()
char * ScalingArrayNameInternal
vtkSmartPointer< vtkPolyDataMapper > VertexMapper
vtkSmartPointer< vtkGraphToGlyphs > OutlineGlyph
vtkSmartPointer< vtkPolyDataMapper2D > VertexIconMapper
virtual void SetVertexIconSelectionModeToSelectedOffset()
create glyphs for graph vertices
virtual vtkUnicodeString GetHoverTextInternal(vtkSelection *)
virtual void SetVertexIconSelectionModeToAnnotationIcon()
apply icons to a data set.
vtkSmartPointer< vtkPerturbCoincidentVertices > Coincident
draw vtkPolyData onto the image plane
#define VTKVIEWSINFOVIS_EXPORT
String class that stores Unicode text.
Removes the rows/edges/vertices of input data flagged by ann.
void SetEdgeLayoutStrategyToArcParallel()