Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkTransformVisualizerGlyph3D.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  This file was originally developed by Andras Lasso and Franklin King at
17  PerkLab, Queen's University and was supported through the Applied Cancer
18  Research Unit program of Cancer Care Ontario with funds provided by the
19  Ontario Ministry of Health and Long-Term Care.
20 
21 ==============================================================================*/
22 
23 #ifndef __vtkTransformVisualizerGlyph3D_h
24 #define __vtkTransformVisualizerGlyph3D_h
25 
26 #include "vtkSlicerBaseLogic.h"
27 
28 #include "vtkGlyph3D.h"
29 
45 class VTK_SLICER_BASE_LOGIC_EXPORT vtkTransformVisualizerGlyph3D : public vtkGlyph3D
46 {
47 public:
48  vtkTypeMacro(vtkTransformVisualizerGlyph3D,vtkGlyph3D);
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50  static vtkTransformVisualizerGlyph3D *New();
51 
54  vtkSetMacro(ScaleDirectional,bool);
55  vtkGetMacro(ScaleDirectional,bool);
56 
59  void SetVectorArray(const char* vectorArrayName);
60 
63  void SetScalarArray(const char* scalarArrayName);
64 
67  void SetColorArray(const char* colorArrayName);
68 
70  vtkSetMacro(MagnitudeThresholding,bool);
71  vtkGetMacro(MagnitudeThresholding,bool);
72 
74  vtkSetMacro(MagnitudeThresholdLower,double);
75  vtkGetMacro(MagnitudeThresholdLower,double);
76 
78  vtkSetMacro(MagnitudeThresholdUpper,double);
79  vtkGetMacro(MagnitudeThresholdUpper,double);
80 
81 protected:
83  ~vtkTransformVisualizerGlyph3D() override = default;
84 
86 
90 
91  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
92 
93 private:
95  void operator=(const vtkTransformVisualizerGlyph3D&) = delete;
96 };
97 
98 #endif
Specialized glyph3d filter optimized for visualizing transforms.