vtkOMETIFFChannelCalculator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkOMETIFFChannelCalculator.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkOMETIFFChannelCalculator_h
26 #define vtkOMETIFFChannelCalculator_h
27 
28 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
30 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
31 
32 #include <map> // needed for map
33 
35 class vtkScalarsToColors;
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  vtkGetObjectMacro(ChannelSelection, vtkDataArraySelection);
50 
52 
55  void SetChannel1LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_1", stc); }
56  void SetChannel2LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_2", stc); }
57  void SetChannel3LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_3", stc); }
58  void SetChannel4LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_4", stc); }
59  void SetChannel5LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_5", stc); }
60  void SetChannel6LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_6", stc); }
61  void SetChannel7LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_7", stc); }
62  void SetChannel8LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_8", stc); }
63  void SetChannel9LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_9", stc); }
64  void SetChannel10LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_10", stc); }
65  void SetLUT(const char* channelName, vtkScalarsToColors*);
67 
69 
72  void SetChannel1Weight(double wght) { this->SetWeight("Channel_1", wght); }
73  void SetChannel2Weight(double wght) { this->SetWeight("Channel_2", wght); }
74  void SetChannel3Weight(double wght) { this->SetWeight("Channel_3", wght); }
75  void SetChannel4Weight(double wght) { this->SetWeight("Channel_4", wght); }
76  void SetChannel5Weight(double wght) { this->SetWeight("Channel_5", wght); }
77  void SetChannel6Weight(double wght) { this->SetWeight("Channel_6", wght); }
78  void SetChannel7Weight(double wght) { this->SetWeight("Channel_7", wght); }
79  void SetChannel8Weight(double wght) { this->SetWeight("Channel_8", wght); }
80  void SetChannel9Weight(double wght) { this->SetWeight("Channel_9", wght); }
81  void SetChannel10Weight(double wght) { this->SetWeight("Channel_10", wght); }
82  void SetWeight(const char* channelName, double weight);
84  vtkMTimeType GetMTime() override;
85 
86 protected:
88  ~vtkOMETIFFChannelCalculator() override;
89 
92 
93  struct LUTItem
94  {
96  double Weight;
97  };
98 
99  std::map<std::string, LUTItem> LUTMap;
101 
102 private:
104  void operator=(const vtkOMETIFFChannelCalculator&) = delete;
105 };
106 
107 #endif
weight
void SetChannel9LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
void SetChannel3LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
void SetChannel1LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
info
vtkSmartPointer< vtkScalarsToColors > LUT
void SetChannel5Weight(double wght)
Set weights for each of the channels.
void SetChannel7LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
void SetChannel8LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
vtkTypeUInt64 vtkMTimeType
vtkDataArraySelection * ChannelSelection
virtual int FillInputPortInformation(int port, vtkInformation *info)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void SetChannel2LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
void SetChannel7Weight(double wght)
Set weights for each of the channels.
void SetChannel2Weight(double wght)
Set weights for each of the channels.
void SetChannel10Weight(double wght)
Set weights for each of the channels.
void SetChannel9Weight(double wght)
Set weights for each of the channels.
virtual vtkMTimeType GetMTime()
filter to combine multiple channels into colors
#define VTKPVVTKEXTENSIONSFILTERSGENERAL_EXPORT
void SetChannel3Weight(double wght)
Set weights for each of the channels.
void SetChannel1Weight(double wght)
Set weights for each of the channels.
void SetChannel6Weight(double wght)
Set weights for each of the channels.
void SetChannel4LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
void SetChannel5LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
void SetChannel10LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
std::map< std::string, LUTItem > LUTMap
port
void SetChannel8Weight(double wght)
Set weights for each of the channels.
void SetChannel6LUT(vtkScalarsToColors *stc)
Set the transfer functions to use to map scalars to colors.
void SetChannel4Weight(double wght)
Set weights for each of the channels.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPassInputTypeAlgorithm * New()