31 #ifndef __vtkRenderedTreeAreaRepresentation_h
32 #define __vtkRenderedTreeAreaRepresentation_h
34 #include "vtkViewsInfovisModule.h"
40 class vtkAreaLayoutStrategy;
41 class vtkConvertSelection;
43 class vtkExtractSelectedPolyDataIds;
44 class vtkLabeledDataMapper;
45 class vtkPointSetToLabelHierarchy;
47 class vtkPolyDataAlgorithm;
48 class vtkPolyDataMapper;
49 class vtkScalarBarWidget;
50 class vtkTextProperty;
51 class vtkTreeFieldAggregator;
52 class vtkTreeLevelsFilter;
53 class vtkVertexDegree;
54 class vtkWorldPointPicker;
61 void PrintSelf(ostream& os, vtkIndent indent);
70 virtual void SetAreaLabelArrayName(
const char* name);
71 virtual const char* GetAreaLabelArrayName();
76 virtual void SetAreaSizeArrayName(
const char* name);
77 virtual const char* GetAreaSizeArrayName();
83 virtual void SetAreaLabelPriorityArrayName(
const char* name);
84 virtual const char* GetAreaLabelPriorityArrayName();
90 { this->SetGraphEdgeLabelArrayName(name, 0); }
91 virtual void SetGraphEdgeLabelArrayName(
const char* name,
int idx);
93 {
return this->GetGraphEdgeLabelArrayName(0); }
94 virtual const char* GetGraphEdgeLabelArrayName(
int idx);
100 { this->SetGraphEdgeLabelTextProperty(tp, 0); }
101 virtual void SetGraphEdgeLabelTextProperty(vtkTextProperty* tp,
int idx);
103 {
return this->GetGraphEdgeLabelTextProperty(0); }
104 virtual vtkTextProperty* GetGraphEdgeLabelTextProperty(
int idx);
110 vtkSetStringMacro(AreaHoverArrayName);
111 vtkGetStringMacro(AreaHoverArrayName);
116 virtual void SetAreaLabelVisibility(
bool vis);
117 virtual bool GetAreaLabelVisibility();
118 vtkBooleanMacro(AreaLabelVisibility,
bool);
123 virtual void SetAreaLabelTextProperty(vtkTextProperty* tp);
124 virtual vtkTextProperty* GetAreaLabelTextProperty();
130 { this->SetGraphEdgeLabelVisibility(vis, 0); }
131 virtual void SetGraphEdgeLabelVisibility(
bool vis,
int idx);
133 {
return this->GetGraphEdgeLabelVisibility(0); }
134 virtual bool GetGraphEdgeLabelVisibility(
int idx);
135 vtkBooleanMacro(GraphEdgeLabelVisibility,
bool);
140 void SetAreaColorArrayName(
const char* name);
141 const char* GetAreaColorArrayName();
146 virtual void SetColorAreasByArray(
bool vis);
147 virtual bool GetColorAreasByArray();
148 vtkBooleanMacro(ColorAreasByArray,
bool);
154 { this->SetGraphEdgeColorArrayName(name, 0); }
155 virtual void SetGraphEdgeColorArrayName(
const char* name,
int idx);
157 {
return this->GetGraphEdgeColorArrayName(0); }
158 virtual const char* GetGraphEdgeColorArrayName(
int idx);
164 { this->SetGraphEdgeColorToSplineFraction(0); }
165 virtual void SetGraphEdgeColorToSplineFraction(
int idx);
171 { this->SetColorGraphEdgesByArray(vis, 0); }
172 virtual void SetColorGraphEdgesByArray(
bool vis,
int idx);
174 {
return this->GetColorGraphEdgesByArray(0); }
175 virtual bool GetColorGraphEdgesByArray(
int idx);
176 vtkBooleanMacro(ColorGraphEdgesByArray,
bool);
183 { this->SetGraphHoverArrayName(name, 0); }
184 virtual void SetGraphHoverArrayName(
const char* name,
int idx);
186 {
return this->GetGraphHoverArrayName(0); }
187 virtual const char* GetGraphHoverArrayName(
int idx);
192 virtual void SetShrinkPercentage(
double value);
193 virtual double GetShrinkPercentage();
199 { this->SetGraphBundlingStrength(strength, 0); }
200 virtual void SetGraphBundlingStrength(
double strength,
int idx);
202 {
return this->GetGraphBundlingStrength(0); }
203 virtual double GetGraphBundlingStrength(
int idx);
210 virtual void SetGraphSplineType(
int type,
int idx);
211 virtual int GetGraphSplineType(
int idx);
216 virtual void SetAreaLayoutStrategy(vtkAreaLayoutStrategy* strategy);
217 virtual vtkAreaLayoutStrategy* GetAreaLayoutStrategy();
224 virtual void SetAreaToPolyData(vtkPolyDataAlgorithm* areaToPoly);
225 vtkGetObjectMacro(AreaToPolyData, vtkPolyDataAlgorithm);
230 vtkSetMacro(UseRectangularCoordinates,
bool);
231 vtkGetMacro(UseRectangularCoordinates,
bool);
232 vtkBooleanMacro(UseRectangularCoordinates,
bool);
238 virtual void SetAreaLabelMapper(vtkLabeledDataMapper* mapper);
239 vtkGetObjectMacro(AreaLabelMapper, vtkLabeledDataMapper);
247 virtual void SetEdgeScalarBarVisibility(
bool b);
248 virtual bool GetEdgeScalarBarVisibility();
263 virtual int FillInputPortInformation(
int port, vtkInformation* info);
267 vtkInformationVector**,
268 vtkInformationVector*);
272 bool ValidIndex(
int idx);
274 void UpdateHoverHighlight(
vtkView* view,
int x,
int y);
284 vtkSmartPointer<vtkWorldPointPicker>
Picker;
303 vtkSetStringMacro(AreaSizeArrayNameInternal);
304 vtkGetStringMacro(AreaSizeArrayNameInternal);
306 vtkSetStringMacro(AreaColorArrayNameInternal);
307 vtkGetStringMacro(AreaColorArrayNameInternal);
309 vtkSetStringMacro(AreaLabelArrayNameInternal);
310 vtkGetStringMacro(AreaLabelArrayNameInternal);
312 vtkSetStringMacro(AreaLabelPriorityArrayNameInternal);
313 vtkGetStringMacro(AreaLabelPriorityArrayNameInternal);
315 vtkSetStringMacro(GraphEdgeColorArrayNameInternal);
316 vtkGetStringMacro(GraphEdgeColorArrayNameInternal);
318 vtkGetStringMacro(AreaHoverTextInternal);
319 vtkSetStringMacro(AreaHoverTextInternal);
virtual bool GetGraphEdgeLabelVisibility()
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
virtual void SetGraphEdgeLabelTextProperty(vtkTextProperty *tp)
virtual vtkSelection * ConvertSelection(vtkView *view, vtkSelection *selection)
char * AreaColorArrayNameInternal
vtkSmartPointer< vtkWorldPointPicker > Picker
virtual void SetGraphHoverArrayName(const char *name)
vtkSmartPointer< vtkApplyColors > ApplyColors
vtkSmartPointer< vtkPolyDataMapper > HighlightMapper
virtual void SetGraphEdgeColorToSplineFraction()
char * GraphEdgeColorArrayNameInternal
virtual const char * GetGraphEdgeColorArrayName()
vtkSmartPointer< vtkTreeLevelsFilter > TreeLevels
vtkLabeledDataMapper * AreaLabelMapper
virtual void SetGraphEdgeLabelArrayName(const char *name)
char * AreaHoverArrayName
void PrintSelf(ostream &os, vtkIndent indent)
vtkSmartPointer< vtkScalarBarWidget > EdgeScalarBar
vtkSmartPointer< vtkTreeFieldAggregator > TreeAggregation
virtual void SetLabelRenderMode(int)
virtual bool AddToView(vtkView *vtkNotUsed(view))
static vtkRenderedRepresentation * New()
char * AreaHoverTextInternal
char * AreaLabelPriorityArrayNameInternal
vtkSmartPointer< vtkPolyData > HighlightData
vtkSmartPointer< vtkActor2D > AreaLabelActor
vtkSmartPointer< vtkPolyDataMapper > AreaMapper
virtual double GetGraphBundlingStrength()
Sets theme colors for a graphical view.
The superclass for all views.
virtual vtkTextProperty * GetGraphEdgeLabelTextProperty()
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
bool UseRectangularCoordinates
virtual void PrepareForRendering(vtkRenderView *view)
virtual void SetGraphBundlingStrength(double strength)
virtual const char * GetGraphEdgeLabelArrayName()
vtkSmartPointer< vtkActor > HighlightActor
virtual void SetColorGraphEdgesByArray(bool vis)
vtkSmartPointer< vtkActor > AreaActor
vtkPolyDataAlgorithm * AreaToPolyData
virtual bool GetColorGraphEdgesByArray()
virtual void SetGraphEdgeColorArrayName(const char *name)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkSmartPointer< vtkVertexDegree > VertexDegree
Internals * Implementation
A view containing a renderer.
virtual const char * GetGraphHoverArrayName()
vtkSmartPointer< vtkPointSetToLabelHierarchy > AreaLabelHierarchy
char * AreaLabelArrayNameInternal
vtkSmartPointer< vtkAreaLayout > AreaLayout
virtual vtkUnicodeString GetHoverTextInternal(vtkSelection *)
vtkSmartPointer< vtkPolyData > EmptyPolyData
virtual void SetGraphEdgeLabelVisibility(bool vis)
char * AreaSizeArrayNameInternal