VTK  9.1.0
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-------------------------------------------------------------------------*/
51#ifndef vtkParallelCoordinatesView_h
52#define vtkParallelCoordinatesView_h
53
54#include "vtkRenderView.h"
55#include "vtkViewsInfovisModule.h" // For export macro
56
57class vtkActor2D;
60class vtkPolyData;
62
63class VTKVIEWSINFOVIS_EXPORT vtkParallelCoordinatesView : public vtkRenderView
64{
65public:
68 void PrintSelf(ostream& os, vtkIndent indent) override;
69
70 enum
71 {
72 VTK_BRUSH_LASSO = 0,
76 VTK_BRUSH_MODECOUNT
77 };
78 enum
79 {
80 VTK_BRUSHOPERATOR_ADD = 0,
84 VTK_BRUSHOPERATOR_MODECOUNT
85 };
86 enum
87 {
88 VTK_INSPECT_MANIPULATE_AXES = 0,
90 VTK_INSPECT_MODECOUNT
91 };
92
93 void SetBrushMode(int);
94 void SetBrushModeToLasso() { this->SetBrushMode(VTK_BRUSH_LASSO); }
95 void SetBrushModeToAngle() { this->SetBrushMode(VTK_BRUSH_ANGLE); }
96 void SetBrushModeToFunction() { this->SetBrushMode(VTK_BRUSH_FUNCTION); }
97 void SetBrushModeToAxisThreshold() { this->SetBrushMode(VTK_BRUSH_AXISTHRESHOLD); }
98 vtkGetMacro(BrushMode, int);
99
101 void SetBrushOperatorToAdd() { this->SetBrushOperator(VTK_BRUSHOPERATOR_ADD); }
102 void SetBrushOperatorToSubtract() { this->SetBrushOperator(VTK_BRUSHOPERATOR_SUBTRACT); }
103 void SetBrushOperatorToIntersect() { this->SetBrushOperator(VTK_BRUSHOPERATOR_INTERSECT); }
104 void SetBrushOperatorToReplace() { this->SetBrushOperator(VTK_BRUSHOPERATOR_REPLACE); }
105 vtkGetMacro(BrushOperator, int);
106
107 void SetInspectMode(int);
108 void SetInspectModeToManipulateAxes() { this->SetInspectMode(VTK_INSPECT_MANIPULATE_AXES); }
109 void SetInpsectModeToSelectData() { this->SetInspectMode(VTK_INSPECT_SELECT_DATA); }
110 vtkGetMacro(InspectMode, int);
111
113 vtkGetMacro(MaximumNumberOfBrushPoints, int);
114
115 vtkSetMacro(CurrentBrushClass, int);
116 vtkGetMacro(CurrentBrushClass, int);
117
118 void ApplyViewTheme(vtkViewTheme* theme) override;
119
120protected:
123
125
126 enum
127 {
128 VTK_HIGHLIGHT_CENTER = 0,
130 VTK_HIGHLIGHT_MAX
131 };
135
142
146
149
152
153 void ProcessEvents(vtkObject* caller, unsigned long event, void* callData) override;
155
156 void PrepareForRendering() override;
157
159
162 void Hover(unsigned long event);
163 void ManipulateAxes(unsigned long event);
164 void SelectData(unsigned long event);
165 void Zoom(unsigned long event);
166 void Pan(unsigned long event);
168
173
178
179 int AddLassoBrushPoint(double* p);
180 int SetBrushLine(int line, double* p1, double* p2);
181 void GetBrushLine(int line, vtkIdType& npts, vtkIdType const*& ptids);
182 int SetAngleBrushLine(double* p1, double* p2);
183 int SetFunctionBrushLine1(double* p1, double* p2);
184 int SetFunctionBrushLine2(double* p1, double* p2);
186
187private:
189 void operator=(const vtkParallelCoordinatesView&) = delete;
190};
191
192#endif
a actor that draws 2D data
Definition: vtkActor2D.h:49
Proxy object to connect input/output ports.
The superclass for all representations.
a simple class to control print indentation
Definition: vtkIndent.h:43
abstract base class for most VTK objects
Definition: vtkObject.h:63
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:95
A view containing a renderer.
Definition: vtkRenderView.h:68
record modification and/or execution time
Definition: vtkTimeStamp.h:42
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:52
@ position
Definition: vtkX3D.h:267
int vtkIdType
Definition: vtkType.h:332