GeoTessCPP
2.2
Software to facilitate storage and retrieval of 3D information about the Earth.
|
Abstract base class that manages the data values attached to a single grid point. More...
#include <GeoTessData.h>
Public Member Functions | |
virtual int | class_size () const |
Returns the class size. More... | |
template<typename T > | |
void | fill (T fillValue) |
Fill the Data object values with the input fillValue, casting the input value to the intrinsic type of this Data object if necessary. More... | |
virtual byte | getByte (int attributeIndex) const |
Retrieve the value of the attribute at the specified attribute index as a bute value. More... | |
virtual const GeoTessDataType & | getDataType () const |
Retrieve the DataType of this Data object. More... | |
virtual double | getDouble (int attributeIndex) const |
Retrieve the value of the attribute at the specified attribute index as a double value. More... | |
virtual float | getFloat (int attributeIndex) const |
Retrieve the value of the attribute at the specified attribute index as a float value. More... | |
virtual int | getInt (int attributeIndex) const |
Retrieve the value of the attribute at the specified attribute index as a int value. More... | |
virtual LONG_INT | getLong (int attributeIndex) const |
Retrieve the value of the attribute at the specified attribute index as a LONG_INT value. More... | |
virtual LONG_INT | getMemory () |
virtual short | getShort (int attributeIndex) const |
Retrieve the value of the attribute at the specified attribute index as a short value. More... | |
virtual void | getValue (int attributeIndex, double &val) const |
Retrieve the attribute at the input attribute index as a double value. More... | |
virtual void | getValue (int attributeIndex, float &val) const |
Retrieve the attribute at the input attribute index as a float value. More... | |
virtual void | getValue (int attributeIndex, LONG_INT &val) const |
Retrieve the attribute at the input attribute index as a LONG_INT value. More... | |
virtual void | getValue (int attributeIndex, int &val) const |
Retrieve the attribute at the input attribute index as a int value. More... | |
virtual void | getValue (int attributeIndex, short &val) const |
Retrieve the attribute at the input attribute index as a short value. More... | |
virtual void | getValue (int attributeIndex, byte &val) const |
Retrieve the attribute at the input attribute index as a byte value. More... | |
virtual void | getValues (double values[], const int &n) |
Copy the first n data values into the supplied array. More... | |
virtual void | getValues (float values[], const int &n) |
Copy the first n data values into the supplied array. More... | |
virtual void | getValues (LONG_INT values[], const int &n) |
Copy the first n data values into the supplied array. More... | |
virtual void | getValues (int values[], const int &n) |
Copy the first n data values into the supplied array. More... | |
virtual void | getValues (short values[], const int &n) |
Copy the first n data values into the supplied array. More... | |
virtual void | getValues (byte values[], const int &n) |
Copy the first n data values into the supplied array. More... | |
virtual bool | isNaN (int attributeIndex) const |
Returns true if the specified attribute is NaN. More... | |
virtual bool | operator== (const GeoTessData &d) const |
Return true if the input Data object data type is the same as this Data object. More... | |
virtual GeoTessData & | setValue (int attributeIndex, double v) |
Set the value of the specified attributeIndex and return a reference to this Data object. More... | |
virtual GeoTessData & | setValue (int attributeIndex, float v) |
Set the value of the specified attributeIndex and return a reference to this Data object. More... | |
virtual GeoTessData & | setValue (int attributeIndex, LONG_INT v) |
Set the value of the specified attributeIndex and return a reference to this Data object. More... | |
virtual GeoTessData & | setValue (int attributeIndex, int v) |
Set the value of the specified attributeIndex and return a reference to this Data object. More... | |
virtual GeoTessData & | setValue (int attributeIndex, short v) |
Set the value of the specified attributeIndex and return a reference to this Data object. More... | |
virtual GeoTessData & | setValue (int attributeIndex, byte v) |
Set the value of the specified attributeIndex and return a reference to this Data object. More... | |
virtual int | size () const |
Retrieve the number of attributes stored in this Data object. More... | |
Static Public Member Functions | |
static int | class_count () |
Returns the class instance count. More... | |
static string | class_name () |
Returns the class name. More... | |
static GeoTessData * | getData (const GeoTessDataType &dataType, int nAttributes) |
Factory method that will return a GeoTessData of the specified GeoTessDataType with all values initialized to 0. More... | |
static GeoTessData * | getData (double values[], const int &size) |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1). More... | |
static GeoTessData * | getData (const vector< double > &values) |
static GeoTessData * | getData (float values[], const int &size) |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1). More... | |
static GeoTessData * | getData (const vector< float > &values) |
static GeoTessData * | getData (LONG_INT values[], const int &size) |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1). More... | |
static GeoTessData * | getData (const vector< LONG_INT > &values) |
static GeoTessData * | getData (int values[], const int &size) |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1). More... | |
static GeoTessData * | getData (const vector< int > &values) |
static GeoTessData * | getData (short values[], const int &size) |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1). More... | |
static GeoTessData * | getData (const vector< short > &values) |
static GeoTessData * | getData (byte values[], const int &size) |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1). More... | |
static GeoTessData * | getData (const vector< byte > &values) |
Abstract base class that manages the data values attached to a single grid point.
Abstract class that manages the data values attached to single grid point in the model. Data objects have no information about the position in the model where the data is located.
|
inlinestatic |
Returns the class instance count.
|
inlinestatic |
Returns the class name.
|
inlinevirtual |
Returns the class size.
|
inline |
Fill the Data object values with the input fillValue, casting the input value to the intrinsic type of this Data object if necessary.
fillValue | the value that is to replace all existing Data values. |
|
virtual |
Retrieve the value of the attribute at the specified attribute index as a bute value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
static |
Factory method that will return a GeoTessData of the specified GeoTessDataType with all values initialized to 0.
dataType | the type of the requested GeoTessData object. |
nAttributes |
|
static |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1).
The data values are copied from the supplied array of values into new Data structures.
Caller assumes ownership of the returned Data object.
values | an array of data values |
size | the number of data values in the array |
|
static |
|
static |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1).
The data values are copied from the supplied array of values into new Data structures.
Caller assumes ownership of the returned Data object.
values | an array of data values |
size | the number of data values in the array |
|
static |
|
static |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1).
The data values are copied from the supplied array of values into new Data structures.
Caller assumes ownership of the returned Data object.
values | an array of data values |
size | the number of data values in the array |
|
static |
|
static |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1).
The data values are copied from the supplied array of values into new Data structures.
Caller assumes ownership of the returned Data object.
values | an array of data values |
size | the number of data values in the array |
|
static |
|
static |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1).
The data values are copied from the supplied array of values into new Data structures.
Caller assumes ownership of the returned Data object.
values | an array of data values |
size | the number of data values in the array |
|
static |
|
static |
Factory method that will return a pointer to a Data object of the correct derived type (DataValue if size==1 or DataValue if size > 1).
The data values are copied from the supplied array of values into new Data structures.
Caller assumes ownership of the returned Data object.
values | an array of data values |
size | the number of data values in the array |
|
static |
|
virtual |
Retrieve the DataType of this Data object.
One of DOUBLE, FLOAT, LONG, INT SHORT, BYTE
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the value of the attribute at the specified attribute index as a double value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the value of the attribute at the specified attribute index as a float value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the value of the attribute at the specified attribute index as a int value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the value of the attribute at the specified attribute index as a LONG_INT value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Reimplemented in geotess::GeoTessDataArray< T >.
|
virtual |
Retrieve the value of the attribute at the specified attribute index as a short value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the attribute at the input attribute index as a double value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the attribute at the input attribute index as a float value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the attribute at the input attribute index as a LONG_INT value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the attribute at the input attribute index as a int value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the attribute at the input attribute index as a short value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the attribute at the input attribute index as a byte value.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Copy the first n data values into the supplied array.
values | the array into which data values will be copied. |
n | the number of values to copy. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Copy the first n data values into the supplied array.
values | the array into which data values will be copied. |
n | the number of values to copy. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Copy the first n data values into the supplied array.
values | the array into which data values will be copied. |
n | the number of values to copy. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Copy the first n data values into the supplied array.
values | the array into which data values will be copied. |
n | the number of values to copy. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Copy the first n data values into the supplied array.
values | the array into which data values will be copied. |
n | the number of values to copy. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Copy the first n data values into the supplied array.
values | the array into which data values will be copied. |
n | the number of values to copy. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
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 in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
inlinevirtual |
Return true if the input Data object data type is the same as this Data object.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Set the value of the specified attributeIndex and return a reference to this Data object.
attributeIndex | the index of the attribute that is to be modified. |
v | the new value that is to replace the old value. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Set the value of the specified attributeIndex and return a reference to this Data object.
attributeIndex | the index of the attribute that is to be modified. |
v | the new value that is to replace the old value. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Set the value of the specified attributeIndex and return a reference to this Data object.
attributeIndex | the index of the attribute that is to be modified. |
v | the new value that is to replace the old value. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Set the value of the specified attributeIndex and return a reference to this Data object.
attributeIndex | the index of the attribute that is to be modified. |
v | the new value that is to replace the old value. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Set the value of the specified attributeIndex and return a reference to this Data object.
attributeIndex | the index of the attribute that is to be modified. |
v | the new value that is to replace the old value. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Set the value of the specified attributeIndex and return a reference to this Data object.
attributeIndex | the index of the attribute that is to be modified. |
v | the new value that is to replace the old value. |
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.
|
virtual |
Retrieve the number of attributes stored in this Data object.
Reimplemented in geotess::GeoTessDataArray< T >, and geotess::GeoTessDataValue< T >.