vtkOMETIFFChannelCalculator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkOMETIFFChannelCalculator_h
14 #define vtkOMETIFFChannelCalculator_h
15 
16 #include "vtkPVVTKExtensionsFiltersGeneralModule.h" //needed for exports
18 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
19 
20 #include <map> // needed for map
21 
23 class vtkScalarsToColors;
26 {
27 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
36  vtkGetObjectMacro(ChannelSelection, vtkDataArraySelection);
38 
40 
43  void SetChannel1LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_1", stc); }
44  void SetChannel2LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_2", stc); }
45  void SetChannel3LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_3", stc); }
46  void SetChannel4LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_4", stc); }
47  void SetChannel5LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_5", stc); }
48  void SetChannel6LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_6", stc); }
49  void SetChannel7LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_7", stc); }
50  void SetChannel8LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_8", stc); }
51  void SetChannel9LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_9", stc); }
52  void SetChannel10LUT(vtkScalarsToColors* stc) { this->SetLUT("Channel_10", stc); }
53  void SetLUT(const char* channelName, vtkScalarsToColors*);
55 
57 
60  void SetChannel1Weight(double wght) { this->SetWeight("Channel_1", wght); }
61  void SetChannel2Weight(double wght) { this->SetWeight("Channel_2", wght); }
62  void SetChannel3Weight(double wght) { this->SetWeight("Channel_3", wght); }
63  void SetChannel4Weight(double wght) { this->SetWeight("Channel_4", wght); }
64  void SetChannel5Weight(double wght) { this->SetWeight("Channel_5", wght); }
65  void SetChannel6Weight(double wght) { this->SetWeight("Channel_6", wght); }
66  void SetChannel7Weight(double wght) { this->SetWeight("Channel_7", wght); }
67  void SetChannel8Weight(double wght) { this->SetWeight("Channel_8", wght); }
68  void SetChannel9Weight(double wght) { this->SetWeight("Channel_9", wght); }
69  void SetChannel10Weight(double wght) { this->SetWeight("Channel_10", wght); }
70  void SetWeight(const char* channelName, double weight);
72  vtkMTimeType GetMTime() override;
73 
74 protected:
76  ~vtkOMETIFFChannelCalculator() override;
77 
80 
81  struct LUTItem
82  {
84  double Weight;
85  };
86 
87  std::map<std::string, LUTItem> LUTMap;
89 
90 private:
92  void operator=(const vtkOMETIFFChannelCalculator&) = delete;
93 };
94 
95 #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()