 |
VTK
9.1.0
|
Go to the documentation of this file.
95 #ifndef vtkRenderedGraphRepresentation_h
96 #define vtkRenderedGraphRepresentation_h
100 #include "vtkViewsInfovisModule.h"
149 vtkBooleanMacro(VertexLabelVisibility,
bool);
152 vtkSetStringMacro(VertexHoverArrayName);
153 vtkGetStringMacro(VertexHoverArrayName);
158 vtkSetMacro(HideVertexLabelsOnInteraction,
bool);
159 vtkGetMacro(HideVertexLabelsOnInteraction,
bool);
160 vtkBooleanMacro(HideVertexLabelsOnInteraction,
bool);
172 vtkBooleanMacro(EdgeLabelVisibility,
bool);
175 vtkSetStringMacro(EdgeHoverArrayName);
176 vtkGetStringMacro(EdgeHoverArrayName);
181 vtkSetMacro(HideEdgeLabelsOnInteraction,
bool);
182 vtkGetMacro(HideEdgeLabelsOnInteraction,
bool);
183 vtkBooleanMacro(HideEdgeLabelsOnInteraction,
bool);
195 vtkBooleanMacro(VertexIconVisibility,
bool);
200 vtkBooleanMacro(UseVertexIconTypeMap,
bool);
226 this->SetVertexIconSelectionMode(3);
239 vtkBooleanMacro(EdgeIconVisibility,
bool);
244 vtkBooleanMacro(UseEdgeIconTypeMap,
bool);
253 vtkBooleanMacro(ColorVerticesByArray,
bool);
262 vtkBooleanMacro(ColorEdgesByArray,
bool);
271 vtkBooleanMacro(EnableVerticesByArray,
bool);
280 vtkBooleanMacro(EnableEdgesByArray,
bool);
286 vtkBooleanMacro(EdgeVisibility,
bool);
307 vtkGetStringMacro(LayoutStrategyName);
331 const char* xarr,
const char* yarr =
nullptr,
const char* zarr =
nullptr);
344 bool radial,
double angle = 90,
double leafSpacing = 0.9,
double logSpacing = 1.0);
357 bool sizeLeafNodesOnly =
true,
int layoutDepth = 0,
vtkIdType layoutRoot = -1);
383 vtkGetStringMacro(EdgeLayoutStrategyName);
408 vtkBooleanMacro(Scaling,
bool);
513 vtkSetStringMacro(VertexColorArrayNameInternal);
514 vtkGetStringMacro(VertexColorArrayNameInternal);
517 vtkSetStringMacro(EdgeColorArrayNameInternal);
518 vtkGetStringMacro(EdgeColorArrayNameInternal);
521 vtkSetStringMacro(ScalingArrayNameInternal);
522 vtkGetStringMacro(ScalingArrayNameInternal);
525 vtkSetStringMacro(LayoutStrategyName);
527 vtkSetStringMacro(EdgeLayoutStrategyName);
map vtkPolyData to graphics primitives
vtkSmartPointer< vtkEdgeCenters > EdgeCenters
Internal filter classes.
vtkSmartPointer< vtkGraphToGlyphs > OutlineGlyph
Internal filter classes.
char * VertexHoverArrayName
convert a vtkGraph to vtkPolyData
virtual void SetEdgeLabelArrayName(const char *name)
void ApplyViewTheme(vtkViewTheme *theme) override
Apply a theme to this representation.
virtual void SetLayoutStrategyToAssignCoordinates(const char *xarr, const char *yarr=nullptr, const char *zarr=nullptr)
Set the layout strategy to use coordinates from arrays.
virtual bool GetUseVertexIconTypeMap()
draw vtkPolyData onto the image plane
virtual void SetEdgeIconAlignment(int align)
virtual const char * GetEdgeIconPriorityArrayName()
std::string GetHoverStringInternal(vtkSelection *sel) override
Subclasses may override this method to generate the hover text.
A view containing a renderer.
virtual const char * GetVertexColorArrayName()
virtual bool GetEdgeScalarBarVisibility()
Vertex/edge scalar bar visibility.
void SetLayoutStrategyToPassThrough()
vtkRenderedGraphRepresentation()
virtual void SetVertexScalarBarVisibility(bool b)
Vertex/edge scalar bar visibility.
virtual vtkEdgeLayoutStrategy * GetEdgeLayoutStrategy()
Set/get the graph layout strategy.
actor that draws 2D data with texture support
Adds an attribute array with the degree of each vertex.
char * EdgeColorArrayNameInternal
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
Internal filter classes.
virtual void SetEdgeScalarBarVisibility(bool b)
Vertex/edge scalar bar visibility.
virtual void SetScaling(bool b)
Set whether to scale vertex glyphs.
virtual int GetGlyphType()
Set the graph vertex glyph type.
void SetLayoutStrategyToForceDirected()
abstract superclass for all graph layout strategies
vtkSmartPointer< vtkApplyColors > ApplyColors
Internal filter classes.
vtkSmartPointer< vtkPolyDataMapper > EdgeMapper
Internal filter classes.
vtkSmartPointer< vtkActor > OutlineActor
Internal filter classes.
virtual void SetEdgeLayoutStrategyToGeo(double explodeFactor=0.2)
Set the edge layout strategy to a geospatial arced strategy appropriate for vtkGeoView.
void SetLayoutStrategyToClustering2D()
char * VertexColorArrayNameInternal
vtkSelection * ConvertSelection(vtkView *view, vtkSelection *sel) override
Convert the selection to a type appropriate for sharing with other representations through vtkAnnotat...
virtual const char * GetEdgeIconArrayName()
vtkSmartPointer< vtkPolyDataMapper > OutlineMapper
Internal filter classes.
virtual void SetEdgeIconArrayName(const char *name)
virtual const char * GetEdgeLabelPriorityArrayName()
virtual void SetColorEdgesByArray(bool b)
vtkSmartPointer< vtkScalarBarWidget > VertexScalarBar
Internal filter classes.
bool HideEdgeLabelsOnInteraction
virtual bool GetEdgeLabelVisibility()
virtual void SetEdgeLabelTextProperty(vtkTextProperty *p)
virtual bool GetEdgeIconVisibility()
virtual void SetVertexSelectedIcon(int icon)
apply colors to a data set.
void SetLayoutStrategyToCommunity2D()
vtkSmartPointer< vtkPointSetToLabelHierarchy > VertexLabelHierarchy
Internal filter classes.
virtual void AddVertexIconType(const char *name, int type)
vtkSmartPointer< vtkPointSetToLabelHierarchy > EdgeLabelHierarchy
Internal filter classes.
virtual void SetVertexColorArrayName(const char *name)
data object that represents a "selection" in VTK.
virtual const char * GetEnabledEdgesArrayName()
virtual const char * GetScalingArrayName()
Set the glyph scaling array name.
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
virtual void SetVertexIconVisibility(bool b)
vtkSmartPointer< vtkPolyDataMapper > VertexMapper
Internal filter classes.
virtual void SetEdgeLayoutStrategy(const char *name)
Set the edge layout strategy by name.
char * ScalingArrayNameInternal
bool RemoveFromView(vtkView *view) override
Called by the view to add/remove this representation.
vtkSmartPointer< vtkPolyDataMapper2D > VertexIconMapper
Internal filter classes.
virtual vtkTextProperty * GetVertexLabelTextProperty()
virtual void SetLayoutStrategyToTree(bool radial, double angle=90, double leafSpacing=0.9, double logSpacing=1.0)
Set the layout strategy to a tree layout.
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
bool AddToView(vtkView *view) override
Called by the view to add/remove this representation.
virtual vtkScalarBarWidget * GetVertexScalarBar()
Obtain the scalar bar widget used to draw a legend for the vertices/edges.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Connect inputs to internal pipeline.
virtual int GetVertexIconSelectionMode()
Set the mode to one of.
void SetLayoutStrategyToCosmicTree()
virtual void SetEdgeIconVisibility(bool b)
vtkSmartPointer< vtkActor > VertexActor
Internal filter classes.
virtual void SetVertexIconSelectionModeToSelectedOffset()
Set the mode to one of.
virtual void SetEnabledEdgesArrayName(const char *name)
void SetLayoutStrategyToSimple2D()
vtkSmartPointer< vtkGraphToPoints > VertexIconPoints
Internal filter classes.
virtual void SetVertexIconSelectionModeToIgnoreSelection()
Set the mode to one of.
virtual const char * GetVertexIconPriorityArrayName()
virtual int GetVertexIconAlignment()
virtual bool GetEdgeVisibility()
virtual void SetVertexIconSelectionModeToSelectedIcon()
Set the mode to one of.
vtkSmartPointer< vtkGraphToPolyData > GraphToPoly
Internal filter classes.
virtual bool GetVertexScalarBarVisibility()
Vertex/edge scalar bar visibility.
virtual void SetVertexIconPriorityArrayName(const char *name)
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)
Set the glyph scaling array name.
virtual bool GetVertexIconVisibility()
vtkSmartPointer< vtkGraphToPoints > GraphToPoints
Internal filter classes.
virtual bool GetEnableVerticesByArray()
virtual void ClearVertexIconTypes()
virtual void SetLayoutStrategy(const char *name)
Get/set the layout strategy by name.
virtual void SetEdgeColorArrayName(const char *name)
build a label hierarchy for a graph or point set.
virtual vtkGraphLayoutStrategy * GetLayoutStrategy()
Set/get the graph layout strategy.
virtual void SetEnableVerticesByArray(bool b)
virtual void SetEdgeLayoutStrategy(vtkEdgeLayoutStrategy *strategy)
Set/get the graph layout strategy.
virtual void SetVertexDefaultIcon(int icon)
vtkSmartPointer< vtkTransformCoordinateSystems > VertexIconTransform
Internal filter classes.
virtual int GetVertexSelectedIcon()
vtkSmartPointer< vtkEdgeLayout > EdgeLayout
Internal filter classes.
Superclass for mapping scalar values to colors.
virtual bool IsLayoutComplete()
Whether the current graph layout is complete.
void SetLayoutStrategyToFast2D()
void ComputeSelectedGraphBounds(double bounds[6])
Compute the bounding box of the selected subgraph.
virtual vtkScalarBarWidget * GetEdgeScalarBar()
Obtain the scalar bar widget used to draw a legend for the vertices/edges.
virtual void SetVertexLabelPriorityArrayName(const char *name)
virtual void SetVertexIconArrayName(const char *name)
virtual bool GetScaling()
Set whether to scale vertex glyphs.
void SetLayoutStrategyToSpanTree()
virtual int GetVertexDefaultIcon()
vtkSmartPointer< vtkApplyIcons > ApplyVertexIcons
Internal filter classes.
virtual void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
Set/get the graph layout strategy.
represent text properties.
virtual void SetVertexLabelArrayName(const char *name)
map scalar values into colors via a lookup table
virtual void SetVertexIconAlignment(int align)
vtkSmartPointer< vtkGraphToGlyphs > VertexGlyph
Internal filter classes.
vtkSmartPointer< vtkGraphLayout > Layout
Internal filter classes.
virtual bool GetVertexLabelVisibility()
virtual void SetUseEdgeIconTypeMap(bool b)
virtual void SetEdgeIconPriorityArrayName(const char *name)
virtual void ClearEdgeIconTypes()
virtual void SetVertexIconSelectionModeToAnnotationIcon()
Set the mode to one of.
virtual void SetEdgeLabelPriorityArrayName(const char *name)
virtual vtkTextProperty * GetEdgeLabelTextProperty()
virtual void SetGlyphType(int type)
Set the graph vertex glyph type.
Removes the rows/edges/vertices of input data flagged by ann.
virtual void SetEnableEdgesByArray(bool b)
vtkSmartPointer< vtkIconGlyphFilter > VertexIconGlyph
Internal filter classes.
virtual void UpdateLayout()
Performs another iteration on the graph layout.
virtual void SetLayoutStrategyToCosmicTree(const char *nodeSizeArrayName, bool sizeLeafNodesOnly=true, int layoutDepth=0, vtkIdType layoutRoot=-1)
Set the layout strategy to a cosmic tree layout.
vtkSmartPointer< vtkPerturbCoincidentVertices > Coincident
Internal filter classes.
~vtkRenderedGraphRepresentation() override
void SetLayoutStrategyToTree()
virtual void SetVertexIconSelectionMode(int mode)
Set the mode to one of.
virtual bool GetColorEdgesByArray()
void SetEdgeLayoutStrategyToArcParallel()
Set/get the graph layout strategy.
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetEdgeSelection(bool b)
virtual const char * GetEdgeLabelArrayName()
vtkSmartPointer< vtkRemoveHiddenData > RemoveHiddenGraph
Internal filter classes.
virtual const char * GetVertexLabelPriorityArrayName()
virtual void SetEdgeLabelVisibility(bool b)
abstract superclass for all edge layout strategies
void SetLayoutStrategyToCircular()
virtual void SetColorVerticesByArray(bool b)
virtual void SetEnabledVerticesArrayName(const char *name)
virtual void SetVertexLabelTextProperty(vtkTextProperty *p)
virtual void SetUseVertexIconTypeMap(bool b)
void PrepareForRendering(vtkRenderView *view) override
The view will call this method before every render.
generate points at center of edges
virtual const char * GetEnabledVerticesArrayName()
char * LayoutStrategyName
void SetLayoutStrategyToCone()
virtual void SetVertexLabelVisibility(bool b)
void SetEdgeLayoutStrategyToPassThrough()
Set/get the graph layout strategy.
vtkSmartPointer< vtkActor > EdgeActor
Internal filter classes.
vtkSmartPointer< vtkTexturedActor2D > VertexIconActor
Internal filter classes.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
layout a graph in 2 or 3 dimensions
vtkSmartPointer< vtkPolyData > EmptyPolyData
Internal filter classes.
void SetLayoutStrategyToRandom()
Set predefined layout strategies.
virtual bool GetEnableEdgesByArray()
vtkSmartPointer< vtkVertexDegree > VertexDegree
Internal filter classes.
virtual const char * GetVertexLabelArrayName()
virtual const char * GetVertexIconArrayName()
virtual void SetEdgeVisibility(bool b)
virtual bool GetUseEdgeIconTypeMap()
apply icons to a data set.
static vtkRenderedGraphRepresentation * New()