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-------------------------------------------------------------------------*/
41
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 {
68 };
69 enum
70 {
76 };
77 enum
78 {
82 };
83
84 void SetBrushMode(int);
89 vtkGetMacro(BrushMode, int);
90
96 vtkGetMacro(BrushOperator, int);
97
98 void SetInspectMode(int);
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 {
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:57
create wireframe outline around bounding box
Data representation that takes generic multivariate data and produces a parallel coordinates plot.
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:85
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