GeoTessCPP
2.0.0
Software to facilitate storage and retrieval of 3D information about the Earth.
|
#include <GeoTessDataArray.h>
Public Member Functions | |
GeoTessDataArray (T v[], const int &n) | |
GeoTessDataArray (const vector< T > &v) | |
GeoTessDataArray (const int &n) | |
virtual GeoTessDataArray< T > * | copy () |
virtual byte | getByte (int attributeIndex) const |
virtual const GeoTessDataType & | getDataType () const |
virtual double | getDouble (int attributeIndex) const |
virtual float | getFloat (int attributeIndex) const |
virtual int | getInt (int attributeIndex) const |
virtual LONG_INT | getLong (int attributeIndex) const |
virtual short | getShort (int attributeIndex) const |
virtual void | getValue (int attributeIndex, double &val) const |
virtual void | getValue (int attributeIndex, float &val) const |
virtual void | getValue (int attributeIndex, LONG_INT &val) const |
virtual void | getValue (int attributeIndex, int &val) const |
virtual void | getValue (int attributeIndex, short &val) const |
virtual void | getValue (int attributeIndex, byte &val) const |
virtual void | getValues (double vals[], const int &n) |
virtual void | getValues (float vals[], const int &n) |
virtual void | getValues (LONG_INT vals[], const int &n) |
virtual void | getValues (int vals[], const int &n) |
virtual void | getValues (short vals[], const int &n) |
virtual void | getValues (byte vals[], const int &n) |
virtual bool | isNaN (int attributeIndex) const |
bool | operator== (const GeoTessDataArray< T > &d) const |
virtual bool | operator== (const GeoTessData &d) const |
virtual GeoTessData & | setValue (int attributeIndex, double v) |
virtual GeoTessData & | setValue (int attributeIndex, float v) |
virtual GeoTessData & | setValue (int attributeIndex, LONG_INT v) |
virtual GeoTessData & | setValue (int attributeIndex, int v) |
virtual GeoTessData & | setValue (int attributeIndex, short v) |
virtual GeoTessData & | setValue (int attributeIndex, byte v) |
virtual int | size () const |
Manages the data values attached to single grid node defined as an array of T type attributes (See DataType for supported types). The size of the array is always nAttributes as defined in the Data object.
geotess::GeoTessDataArray< T >::GeoTessDataArray | ( | T | v[], |
const int & | n | ||
) | [inline] |
Standard constructor. Copies the contents of the new DataArray from the provided input array.
geotess::GeoTessDataArray< T >::GeoTessDataArray | ( | const vector< T > & | v | ) | [inline] |
Standard constructor. Copies the contents of the new DataArray from the provided input array.
geotess::GeoTessDataArray< T >::GeoTessDataArray | ( | const int & | n | ) | [inline] |
Standard constructor. Creates a new array of n entries and initializes each to 0
virtual GeoTessDataArray<T>* geotess::GeoTessDataArray< T >::copy | ( | ) | [inline, virtual] |
Returns a deep copy of this DataArray<T> object.
virtual byte geotess::GeoTessDataArray< T >::getByte | ( | int | attributeIndex | ) | const [inline, virtual] |
Returns value defined for the input attribute index as a byte
Reimplemented from geotess::GeoTessData.
virtual const GeoTessDataType& geotess::GeoTessDataArray< T >::getDataType | ( | ) | const [inline, virtual] |
Retrieve the DataType of this Data object. One of DOUBLE, FLOAT, LONG, INT SHORT, BYTE
Reimplemented from geotess::GeoTessData.
virtual double geotess::GeoTessDataArray< T >::getDouble | ( | int | attributeIndex | ) | const [inline, virtual] |
Returns value defined for the input attribute index as a double
Reimplemented from geotess::GeoTessData.
virtual float geotess::GeoTessDataArray< T >::getFloat | ( | int | attributeIndex | ) | const [inline, virtual] |
Returns value defined for the input attribute index as a float
Reimplemented from geotess::GeoTessData.
virtual int geotess::GeoTessDataArray< T >::getInt | ( | int | attributeIndex | ) | const [inline, virtual] |
Returns value defined for the input attribute index as an int
Reimplemented from geotess::GeoTessData.
virtual LONG_INT geotess::GeoTessDataArray< T >::getLong | ( | int | attributeIndex | ) | const [inline, virtual] |
Returns value defined for the input attribute index as a long
Reimplemented from geotess::GeoTessData.
virtual short geotess::GeoTessDataArray< T >::getShort | ( | int | attributeIndex | ) | const [inline, virtual] |
Returns value defined for the input attribute index as a short
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValue | ( | int | attributeIndex, |
double & | val | ||
) | const [inline, virtual] |
Returns the attribute at the input attribute index as a double value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValue | ( | int | attributeIndex, |
float & | val | ||
) | const [inline, virtual] |
Returns the attribute at the input attribute index as a float value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValue | ( | int | attributeIndex, |
LONG_INT & | val | ||
) | const [inline, virtual] |
Returns the attribute at the input attribute index as a long value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValue | ( | int | attributeIndex, |
int & | val | ||
) | const [inline, virtual] |
Returns the attribute at the input attribute index as a int value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValue | ( | int | attributeIndex, |
short & | val | ||
) | const [inline, virtual] |
Returns the attribute at the input attribute index as a short value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValue | ( | int | attributeIndex, |
byte & | val | ||
) | const [inline, virtual] |
Returns the attribute at the input attribute index as a byte value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValues | ( | double | vals[], |
const int & | n | ||
) | [inline, virtual] |
Copy the first n values into the supplied array as a double value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValues | ( | float | vals[], |
const int & | n | ||
) | [inline, virtual] |
Copy the first n values into the supplied array as a float value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValues | ( | LONG_INT | vals[], |
const int & | n | ||
) | [inline, virtual] |
Copy the first n values into the supplied array as a LONG_INT value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValues | ( | int | vals[], |
const int & | n | ||
) | [inline, virtual] |
Copy the first n values into the supplied array as an int value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValues | ( | short | vals[], |
const int & | n | ||
) | [inline, virtual] |
Copy the first n values into the supplied array as a short value.
Reimplemented from geotess::GeoTessData.
virtual void geotess::GeoTessDataArray< T >::getValues | ( | byte | vals[], |
const int & | n | ||
) | [inline, virtual] |
Copy the first n values into the supplied array as a byte value.
Reimplemented from geotess::GeoTessData.
virtual bool geotess::GeoTessDataArray< T >::isNaN | ( | int | attributeIndex | ) | const [inline, virtual] |
Returns true if the specified attribute is NaN. when Data values are of type Byte, Short, Int and Long, this method always returns false since those types do not support NaN. float and double types are overridden and returns true if value isNaN and false otherwise.
attributeIndex | The attribute value to be tested. |
Reimplemented from geotess::GeoTessData.
bool geotess::GeoTessDataArray< T >::operator== | ( | const GeoTessDataArray< T > & | d | ) | const [inline] |
Return true if the input DataArray<T> object (d) equals this DataArray<T> object.
virtual bool geotess::GeoTessDataArray< T >::operator== | ( | const GeoTessData & | d | ) | const [inline, virtual] |
Return true if the input DataArray<T> object (d) equals this DataArray<T> object.
Reimplemented from geotess::GeoTessData.
virtual GeoTessData& geotess::GeoTessDataArray< T >::setValue | ( | int | attributeIndex, |
double | v | ||
) | [inline, virtual] |
Set the value at the input attribute index to the input value.
Reimplemented from geotess::GeoTessData.
virtual GeoTessData& geotess::GeoTessDataArray< T >::setValue | ( | int | attributeIndex, |
float | v | ||
) | [inline, virtual] |
Set the value at the input attribute index to the input value.
Reimplemented from geotess::GeoTessData.
virtual GeoTessData& geotess::GeoTessDataArray< T >::setValue | ( | int | attributeIndex, |
LONG_INT | v | ||
) | [inline, virtual] |
Set the value at the input attribute index to the input value.
Reimplemented from geotess::GeoTessData.
virtual GeoTessData& geotess::GeoTessDataArray< T >::setValue | ( | int | attributeIndex, |
int | v | ||
) | [inline, virtual] |
Set the value at the input attribute index to the input value.
Reimplemented from geotess::GeoTessData.
virtual GeoTessData& geotess::GeoTessDataArray< T >::setValue | ( | int | attributeIndex, |
short | v | ||
) | [inline, virtual] |
Set the value at the input attribute index to the input value.
Reimplemented from geotess::GeoTessData.
virtual GeoTessData& geotess::GeoTessDataArray< T >::setValue | ( | int | attributeIndex, |
byte | v | ||
) | [inline, virtual] |
Set the value at the input attribute index to the input value.
Reimplemented from geotess::GeoTessData.
virtual int geotess::GeoTessDataArray< T >::size | ( | ) | const [inline, virtual] |
Returns the number of entries in the array of values.
Reimplemented from geotess::GeoTessData.