VTK  9.2.6
vtkParallelCoordinatesView.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkParallelCoordinatesView.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2009 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19-------------------------------------------------------------------------*/
54#ifndef vtkParallelCoordinatesView_h
55#define vtkParallelCoordinatesView_h
56
57#include "vtkRenderView.h"
58#include "vtkViewsInfovisModule.h" // For export macro
59
60class vtkActor2D;
63class vtkPolyData;
65
66class VTKVIEWSINFOVIS_EXPORT vtkParallelCoordinatesView : public vtkRenderView
67{
68public:
71 void PrintSelf(ostream& os, vtkIndent indent) override;
72
73 enum
74 {
75 VTK_BRUSH_LASSO = 0,
79 VTK_BRUSH_MODECOUNT
80 };
81 enum
82 {
83 VTK_BRUSHOPERATOR_ADD = 0,
87 VTK_BRUSHOPERATOR_MODECOUNT
88 };
89 enum
90 {
91 VTK_INSPECT_MANIPULATE_AXES = 0,
93 VTK_INSPECT_MODECOUNT
94 };
95
96 void SetBrushMode(int);
97 void SetBrushModeToLasso() { this->SetBrushMode(VTK_BRUSH_LASSO); }
98 void SetBrushModeToAngle() { this->SetBrushMode(VTK_BRUSH_ANGLE); }
99 void SetBrushModeToFunction() { this->SetBrushMode(VTK_BRUSH_FUNCTION); }
100 void SetBrushModeToAxisThreshold() { this->SetBrushMode(VTK_BRUSH_AXISTHRESHOLD); }
101 vtkGetMacro(BrushMode, int);
102
104 void SetBrushOperatorToAdd() { this->SetBrushOperator(VTK_BRUSHOPERATOR_ADD); }
105 void SetBrushOperatorToSubtract() { this->SetBrushOperator(VTK_BRUSHOPERATOR_SUBTRACT); }
106 void SetBrushOperatorToIntersect() { this->SetBrushOperator(VTK_BRUSHOPERATOR_INTERSECT); }
107 void SetBrushOperatorToReplace() { this->SetBrushOperator(VTK_BRUSHOPERATOR_REPLACE); }
108 vtkGetMacro(BrushOperator, int);
109
110 void SetInspectMode(int);
111 void SetInspectModeToManipulateAxes() { this->SetInspectMode(VTK_INSPECT_MANIPULATE_AXES); }
112 void SetInpsectModeToSelectData() { this->SetInspectMode(VTK_INSPECT_SELECT_DATA); }
113 vtkGetMacro(InspectMode, int);
114
116 vtkGetMacro(MaximumNumberOfBrushPoints, int);
117
118 vtkSetMacro(CurrentBrushClass, int);
119 vtkGetMacro(CurrentBrushClass, int);
120
121 void ApplyViewTheme(vtkViewTheme* theme) override;
122
123protected:
126
128
129 enum
130 {
131 VTK_HIGHLIGHT_CENTER = 0,
133 VTK_HIGHLIGHT_MAX
134 };
138
145
149
152
155
156 void ProcessEvents(vtkObject* caller, unsigned long event, void* callData) override;
158
159 void PrepareForRendering() override;
160
162
165 void Hover(unsigned long event);
166 void ManipulateAxes(unsigned long event);
167 void SelectData(unsigned long event);
168 void Zoom(unsigned long event);
169 void Pan(unsigned long event);
171
176
181
182 int AddLassoBrushPoint(double* p);
183 int SetBrushLine(int line, double* p1, double* p2);
184 void GetBrushLine(int line, vtkIdType& npts, vtkIdType const*& ptids);
185 int SetAngleBrushLine(double* p1, double* p2);
186 int SetFunctionBrushLine1(double* p1, double* p2);
187 int SetFunctionBrushLine2(double* p1, double* p2);
189
190private:
192 void operator=(const vtkParallelCoordinatesView&) = delete;
193};
194
195#endif
a actor that draws 2D data
Definition vtkActor2D.h:55
Proxy object to connect input/output ports.
The superclass for all representations.
a simple class to control print indentation
Definition vtkIndent.h:49
abstract base class for most VTK objects
Definition vtkObject.h:72
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
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:332