|
Isis Developer Reference
|
Go to the documentation of this file.
9 #ifndef CUBE_CALCULATOR_H_
10 #define CUBE_CALCULATOR_H_
16 template<
class T>
class QVector;
88 void addMethodCall(
void (
Calculator::*method)(
void));
167 double m_constantValue;
223 void loadBuffers(
int currentLine,
int ns,
int currentBand);
double ToDouble() const
Returns the floating point value the IString represents.
Definition: IString.cpp:799
double constant()
Accesses the constant value of the DataValue.
Definition: CubeCalculator.cpp:923
void enableInaBuffer()
Enables the incidence angle buffer for use.
Definition: CubeCalculator.cpp:994
void enablePhaBuffer()
Enables the phase angle buffer for use.
Definition: CubeCalculator.cpp:988
@ PhacData
Center phase camera data.
Definition: CubeCalculator.h:153
@ Line
Current line number.
Definition: CubeCalculator.h:138
const double PI
The mathematical constant PI.
Definition: Constants.h:40
Functor for reduce using average functionality.
Definition: Reduce.h:107
QVector< double > * inalBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1113
void enableLatBuffer()
Enables the latitude buffer for use.
Definition: CubeCalculator.cpp:1006
QVector< double > * inacBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1131
@ RadiusData
DEM radius.
Definition: CubeCalculator.h:147
void enablePhalBuffer()
Enables the local phase angle buffer for use.
Definition: CubeCalculator.cpp:1030
void enablePhacBuffer()
Enables the center phase angle buffer for use.
Definition: CubeCalculator.cpp:1048
Calculator for arrays.
Definition: Calculator.h:55
Calculator for arrays.
Definition: CubeCalculator.h:57
QVector< double > runCalculations(QVector< Buffer * > &cubeData, int line, int band)
This method will execute the calculations built up when PrepareCalculations was called.
Definition: CubeCalculator.cpp:114
QVector< double > * latBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1083
DataValueType type()
Accesses the type of the DataValue.
Definition: CubeCalculator.cpp:903
@ PhalData
Local phase camera data.
Definition: CubeCalculator.h:150
~CubeCalculator()
Destroys the CubeCalculator object.
Definition: CubeCalculator.cpp:42
QVector< double > * lonBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1089
QVector< double > * phaBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1065
CubeCalculator()
Constructs a CubeCalculator.
Definition: CubeCalculator.cpp:22
@ InaData
Incidence camera data.
Definition: CubeCalculator.h:141
int ToInteger() const
Returns the object string as an integer.
Definition: IString.cpp:718
QVector< double > * resBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1095
@ ResData
Pixel resolution camera data.
Definition: CubeCalculator.h:146
@ Constant
A single constant value.
Definition: CubeCalculator.h:136
void enableEmaBuffer()
Enables the emission angle buffer for use.
Definition: CubeCalculator.cpp:1000
CameraBuffers(Camera *camera)
Constructs a CameraBuffers object.
Definition: CubeCalculator.cpp:933
@ EmalData
Local emission camera data.
Definition: CubeCalculator.h:149
void enableInalBuffer()
Enables the local incidence angle buffer for use.
Definition: CubeCalculator.cpp:1036
@ InacData
Center incidence camera data.
Definition: CubeCalculator.h:151
void enableEmalBuffer()
Enables the local emission angle buffer for use.
Definition: CubeCalculator.cpp:1042
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void enableRadiusBuffer()
Enables the radius buffer for use.
Definition: CubeCalculator.cpp:1024
@ Sample
Current sample number.
Definition: CubeCalculator.h:137
void enableEmacBuffer()
Enables the center emission angle buffer for use.
Definition: CubeCalculator.cpp:1060
@ LonData
Longitude camera data.
Definition: CubeCalculator.h:145
void enableInacBuffer()
Enables the center incidence angle buffer for use.
Definition: CubeCalculator.cpp:1054
@ InalData
Local incidence camera data.
Definition: CubeCalculator.h:148
void prepareCalculations(QString equation, QVector< Cube * > &inCubes, Cube *outCube)
This method builds a list of actions to perform based on the postfix expression.
Definition: CubeCalculator.cpp:249
int sampleCount() const
Definition: Cube.cpp:1807
DataValueType
This is used to tell what kind of data to push onto the RPN calculator.
Definition: CubeCalculator.h:135
IO Handler for Isis Cubes.
Definition: Cube.h:167
int cubeIndex()
Accesses the cube index of the DataValue.
Definition: CubeCalculator.cpp:913
Isis exception class.
Definition: IException.h:91
QVector< double > * emacBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1137
QVector< double > * radiusBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1101
QVector< double > * phacBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1125
QVector< double > * inaBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1071
@ Band
Current band number.
Definition: CubeCalculator.h:139
@ EmacData
Center emission camera data.
Definition: CubeCalculator.h:152
void enableLonBuffer()
Enables the longitude buffer for use.
Definition: CubeCalculator.cpp:1012
QVector< double > * emaBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1077
@ CubeData
A brick of cube data.
Definition: CubeCalculator.h:140
@ PhaData
Phase camera data.
Definition: CubeCalculator.h:143
Namespace for the standard library.
QVector< double > * phalBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1107
QVector< double > * emalBuffer(int currentLine, int ns, int currentBand)
Definition: CubeCalculator.cpp:1119
IString Token(const IString &separator)
Returns the first token in the IString.
Definition: IString.cpp:897
const double E
Sets some basic constants for use in ISIS programming.
Definition: Constants.h:39
This class is used to define what kind of data is being pushed onto the cube calculator.
Definition: CubeCalculator.h:132
~CameraBuffers()
Destroys the CameraBuffers.
Definition: CubeCalculator.cpp:956
Adds specific functionality to C++ strings.
Definition: IString.h:165
@ EmaData
Emission camera data.
Definition: CubeCalculator.h:142
void Clear()
This method completely resets the calculator.
Definition: CubeCalculator.cpp:64
@ LatData
Latitude camera data.
Definition: CubeCalculator.h:144
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
QString ToQt() const
Retuns the object string as a QString.
Definition: IString.cpp:869
void enableResBuffer()
Enables the resolution buffer for use.
Definition: CubeCalculator.cpp:1018
This class is used to manage buffers for calculating camera related information, such as angles,...
Definition: CubeCalculator.h:187
DataValue()
Constructs a default DataValue.
Definition: CubeCalculator.cpp:840