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-------------------------------------------------------------------------*/
42#ifndef vtkParallelCoordinatesView_h
43#define vtkParallelCoordinatesView_h
44
45#include "vtkRenderView.h"
46#include "vtkViewsInfovisModule.h" // For export macro
47
48class vtkActor2D;
51class vtkPolyData;
53
54class VTKVIEWSINFOVIS_EXPORT vtkParallelCoordinatesView : public vtkRenderView
55{
56public:
59 void PrintSelf(ostream& os, vtkIndent indent) override;
60
61 enum
62 {
63 VTK_BRUSH_LASSO = 0,
67 VTK_BRUSH_MODECOUNT
68 };
69 enum
70 {
71 VTK_BRUSHOPERATOR_ADD = 0,
75 VTK_BRUSHOPERATOR_MODECOUNT
76 };
77 enum
78 {
79 VTK_INSPECT_MANIPULATE_AXES = 0,
81 VTK_INSPECT_MODECOUNT
82 };
83
84 void SetBrushMode(int);
85 void SetBrushModeToLasso() { this->SetBrushMode(VTK_BRUSH_LASSO); }
86 void SetBrushModeToAngle() { this->SetBrushMode(VTK_BRUSH_ANGLE); }
87 void SetBrushModeToFunction() { this->SetBrushMode(VTK_BRUSH_FUNCTION); }
88 void SetBrushModeToAxisThreshold() { this->SetBrushMode(VTK_BRUSH_AXISTHRESHOLD); }
89 vtkGetMacro(BrushMode, int);
90
92 void SetBrushOperatorToAdd() { this->SetBrushOperator(VTK_BRUSHOPERATOR_ADD); }
93 void SetBrushOperatorToSubtract() { this->SetBrushOperator(VTK_BRUSHOPERATOR_SUBTRACT); }
94 void SetBrushOperatorToIntersect() { this->SetBrushOperator(VTK_BRUSHOPERATOR_INTERSECT); }
95 void SetBrushOperatorToReplace() { this->SetBrushOperator(VTK_BRUSHOPERATOR_REPLACE); }
96 vtkGetMacro(BrushOperator, int);
97
98 void SetInspectMode(int);
99 void SetInspectModeToManipulateAxes() { this->SetInspectMode(VTK_INSPECT_MANIPULATE_AXES); }
100 void SetInpsectModeToSelectData() { this->SetInspectMode(VTK_INSPECT_SELECT_DATA); }
101 vtkGetMacro(InspectMode, int);
102
104 vtkGetMacro(MaximumNumberOfBrushPoints, int);
105
106 vtkSetMacro(CurrentBrushClass, int);
107 vtkGetMacro(CurrentBrushClass, int);
108
109 void ApplyViewTheme(vtkViewTheme* theme) override;
110
111protected:
114
116
117 enum
118 {
119 VTK_HIGHLIGHT_CENTER = 0,
121 VTK_HIGHLIGHT_MAX
122 };
126
133
137
140
143
144 void ProcessEvents(vtkObject* caller, unsigned long event, void* callData) override;
146
147 void PrepareForRendering() override;
148
150
153 void Hover(unsigned long event);
154 void ManipulateAxes(unsigned long event);
155 void SelectData(unsigned long event);
156 void Zoom(unsigned long event);
157 void Pan(unsigned long event);
159
164
169
170 int AddLassoBrushPoint(double* p);
171 int SetBrushLine(int line, double* p1, double* p2);
172 void GetBrushLine(int line, vtkIdType& npts, vtkIdType const*& ptids);
173 int SetAngleBrushLine(double* p1, double* p2);
174 int SetFunctionBrushLine1(double* p1, double* p2);
175 int SetFunctionBrushLine2(double* p1, double* p2);
177
178private:
180 void operator=(const vtkParallelCoordinatesView&) = delete;
181};
182
183#endif
a actor that draws 2D data
Definition: vtkActor2D.h:40
Proxy object to connect input/output ports.
The superclass for all representations.
a simple class to control print indentation
Definition: vtkIndent.h:34
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:86
A view containing a renderer.
Definition: vtkRenderView.h:65
Hold a reference to a vtkObjectBase instance.
record modification and/or execution time
Definition: vtkTimeStamp.h:33
Sets theme colors for a graphical view.
Definition: vtkViewTheme.h:43
int vtkIdType
Definition: vtkType.h:332