Isis 3 Programmer Reference
Isis::DataValue Class Reference

This class is used to define what kind of data is being pushed onto the cube calculator. More...

#include <CubeCalculator.h>

Collaboration diagram for Isis::DataValue:
Collaboration graph

Public Types

enum  DataValueType {
  Constant , Sample , Line , Band ,
  CubeData , InaData , EmaData , PhaData ,
  LatData , LonData , ResData , RadiusData ,
  InalData , EmalData , PhalData , InacData ,
  EmacData , PhacData
}
 This is used to tell what kind of data to push onto the RPN calculator. More...
 

Public Member Functions

 DataValue ()
 Constructs a default DataValue.
 
 DataValue (DataValueType type)
 Constructs a DataValue with a given type.
 
 DataValue (DataValueType type, int cubeIndex)
 Constructs a DataValue with a given type and associated cube index.
 
 DataValue (DataValueType type, double value)
 Constructs a DataValue with a given type and constant value.
 
DataValueType type ()
 Accesses the type of the DataValue.
 
int cubeIndex ()
 Accesses the cube index of the DataValue.
 
double constant ()
 Accesses the constant value of the DataValue.
 

Private Attributes

int m_cubeIndex
 The index of the associated cube.
 
double m_constantValue
 Stored constant value.
 
DataValueType m_type
 Type of data stored.
 

Detailed Description

This class is used to define what kind of data is being pushed onto the cube calculator.

Author
????-??-?? Unknown

Definition at line 132 of file CubeCalculator.h.

Member Enumeration Documentation

◆ DataValueType

This is used to tell what kind of data to push onto the RPN calculator.

Enumerator
Constant 

A single constant value.

Sample 

Current sample number.

Line 

Current line number.

Band 

Current band number.

CubeData 

A brick of cube data.

InaData 

Incidence camera data.

EmaData 

Emission camera data.

PhaData 

Phase camera data.

LatData 

Latitude camera data.

LonData 

Longitude camera data.

ResData 

Pixel resolution camera data.

RadiusData 

DEM radius.

InalData 

Local incidence camera data.

EmalData 

Local emission camera data.

PhalData 

Local phase camera data.

InacData 

Center incidence camera data.

EmacData 

Center emission camera data.

PhacData 

Center phase camera data.

Definition at line 135 of file CubeCalculator.h.

Constructor & Destructor Documentation

◆ DataValue() [1/4]

Isis::DataValue::DataValue ( )

Constructs a default DataValue.

This method constructs a default DataValue with its type, cube index, and constant value set to -1, -1, and 0.0, respectively.

Definition at line 840 of file CubeCalculator.cpp.

References m_constantValue, m_cubeIndex, and m_type.

◆ DataValue() [2/4]

Isis::DataValue::DataValue ( DataValueType type)

Constructs a DataValue with a given type.

This method constructs a DataValue with the passed type. The DataValue's constant value is set to 0.0 and its cube index is set to -1.

Parameters
typeThe DataValueType for the DataValue.

Definition at line 855 of file CubeCalculator.cpp.

References m_constantValue, m_cubeIndex, m_type, and type().

◆ DataValue() [3/4]

Isis::DataValue::DataValue ( DataValueType type,
int cubeIndex )

Constructs a DataValue with a given type and associated cube index.

This method constructs a DataValue with the passed type and a cube index corresponding to the data's associated cube. The DataValue's constant value is set to 0.0.

Parameters
typeThe DataValueType for the DataValue.
cubeIndexIndex of the associated cube the data corresponds with.

Definition at line 871 of file CubeCalculator.cpp.

References cubeIndex(), m_constantValue, m_cubeIndex, m_type, and type().

◆ DataValue() [4/4]

Isis::DataValue::DataValue ( DataValueType type,
double value )

Constructs a DataValue with a given type and constant value.

This method constructs a DataValue with the passed type and passed constant value. The DataValue's cube index is set to -1. If the type passed is DataValue::Constant, then its constant value is set to the passed value.

Parameters
typeThe DataValueType for the DataValue.
valueThe constant value for the DataValue.

Definition at line 888 of file CubeCalculator.cpp.

References Constant, m_constantValue, m_cubeIndex, m_type, and type().

Member Function Documentation

◆ constant()

double Isis::DataValue::constant ( )

Accesses the constant value of the DataValue.

Returns
double Returns the DataValue's constant value.

Definition at line 923 of file CubeCalculator.cpp.

References m_constantValue.

Referenced by Isis::CubeCalculator::runCalculations().

◆ cubeIndex()

int Isis::DataValue::cubeIndex ( )

Accesses the cube index of the DataValue.

Returns
int Returns the DataValue's cube index.

Definition at line 913 of file CubeCalculator.cpp.

References m_cubeIndex.

Referenced by DataValue(), and Isis::CubeCalculator::runCalculations().

◆ type()

DataValue::DataValueType Isis::DataValue::type ( )

Accesses the type of the DataValue.

Returns
DataValue::DataValueType Returns the DataValue's type.

Definition at line 903 of file CubeCalculator.cpp.

References m_type.

Referenced by DataValue(), DataValue(), DataValue(), and Isis::CubeCalculator::runCalculations().

Member Data Documentation

◆ m_constantValue

double Isis::DataValue::m_constantValue
private

Stored constant value.

Definition at line 167 of file CubeCalculator.h.

Referenced by constant(), DataValue(), DataValue(), DataValue(), and DataValue().

◆ m_cubeIndex

int Isis::DataValue::m_cubeIndex
private

The index of the associated cube.

Definition at line 166 of file CubeCalculator.h.

Referenced by cubeIndex(), DataValue(), DataValue(), DataValue(), and DataValue().

◆ m_type

DataValueType Isis::DataValue::m_type
private

Type of data stored.

Definition at line 169 of file CubeCalculator.h.

Referenced by DataValue(), DataValue(), DataValue(), DataValue(), and type().


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