![]() |
Isis 3 Programmer Reference
|
Describes how a cube as a single color channel to be exported. More...
#include <ExportDescription.h>
Public Member Functions | |
ChannelDescription (FileName &filename, CubeAttributeInput &att) | |
Construct the channel description with the given input name and attributes. More... | |
virtual | ~ChannelDescription () |
Destruct the export description. More... | |
FileName | filename () const |
Returns a copy of the filename associated with this channel. More... | |
CubeAttributeInput | attributes () const |
Returns a copy of the input attributes associated with this channel. More... | |
void | setInputRange (double min, double max) |
Sets the input range for this channel. More... | |
double | inputMinimum () const |
Returns the input minimum for this channel. More... | |
double | inputMaximum () const |
Returns the input maximum for this channel. More... | |
bool | hasCustomRange () const |
Returns true if the user of this instance has set a custom input range for this channel. More... | |
Private Attributes | |
FileName | m_filename |
Input filename of the cube to be treated as a color channel. More... | |
CubeAttributeInput | m_att |
Attributes like which band to use from the input cube. More... | |
bool | m_customRange |
Whether or not the user has specified a custom input DN range. More... | |
double | m_inputMin |
Minimum DN in the input, defaults to DBL_MIN. More... | |
double | m_inputMax |
Maximum DN in the input, defaults to DBL_MAX. More... | |
Describes how a cube as a single color channel to be exported.
Specifies the filename, attributes, and input DN range of a cube to be exported as a color channel in a standard image.
Definition at line 74 of file ExportDescription.h.
Isis::ExportDescription::ChannelDescription::ChannelDescription | ( | FileName & | filename, |
CubeAttributeInput & | att | ||
) |
Construct the channel description with the given input name and attributes.
filename | The name of the cube |
att | The cube attributes such as band number |
Definition at line 264 of file ExportDescription.cpp.
References filename(), m_att, m_customRange, m_filename, m_inputMax, and m_inputMin.
|
inlinevirtual |
Destruct the export description.
Definition at line 79 of file ExportDescription.h.
CubeAttributeInput Isis::ExportDescription::ChannelDescription::attributes | ( | ) | const |
Returns a copy of the input attributes associated with this channel.
Definition at line 291 of file ExportDescription.cpp.
Referenced by Isis::ImageExporter::addChannel(), Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().
FileName Isis::ExportDescription::ChannelDescription::filename | ( | ) | const |
Returns a copy of the filename associated with this channel.
Definition at line 281 of file ExportDescription.cpp.
Referenced by Isis::ImageExporter::addChannel(), ChannelDescription(), Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().
bool Isis::ExportDescription::ChannelDescription::hasCustomRange | ( | ) | const |
Returns true if the user of this instance has set a custom input range for this channel.
Definition at line 340 of file ExportDescription.cpp.
Referenced by Isis::ImageExporter::addChannel(), Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().
double Isis::ExportDescription::ChannelDescription::inputMaximum | ( | ) | const |
Returns the input maximum for this channel.
Any value of max in the input cube will be mapped to the output max of the output channel.
Definition at line 329 of file ExportDescription.cpp.
Referenced by Isis::ImageExporter::addChannel(), Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().
double Isis::ExportDescription::ChannelDescription::inputMinimum | ( | ) | const |
Returns the input minimum for this channel.
Any value of min in the input cube will be mapped to the output min of the output channel.
Definition at line 318 of file ExportDescription.cpp.
Referenced by Isis::ImageExporter::addChannel(), Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().
void Isis::ExportDescription::ChannelDescription::setInputRange | ( | double | min, |
double | max | ||
) |
Sets the input range for this channel.
Any value of min in the input cube will be mapped to the output min of the output channel. Similar for the max.
min | The minimum DN in the input mapped to the minimum of the output |
max | The maximum DN in the input mapped to the maximum of the output |
Definition at line 304 of file ExportDescription.cpp.
Referenced by Isis::ExportDescription::addChannel().
|
private |
Attributes like which band to use from the input cube.
Definition at line 94 of file ExportDescription.h.
Referenced by ChannelDescription().
|
private |
Whether or not the user has specified a custom input DN range.
Definition at line 97 of file ExportDescription.h.
Referenced by ChannelDescription().
|
private |
Input filename of the cube to be treated as a color channel.
Definition at line 91 of file ExportDescription.h.
Referenced by ChannelDescription().
|
private |
Maximum DN in the input, defaults to DBL_MAX.
Definition at line 103 of file ExportDescription.h.
Referenced by ChannelDescription().
|
private |
Minimum DN in the input, defaults to DBL_MIN.
Definition at line 100 of file ExportDescription.h.
Referenced by ChannelDescription().
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/12/2023 23:47:41 |