|
Isis Developer Reference
|
Go to the documentation of this file.
110 void Push(
double scalar);
116 virtual void Clear();
122 double operation(
double));
128 double operation(
double,
double));
void Push(double scalar)
Push a scalar onto the stack.
Definition: Calculator.cpp:893
double CosecantOperator(double a)
Returns the cosecant of the input a.
Definition: Calculator.cpp:195
void Arcsine()
Pops one element and push the arcsine.
Definition: Calculator.cpp:767
void Cosine()
Pops one element and push the cosine.
Definition: Calculator.cpp:717
void Tangent()
Pops one element and push the tangent.
Definition: Calculator.cpp:727
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:17
double ModulusOperator(double a, double b)
Returns the modulus of a by b.
Definition: Calculator.cpp:269
void Add()
Pops two elements, adds them, then pushes the sum on the stack.
Definition: Calculator.cpp:330
void Cosecant()
Pops one element and push the cosecant.
Definition: Calculator.cpp:737
double CotangentOperator(double a)
Returns the cotangent of the input a.
Definition: Calculator.cpp:218
void Or()
Pop two elements, OR them, then push the result on the stack.
Definition: Calculator.cpp:693
void PrintTop()
Print the vector at the top of the stack.
Definition: Calculator.cpp:989
void TangentH()
Pops one element and push the hyperbolic tangent.
Definition: Calculator.cpp:860
void Multiply()
Pops two elements, multiplies them, then pushes the product on the stack.
Definition: Calculator.cpp:317
void Modulus()
Pops two elements, mods them, then pushes the result on the stack.
Definition: Calculator.cpp:366
bool IsNullPixel(const double d)
Returns if the input pixel is null.
Definition: SpecialPixel.h:235
void Equal()
Pop two elements off the stack and compare them to see where one is equal to the other,...
Definition: Calculator.cpp:617
Calculator for arrays.
Definition: Calculator.h:55
void Arctangent()
Pops one element and push the arctangent.
Definition: Calculator.cpp:787
bool IsHrsPixel(const double d)
Returns if the input pixel is high representation saturation.
Definition: SpecialPixel.h:271
void CosineH()
Pops one element and push the hyperbolic cosine.
Definition: Calculator.cpp:850
double LessThanOperator(double a, double b)
Returns 1.0 if a is less than b.
Definition: Calculator.cpp:131
bool Empty()
Check if the stack is empty.
Definition: Calculator.cpp:1013
double NegateOperator(double a)
Returns the nagative of the input parameter.
Definition: Calculator.cpp:53
void Sine()
Pops one element and push the sine.
Definition: Calculator.cpp:707
void Divide()
Pops two, divides them, then pushes the quotient on the stack.
Definition: Calculator.cpp:354
virtual ~Calculator()
Virtual Constructor.
Definition: Calculator.cpp:39
double GreaterThanOperator(double a, double b)
Returns 1.0 if a is greater than b.
Definition: Calculator.cpp:118
void SineH()
Pops one element and push the hyperbolic sine.
Definition: Calculator.cpp:840
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
double BitwiseAndOperator(double a, double b)
Returns the result of a bitwise AND accross a and b.
Definition: Calculator.cpp:243
void Subtract()
Pops two elements, subtracts them, then pushes the difference on the stack.
Definition: Calculator.cpp:342
double GreaterThanOrEqualOperator(double a, double b)
Returns 1.0 if a is greater than or equal to b.
Definition: Calculator.cpp:157
const double Hrs
Value for an Isis High Representation Saturation pixel.
Definition: SpecialPixel.h:117
double MaximumOperator(double a, double b)
Returns the max of a and b.
Definition: Calculator.cpp:281
double MinimumOperator(double a, double b)
Returns the min of a and b.
Definition: Calculator.cpp:296
Buffer for reading and writing cube data.
Definition: Buffer.h:53
void MinimumLine()
Pop one element, then push the minimum on the stack.
Definition: Calculator.cpp:518
const double Lrs
Value for an Isis Low Representation Saturation pixel.
Definition: SpecialPixel.h:99
void Maximum2()
Not implemented in Calculator.cpp.
void AbsoluteValue()
Pop an element, compute its absolute value, then push the result on the stack.
Definition: Calculator.cpp:407
double DivideOperator(double a, double b)
Returns the result of dividing a by b.
Definition: Calculator.cpp:79
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void Cotangent()
Pops one element and push the cotangent.
Definition: Calculator.cpp:757
void ArcsineH()
Pops one element and push the inverse hyperbolic sine.
Definition: Calculator.cpp:797
double BitwiseOrOperator(double a, double b)
Returns the result of a bitwise OR across a and b.
Definition: Calculator.cpp:256
int Round(double a)
Returns the result of rounding the input a to the closest integer.
Definition: Calculator.cpp:230
void ArccosineH()
Pops one element and push the inverse hyperbolic cosine.
Definition: Calculator.cpp:807
void Log10()
Pop an element, compute its base 10 log, then push the result on the stack.
Definition: Calculator.cpp:429
double SecantOperator(double a)
Returns the secant of the input a.
Definition: Calculator.cpp:207
void SquareRoot()
Pop an element, compute its square root, then push the root on the stack.
Definition: Calculator.cpp:397
double MultiplyOperator(double a, double b)
Returns the result of a multiplied by b.
Definition: Calculator.cpp:66
void RightShift()
Pop the top element, then perform a right shift with zero fill.
Definition: Calculator.cpp:480
Isis exception class.
Definition: IException.h:91
void Arccosine()
Pops one element and push the arccosine.
Definition: Calculator.cpp:777
bool IsLisPixel(const double d)
Returns if the input pixel is low instrument saturation.
Definition: SpecialPixel.h:295
void LeftShift()
Pop the top element, then perform a left shift with zero fill.
Definition: Calculator.cpp:441
bool IsLrsPixel(const double d)
Returns if the input pixel is low representation saturation.
Definition: SpecialPixel.h:307
double SubtractOperator(double a, double b)
Returns the result of subtracting b from a.
Definition: Calculator.cpp:105
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
void GreaterThanOrEqual()
Pop two elements off the stack and compare them to see where one is greater than or equal to the othe...
Definition: Calculator.cpp:632
bool IsHisPixel(const double d)
Returns if the input pixel is high instrument saturation.
Definition: SpecialPixel.h:283
void LessThan()
Pop two elements off the stack and compare them to see where one is less than the other,...
Definition: Calculator.cpp:602
Namespace for the standard library.
QVector< double > Pop(bool keepSpecials=false)
Pop an element off the stack.
Definition: Calculator.cpp:949
void GreaterThan()
Pop two elements off the stack and compare them to see where one is greater than the other,...
Definition: Calculator.cpp:587
void PerformOperation(QVector< double > &results, QVector< double >::iterator arg1Start, QVector< double >::iterator arg1End, double operation(double))
Performs the mathematical operations on each argument.
Definition: Calculator.cpp:1037
double AddOperator(double a, double b)
Returns the result of additing a with b.
Definition: Calculator.cpp:92
void LessThanOrEqual()
Pop two elements off the stack and compare them to see where one is less than or equal to the other,...
Definition: Calculator.cpp:647
void ArctangentH()
Pops one element and push the inverse hyperbolic tangent.
Definition: Calculator.cpp:817
void Arctangent2()
Pops two elements and push the arctangent.
Definition: Calculator.cpp:827
int size() const
Returns the total number of pixels in the shape buffer.
Definition: Buffer.h:97
void Minimum2()
Not implemented in Calculator.cpp.
void MaximumLine()
Pop one element, then push the maximum on the stack.
Definition: Calculator.cpp:537
Adds specific functionality to C++ strings.
Definition: IString.h:165
void Exponent()
Pops two elements, computes the power then pushes the result on the stack The exponent has to be a sc...
Definition: Calculator.cpp:382
int StackSize()
Returns the current stack size.
Definition: Calculator.cpp:874
virtual void Clear()
Clear out the stack.
Definition: Calculator.cpp:1021
double NotEqualOperator(double a, double b)
Returns 1.0 is a is not equal to b.
Definition: Calculator.cpp:183
void Log()
Pop an element, compute its log, then push the result on the stack.
Definition: Calculator.cpp:419
void Secant()
Pops one element and push the secant.
Definition: Calculator.cpp:747
Calculator()
The code that performs math operations is designed to call a function and use the result.
Definition: Calculator.cpp:32
void MaximumPixel()
Pop two elements, then push the maximum on a pixel by pixel basis back on the stack.
Definition: Calculator.cpp:572
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
void NotEqual()
Pop two elements off the stack and compare them to see where one is not equal to the other,...
Definition: Calculator.cpp:662
double EqualOperator(double a, double b)
Returns 1.0 if a is equal ot b.
Definition: Calculator.cpp:144
void MinimumPixel()
Pop two elements, then push the minimum on a pixel by pixel basis back on the stack.
Definition: Calculator.cpp:557
void Negative()
Pops an element, negates it, then pushes the result.
Definition: Calculator.cpp:307
double LessThanOrEqualOperator(double a, double b)
Returns 1.0 if a is less than or eqaul to b.
Definition: Calculator.cpp:170
void And()
Pop two elements, AND them, then push the result on the stack.
Definition: Calculator.cpp:679