Isis 3 Developer Reference
Isis::ExportDescription::ChannelDescription Class Reference

Describes how a cube as a single color channel to be exported. More...

#include <ExportDescription.h>

Collaboration diagram for Isis::ExportDescription::ChannelDescription:
Collaboration graph

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...
 

Detailed Description

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.

Author
2012-04-03 Travis Addair

Constructor & Destructor Documentation

◆ ChannelDescription()

Isis::ExportDescription::ChannelDescription::ChannelDescription ( FileName filename,
CubeAttributeInput att 
)

Construct the channel description with the given input name and attributes.

Parameters
filenameThe name of the cube
attThe cube attributes such as band number

References filename().

◆ ~ChannelDescription()

virtual Isis::ExportDescription::ChannelDescription::~ChannelDescription ( )
inlinevirtual

Destruct the export description.

Member Function Documentation

◆ attributes()

CubeAttributeInput Isis::ExportDescription::ChannelDescription::attributes ( ) const

Returns a copy of the input attributes associated with this channel.

Returns
The cube attributes such as band number

Referenced by Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().

◆ filename()

FileName Isis::ExportDescription::ChannelDescription::filename ( ) const

Returns a copy of the filename associated with this channel.

Returns
The name of the cube

Referenced by ChannelDescription(), Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().

◆ hasCustomRange()

bool Isis::ExportDescription::ChannelDescription::hasCustomRange ( ) const

Returns true if the user of this instance has set a custom input range for this channel.

Returns
True if a custom range has been set, false otherwise

Referenced by Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().

◆ inputMaximum()

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.

Returns
The maximum DN in the input mapped to the maximum of the output

Referenced by Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().

◆ inputMinimum()

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.

Returns
The minimum DN in the input mapped to the minimum of the output

Referenced by Isis::ExportDescription::ExportDescription(), and Isis::ExportDescription::operator=().

◆ setInputRange()

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.

Parameters
minThe minimum DN in the input mapped to the minimum of the output
maxThe maximum DN in the input mapped to the maximum of the output

Referenced by Isis::ExportDescription::addChannel().


The documentation for this class was generated from the following files: