Evita  0.16
evVisualizer2DVector.h
Go to the documentation of this file.
1 /*
2  *
3  * EVITA: Efficient Visualization of Terascale Datasets
4  * Copyright (C) 2000-2016 Team Evita
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
19  * MA 02139, USA.
20  *
21  */
22 
23 
24 #ifndef __evVisualizer2DVector_h
25 #define __evVisualizer2DVector_h
26 
27 
28 #include "evVisualizer2D.h"
29 #include "vtkLookupTable.h"
30 
31 
33 {
34 public:
36  virtual ~evVisualizer2DVector(void);
37 
38  virtual const evString GetClassName(void) const
39  {
40  return(evString("evVisualizer2DVector"));
41  }
42 
43  int Setup(evGUIVisualizerWindow &visualizer_window);
44  int SetupProp(evROI *roi, const unsigned int component);
45  int SetRenderBuffer(evROI *roi, const unsigned int component);
46 
47 protected:
48 
49 private:
50  vtkLookupTable *LookupTable;
51  static void CalcColor(const double vector_magnitude,
52  const double vector_angle,
53  double &red,
54  double &green,
55  double &blue);
56  QccSQScalarQuantizer MagnitudeQuantizer;
57  QccSQScalarQuantizer AngleQuantizer;
58 };
59 
60 
62 {
63  this->LookupTable = NULL;
64  QccSQScalarQuantizerInitialize(&this->MagnitudeQuantizer);
65  QccSQScalarQuantizerInitialize(&this->AngleQuantizer);
66 }
67 
68 
70 {
71  if (this->LookupTable)
72  this->LookupTable->Delete();
73  QccSQScalarQuantizerFree(&this->MagnitudeQuantizer);
74  QccSQScalarQuantizerFree(&this->AngleQuantizer);
75 }
76 
77 
78 #endif
79 
virtual const evString GetClassName(void) const
Definition: evVisualizer2DVector.h:38
static void CalcColor(const double vector_magnitude, const double vector_angle, double &red, double &green, double &blue)
Definition: evVisualizer2DVector.h:32
vtkLookupTable * LookupTable
Definition: evVisualizer2DVector.h:50
Definition: evVisualizer2D.h:32
int SetRenderBuffer(evROI *roi, const unsigned int component)
Definition: evGUIVisualizerWindow.h:39
int Setup(evGUIVisualizerWindow &visualizer_window)
QccSQScalarQuantizer MagnitudeQuantizer
Definition: evVisualizer2DVector.h:56
int SetupProp(evROI *roi, const unsigned int component)
Definition: evROI.h:40
evVisualizer2DVector(void)
Definition: evVisualizer2DVector.h:61
QccSQScalarQuantizer AngleQuantizer
Definition: evVisualizer2DVector.h:57
Definition: evString.h:30
virtual ~evVisualizer2DVector(void)
Definition: evVisualizer2DVector.h:69