12#include "IException.h"
28 const double lineScale) {
58 const double outSample,
const double outLine) {
77 double pdStartLine,
double pdEndLine) {
79 if (pdStartSample > pdEndSample || pdStartLine > pdEndLine) {
80 string sErrMsg =
"Error in Input Area Dimesions";
84 if (pdStartSample >= 1) {
87 if (pdEndSample <= mInCube->sampleCount()) {
90 if (pdStartLine >= 1) {
93 if (pdEndLine <= mInCube->lineCount()) {
137 subArea.UpdateLabel(
mInCube, pOutCube, resultsGrp);
IO Handler for Isis Cubes.
double mdStartSample
Input start sample.
Cube * mInCube
Input image.
void SetInputArea(double pdStartSample, double pdEndSample, double pdStartLine, double pdEndLine)
Sets the sub area dimensions of the input image.
double mdEndLine
Input end line.
double mdEndSample
Input end sample.
bool Xform(double &inSample, double &inLine, const double outSample, const double outLine)
Implementations for parent's pure virtual members Convert the requested output samp/line to an input ...
Enlarge(Cube *pInCube, const double sampleScale, const double lineScale)
Constructs an Enlarge object.
double mdSampleScale
Sample scale.
int miOutputLines
Number of lines for output.
double mdStartLine
Input start line.
int miOutputSamples
Number of samples for output.
PvlGroup UpdateOutputLabel(Cube *pOutCube)
Update the Mapping, Instrument, and AlphaCube groups in the output cube label.
double mdLineScale
Line scale.
@ Programmer
This error is for when a programmer made an API call that was illegal.
Contains multiple PvlContainers.
A single keyword-value pair.
Apply corrections to a cube label for subarea extraction.
void SetSubArea(const int orignl, const int origns, const int sl, const int ss, const int el, const int es, const double linc, const double sinc)
Defines the subarea.
This is free and unencumbered software released into the public domain.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Namespace for the standard library.