GeoTessCPP
2.2
Software to facilitate storage and retrieval of 3D information about the Earth.
|
Manages a single data value attached to a grid node. More...
#include <GeoTessData.h>
Public Member Functions | |
GeoTessDataValue (T v) | |
Standard constructor. More... | |
GeoTessDataValue () | |
Default constructor. More... | |
virtual GeoTessData * | copy () |
Returns a copy of this DataValue. 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 |
Returns value as one of six intrinsic types. 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 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 |
Returns the attribute at the input attribute index as a double value. More... | |
virtual void | getValue (int attributeIndex, float &val) const |
Returns the attribute at the input attribute index as a float value. More... | |
virtual void | getValue (int attributeIndex, LONG_INT &val) const |
Returns the attribute at the input attribute index as a long value. More... | |
virtual void | getValue (int attributeIndex, int &val) const |
Returns the attribute at the input attribute index as a int value. More... | |
virtual void | getValue (int attributeIndex, short &val) const |
Returns the attribute at the input attribute index as a short value. More... | |
virtual void | getValue (int attributeIndex, byte &val) const |
Returns the attribute at the input attribute index as a byte value. More... | |
virtual void | getValues (double values[], const int &n) |
Copy value into the supplied array at index 0 as a double value. More... | |
virtual void | getValues (float values[], const int &n) |
Copy value into the supplied array at index 0 as a float value. More... | |
virtual void | getValues (LONG_INT values[], const int &n) |
Copy value into the supplied array at index 0 as a LONG_INT value. More... | |
virtual void | getValues (int values[], const int &n) |
Copy value into the supplied array at index 0 as an int value. More... | |
virtual void | getValues (short values[], const int &n) |
Copy value into the supplied array at index 0 as a short value. More... | |
virtual void | getValues (byte values[], const int &n) |
Copy value into the supplied array at index 0 as a byte value. More... | |
virtual bool | isNaN (int attributeIndex) const |
Returns true if the specified attribute is NaN. More... | |
bool | operator== (const GeoTessDataValue< T > &d) const |
Return true if the input DataValue<T> object (d) equals this DataValue<T> object. More... | |
virtual bool | operator== (const GeoTessData &d) const |
Return true if the input DataValue<T> object (d) equals this DataValue<T> object. More... | |
virtual GeoTessData & | setValue (int attributeIndex, double v) |
Set the value at the input attribute index to the input intrinsic. 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 |
Return size. More... | |
![]() | |
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 LONG_INT | getMemory () |
Additional Inherited Members | |
![]() | |
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) |
Manages a single data value attached to a grid node.
Manages the data values attached to single grid node defined as a single value of type T (See DataType for supported types). The number of stored values is always 1 for this object.
|
inline |
Standard constructor.
Sets value.
|
inline |
Default constructor.
|
inlinevirtual |
Returns a copy of this DataValue.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a bute value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Retrieve the DataType of this Data object.
One of DOUBLE, FLOAT, LONG, INT SHORT, BYTE
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Returns value as one of six intrinsic types.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a float value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a int value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a LONG_INT value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a short value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Returns the attribute at the input attribute index as a double value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Returns the attribute at the input attribute index as a float value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Returns the attribute at the input attribute index as a long value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Returns the attribute at the input attribute index as a int value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Returns the attribute at the input attribute index as a short value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Returns the attribute at the input attribute index as a byte value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a double value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a float value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a LONG_INT value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Copy value into the supplied array at index 0 as an int value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a short value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a byte value.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
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.
|
inline |
Return true if the input DataValue<T> object (d) equals this DataValue<T> object.
|
inlinevirtual |
Return true if the input DataValue<T> object (d) equals this DataValue<T> object.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
Set the value at the input attribute index to the input intrinsic.
Reimplemented from geotess::GeoTessData.
|
inlinevirtual |
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 from geotess::GeoTessData.
|
inlinevirtual |
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 from geotess::GeoTessData.
|
inlinevirtual |
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 from geotess::GeoTessData.
|
inlinevirtual |
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 from geotess::GeoTessData.
|
inlinevirtual |
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 from geotess::GeoTessData.
|
inlinevirtual |
Return size.
Reimplemented from geotess::GeoTessData.