VTK  9.3.0
vtkParallelCoordinatesView.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2009 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
29#ifndef vtkParallelCoordinatesView_h
30#define vtkParallelCoordinatesView_h
31
32#include "vtkRenderView.h"
33#include "vtkViewsInfovisModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkActor2D;
39class vtkPolyData;
41
42class VTKVIEWSINFOVIS_EXPORT vtkParallelCoordinatesView : public vtkRenderView
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent) override;
48
49 enum
50 {
51 VTK_BRUSH_LASSO = 0,
55 VTK_BRUSH_MODECOUNT
56 };
57 enum
58 {
59 VTK_BRUSHOPERATOR_ADD = 0,
63 VTK_BRUSHOPERATOR_MODECOUNT
64 };
65 enum
66 {
67 VTK_INSPECT_MANIPULATE_AXES = 0,
69 VTK_INSPECT_MODECOUNT
70 };
71
72 void SetBrushMode(int);
73 void SetBrushModeToLasso() { this->SetBrushMode(VTK_BRUSH_LASSO); }
74 void SetBrushModeToAngle() { this->SetBrushMode(VTK_BRUSH_ANGLE); }
75 void SetBrushModeToFunction() { this->SetBrushMode(VTK_BRUSH_FUNCTION); }
76 void SetBrushModeToAxisThreshold() { this->SetBrushMode(VTK_BRUSH_AXISTHRESHOLD); }
77 vtkGetMacro(BrushMode, int);
78
80 void SetBrushOperatorToAdd() { this->SetBrushOperator(VTK_BRUSHOPERATOR_ADD); }
81 void SetBrushOperatorToSubtract() { this->SetBrushOperator(VTK_BRUSHOPERATOR_SUBTRACT); }
82 void SetBrushOperatorToIntersect() { this->SetBrushOperator(VTK_BRUSHOPERATOR_INTERSECT); }
83 void SetBrushOperatorToReplace() { this->SetBrushOperator(VTK_BRUSHOPERATOR_REPLACE); }
84 vtkGetMacro(BrushOperator, int);
85
86 void SetInspectMode(int);
87 void SetInspectModeToManipulateAxes() { this->SetInspectMode(VTK_INSPECT_MANIPULATE_AXES); }
88 void SetInpsectModeToSelectData() { this->SetInspectMode(VTK_INSPECT_SELECT_DATA); }
89 vtkGetMacro(InspectMode, int);
90
92 vtkGetMacro(MaximumNumberOfBrushPoints, int);
93
94 vtkSetMacro(CurrentBrushClass, int);
95 vtkGetMacro(CurrentBrushClass, int);
96
97 void ApplyViewTheme(vtkViewTheme* theme) override;
98
99protected:
102
104
105 enum
106 {
107 VTK_HIGHLIGHT_CENTER = 0,
109 VTK_HIGHLIGHT_MAX
110 };
114
121
125
128
131
132 void ProcessEvents(vtkObject* caller, unsigned long event, void* callData) override;
134
135 void PrepareForRendering() override;
136
138
141 void Hover(unsigned long event);
142 void ManipulateAxes(unsigned long event);
143 void SelectData(unsigned long event);
144 void Zoom(unsigned long event);
145 void Pan(unsigned long event);
147
152
157
158 int AddLassoBrushPoint(double* p);
159 int SetBrushLine(int line, double* p1, double* p2);
160 void GetBrushLine(int line, vtkIdType& npts, vtkIdType const*& ptids);
161 int SetAngleBrushLine(double* p1, double* p2);
162 int SetFunctionBrushLine1(double* p1, double* p2);
163 int SetFunctionBrushLine2(double* p1, double* p2);
165
166private:
168 void operator=(const vtkParallelCoordinatesView&) = delete;
169};
170
171VTK_ABI_NAMESPACE_END
172#endif
a actor that draws 2D data
Definition vtkActor2D.h:35
Proxy object to connect input/output ports.
The superclass for all representations.
a simple class to control print indentation
Definition vtkIndent.h:29
abstract base class for most VTK objects
Definition vtkObject.h:49
create wireframe outline around bounding box
Data representation that takes generic multivariate data and produces a parallel coordinates plot.
view to be used with vtkParallelCoordinatesRepresentation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ProcessEvents(vtkObject *caller, unsigned long event, void *callData) override
Called to process events.
vtkSmartPointer< vtkPolyData > BrushData
void Zoom(unsigned long event)
Handle axis manipulation.
vtkSmartPointer< vtkPolyDataMapper2D > HighlightMapper
vtkSmartPointer< vtkPolyDataMapper2D > BrushMapper
~vtkParallelCoordinatesView() override
void SetMaximumNumberOfBrushPoints(int)
int SetFunctionBrushLine1(double *p1, double *p2)
void SelectData(unsigned long event)
Handle axis manipulation.
void Hover(unsigned long event)
Handle axis manipulation.
int SetAxisHighlightPosition(vtkParallelCoordinatesRepresentation *rep, double position)
Set the highlight position using normalized viewport coordinates.
void ApplyViewTheme(vtkViewTheme *theme) override
vtkSmartPointer< vtkActor2D > HighlightActor
void PrepareForRendering() override
Called by the view when the renderer is about to render.
vtkSmartPointer< vtkActor2D > BrushActor
void ManipulateAxes(unsigned long event)
Handle axis manipulation.
int SetAngleBrushLine(double *p1, double *p2)
void GetBrushLine(int line, vtkIdType &npts, vtkIdType const *&ptids)
vtkSmartPointer< vtkOutlineSource > HighlightSource
static vtkParallelCoordinatesView * New()
void Pan(unsigned long event)
Handle axis manipulation.
int SetAxisHighlightPosition(vtkParallelCoordinatesRepresentation *rep, int position)
Set/Get the position of axis highlights.
int SetBrushLine(int line, double *p1, double *p2)
int SetFunctionBrushLine2(double *p1, double *p2)
int AddLassoBrushPoint(double *p)
vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn) override
Create a default vtkDataRepresentation for the given vtkAlgorithmOutput.
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
A view containing a renderer.
Hold a reference to a vtkObjectBase instance.
record modification and/or execution time
Sets theme colors for a graphical view.
int vtkIdType
Definition vtkType.h:315