Isis Developer Reference
|
Describes how a series of cubes should be exported. More...
#include <ExportDescription.h>
Classes | |
class | ChannelDescription |
Describes how a cube as a single color channel to be exported. More... | |
Public Member Functions | |
ExportDescription () | |
Construct the export description. | |
ExportDescription (const ExportDescription &descriptionToCopy) | |
Copy constructor for the export description. | |
virtual | ~ExportDescription () |
Destruct the export description. | |
ExportDescription & | operator= (const ExportDescription &descriptionToCopy) |
Assignment operator for the export description. | |
void | setPixelType (PixelType type) |
Set the pixel type for the output image. | |
PixelType | pixelType () const |
Returns the pixel type. | |
double | outputPixelNull () const |
Returns the output pixel value for Null DNs. | |
double | outputPixelValidMin () const |
Returns the output pixel value for the valid minimum. | |
double | outputPixelValidMax () const |
Returns the output pixel value for the valid maximum. | |
double | outputPixelAbsoluteMin () const |
Returns the absolute minimum value for output pixels. | |
double | outputPixelAbsoluteMax () const |
Returns the absolute maximum value for output pixels. | |
int | addChannel (FileName filename, CubeAttributeInput &att) |
Add an export color channel for the given input cube and attributes (typically band number). | |
int | addChannel (FileName filename, CubeAttributeInput &att, double min, double max) |
Add an export color channel for the given input cube, attributes (typically band number), and input DN range. | |
const ChannelDescription & | channel (int i) const |
Return the channels description at the given index. | |
int | channelCount () const |
Count of the number of channels in the description. | |
Describes how a series of cubes should be exported.
This container class encapsulates the parameters required to specify how an Isis cube should be exported to a standard image format. This encapsulation is useful to applications like "isis2std" for passing its user parameters down to processing classes such as ImageExporters without needing to create new method signatures that take a growing list of parameters. The ExportDescription contains top-level data about the export as a whole, such as bit type. It also contains a list of ChannelDescriptions, each describing the input cubes, attributes, and DN ranges for a channel of color information (gray, red, blue, green, or alpha).
Isis::ExportDescription::ExportDescription | ( | ) |
Construct the export description.
References Isis::None.
Isis::ExportDescription::ExportDescription | ( | const ExportDescription & | descriptionToCopy | ) |
Copy constructor for the export description.
descriptionToCopy | ExportDescription to be copied. |
References addChannel(), channel(), and setPixelType().
|
virtual |
Destruct the export description.
Also deletes the list of channels.
int Isis::ExportDescription::addChannel | ( | FileName | filename, |
CubeAttributeInput & | att ) |
Add an export color channel for the given input cube and attributes (typically band number).
filename | The name of the cube |
att | The cube attributes such as band number |
Referenced by ExportDescription(), and operator=().
int Isis::ExportDescription::addChannel | ( | FileName | filename, |
CubeAttributeInput & | att, | ||
double | min, | ||
double | max ) |
Add an export color channel for the given input cube, attributes (typically band number), and input DN range.
filename | The name of the cube |
att | The cube attributes such as band number |
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 |
const ExportDescription::ChannelDescription & Isis::ExportDescription::channel | ( | int | i | ) | const |
Return the channels description at the given index.
i | Index of the desired channel |
Referenced by ExportDescription(), and operator=().
int Isis::ExportDescription::channelCount | ( | ) | const |
Count of the number of channels in the description.
Referenced by Isis::ImageExporter::initializeProcess().
ExportDescription & Isis::ExportDescription::operator= | ( | const ExportDescription & | descriptionToCopy | ) |
Assignment operator for the export description.
descriptionToCopy | ExportDescription to be copied. |
References addChannel(), channel(), and setPixelType().
double Isis::ExportDescription::outputPixelAbsoluteMax | ( | ) | const |
Returns the absolute maximum value for output pixels.
Defaults to 255.0 if not set by the user.
Referenced by Isis::ImageExporter::initializeProcess().
double Isis::ExportDescription::outputPixelAbsoluteMin | ( | ) | const |
Returns the absolute minimum value for output pixels.
Defaults to 0.0 if not set by the user.
Referenced by Isis::ImageExporter::initializeProcess().
double Isis::ExportDescription::outputPixelNull | ( | ) | const |
Returns the output pixel value for Null DNs.
Defaults to 0.0 if not set by the user.
Referenced by Isis::ImageExporter::initializeProcess().
double Isis::ExportDescription::outputPixelValidMax | ( | ) | const |
Returns the output pixel value for the valid maximum.
Defaults to 255.0 if not set by the user.
Referenced by Isis::ImageExporter::initializeProcess().
double Isis::ExportDescription::outputPixelValidMin | ( | ) | const |
Returns the output pixel value for the valid minimum.
Defaults to 0.0 if not set by the user.
Referenced by Isis::ImageExporter::initializeProcess().
PixelType Isis::ExportDescription::pixelType | ( | ) | const |
Returns the pixel type.
Defaults to None if not set by the user.
Referenced by Isis::ImageExporter::pixelType().
void Isis::ExportDescription::setPixelType | ( | PixelType | type | ) |
Set the pixel type for the output image.
Automatically establishes valid output minimum, maximum, and null values based on the type.
type | The pixel type: {UnsignedByte, SignedWord, UnsignedWord} |
References _FILEINFO_, Isis::IException::Programmer, Isis::SignedWord, Isis::toString(), Isis::UnsignedByte, and Isis::UnsignedWord.
Referenced by ExportDescription(), and operator=().