Isis 3 Programmer Reference
ExportDescription.h
1 #ifndef ExportDescription_h
2 #define ExportDescription_h
3 
9 /* SPDX-License-Identifier: CC0-1.0 */
10 
11 #include "CubeAttribute.h"
12 #include "FileName.h"
13 #include "PixelType.h"
14 
15 namespace Isis {
44  public:
59  public:
61 
63  virtual ~ChannelDescription() {};
64 
65  FileName filename() const;
67 
68  void setInputRange(double min, double max);
69  double inputMinimum() const;
70  double inputMaximum() const;
71  bool hasCustomRange() const;
72 
73  private:
76 
79 
82 
84  double m_inputMin;
85 
87  double m_inputMax;
88  };
89 
90  public:
92  ExportDescription(const ExportDescription &descriptionToCopy);
93  virtual ~ExportDescription();
94  ExportDescription &operator=(const ExportDescription &descriptionToCopy);
95 
96  void setPixelType(PixelType type);
97  PixelType pixelType() const;
98  double outputPixelNull() const;
99  double outputPixelValidMin() const;
100  double outputPixelValidMax() const;
101  double outputPixelAbsoluteMin() const;
102  double outputPixelAbsoluteMax() const;
103 
104  int addChannel(FileName filename, CubeAttributeInput &att);
105  int addChannel(FileName filename, CubeAttributeInput &att, double min, double max);
106  const ChannelDescription &channel(int i) const;
107  int channelCount() const;
108 
109  private:
112 
128  };
129 };
130 
131 
132 #endif
Isis::ExportDescription::channelCount
int channelCount() const
Count of the number of channels in the description.
Definition: ExportDescription.cpp:258
Isis::ExportDescription::outputPixelNull
double outputPixelNull() const
Returns the output pixel value for Null DNs.
Definition: ExportDescription.cpp:158
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::ExportDescription::outputPixelAbsoluteMin
double outputPixelAbsoluteMin() const
Returns the absolute minimum value for output pixels.
Definition: ExportDescription.cpp:188
Isis::ExportDescription::addChannel
int addChannel(FileName filename, CubeAttributeInput &att)
Add an export color channel for the given input cube and attributes (typically band number).
Definition: ExportDescription.cpp:212
Isis::ExportDescription::m_outputPixelAbsoluteMax
double m_outputPixelAbsoluteMax
The largest allowed pixel value in the exported image file.
Definition: ExportDescription.h:122
Isis::ExportDescription::ChannelDescription
Describes how a cube as a single color channel to be exported.
Definition: ExportDescription.h:58
Isis::ExportDescription::channel
const ChannelDescription & channel(int i) const
Return the channels description at the given index.
Definition: ExportDescription.cpp:247
Isis::ExportDescription
Describes how a series of cubes should be exported.
Definition: ExportDescription.h:43
Isis::ExportDescription::ChannelDescription::m_att
CubeAttributeInput m_att
Attributes like which band to use from the input cube.
Definition: ExportDescription.h:78
Isis::ExportDescription::outputPixelAbsoluteMax
double outputPixelAbsoluteMax() const
Returns the absolute maximum value for output pixels.
Definition: ExportDescription.cpp:198
Isis::ExportDescription::ChannelDescription::m_inputMin
double m_inputMin
Minimum DN in the input, defaults to DBL_MIN.
Definition: ExportDescription.h:84
Isis::ExportDescription::operator=
ExportDescription & operator=(const ExportDescription &descriptionToCopy)
Assignment operator for the export description.
Definition: ExportDescription.cpp:66
Isis::ExportDescription::m_outputPixelValidMax
double m_outputPixelValidMax
Value to which maximum valid DNs will be mapped in the exported image file, defaults to 255....
Definition: ExportDescription.h:117
Isis::ExportDescription::ChannelDescription::filename
FileName filename() const
Returns a copy of the filename associated with this channel.
Definition: ExportDescription.cpp:286
Isis::ExportDescription::m_outputPixelNull
double m_outputPixelNull
Value to which Null DNs will be mapped in the exported image file, defaults to 0.0.
Definition: ExportDescription.h:113
Isis::ExportDescription::ChannelDescription::attributes
CubeAttributeInput attributes() const
Returns a copy of the input attributes associated with this channel.
Definition: ExportDescription.cpp:296
Isis::ExportDescription::m_outputPixelValidMin
double m_outputPixelValidMin
Value to which minimum valid DNs will be mapped in the exported image file, defaults to 0....
Definition: ExportDescription.h:115
Isis::ExportDescription::ExportDescription
ExportDescription()
Construct the export description.
Definition: ExportDescription.cpp:22
Isis::ExportDescription::ChannelDescription::setInputRange
void setInputRange(double min, double max)
Sets the input range for this channel.
Definition: ExportDescription.cpp:309
Isis::ExportDescription::ChannelDescription::m_inputMax
double m_inputMax
Maximum DN in the input, defaults to DBL_MAX.
Definition: ExportDescription.h:87
Isis::ExportDescription::ChannelDescription::m_customRange
bool m_customRange
Whether or not the user has specified a custom input DN range.
Definition: ExportDescription.h:81
Isis::ExportDescription::pixelType
PixelType pixelType() const
Returns the pixel type.
Definition: ExportDescription.cpp:148
Isis::ExportDescription::setPixelType
void setPixelType(PixelType type)
Set the pixel type for the output image.
Definition: ExportDescription.cpp:106
Isis::ExportDescription::ChannelDescription::ChannelDescription
ChannelDescription(FileName &filename, CubeAttributeInput &att)
Construct the channel description with the given input name and attributes.
Definition: ExportDescription.cpp:269
Isis::ExportDescription::ChannelDescription::inputMinimum
double inputMinimum() const
Returns the input minimum for this channel.
Definition: ExportDescription.cpp:323
Isis::ExportDescription::ChannelDescription::hasCustomRange
bool hasCustomRange() const
Returns true if the user of this instance has set a custom input range for this channel.
Definition: ExportDescription.cpp:345
Isis::ExportDescription::outputPixelValidMax
double outputPixelValidMax() const
Returns the output pixel value for the valid maximum.
Definition: ExportDescription.cpp:178
Isis::ExportDescription::ChannelDescription::m_filename
FileName m_filename
Input filename of the cube to be treated as a color channel.
Definition: ExportDescription.h:75
Isis::ExportDescription::outputPixelValidMin
double outputPixelValidMin() const
Returns the output pixel value for the valid minimum.
Definition: ExportDescription.cpp:168
Isis::PixelType
PixelType
Enumerations for Isis Pixel Types.
Definition: PixelType.h:27
Isis::ExportDescription::~ExportDescription
virtual ~ExportDescription()
Destruct the export description.
Definition: ExportDescription.cpp:93
Isis::ExportDescription::ChannelDescription::inputMaximum
double inputMaximum() const
Returns the input maximum for this channel.
Definition: ExportDescription.cpp:334
Isis::ExportDescription::ChannelDescription::~ChannelDescription
virtual ~ChannelDescription()
Destruct the export description.
Definition: ExportDescription.h:63
Isis::CubeAttributeInput
Manipulate and parse attributes of input cube filenames.
Definition: CubeAttribute.h:381
Isis::ExportDescription::m_channels
QList< ChannelDescription * > * m_channels
List of color channels to be exported into the output image.
Definition: ExportDescription.h:127
Isis::ExportDescription::m_outputPixelAbsoluteMin
double m_outputPixelAbsoluteMin
The smallest allowed pixel value in the exported image file.
Definition: ExportDescription.h:119
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ExportDescription::m_type
PixelType m_type
Pixel type to export the data to, defaults to None.
Definition: ExportDescription.h:111