GeoTessCPP
2.6.1
Software to facilitate storage and retrieval of 3D information about the Earth.
|
Manages a single data value attached to a grid node. More...
#include <GeoTessDataValue.h>
Public Member Functions | |
GeoTessDataValue (T v) | |
GeoTessDataValue () | |
virtual const GeoTessDataType & | getDataType () const |
virtual int | size () const |
bool | operator== (const GeoTessDataValue< T > &d) const |
virtual bool | operator== (const GeoTessData &d) const |
virtual double | getDouble (int attributeIndex) const |
virtual float | getFloat (int attributeIndex) const |
virtual LONG_INT | getLong (int attributeIndex) const |
virtual int | getInt (int attributeIndex) const |
virtual short | getShort (int attributeIndex) const |
virtual byte | getByte (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 values[], const int &n) |
virtual void | getValues (float values[], const int &n) |
virtual void | getValues (LONG_INT values[], const int &n) |
virtual void | getValues (int values[], const int &n) |
virtual void | getValues (short values[], const int &n) |
virtual void | getValues (byte values[], const int &n) |
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 bool | isNaN (int attributeIndex) const |
virtual GeoTessData * | copy () |
![]() | |
virtual int | class_size () const |
virtual LONG_INT | getMemory () |
template<typename T > | |
void | fill (T fillValue) |
Additional Inherited Members | |
![]() | |
static string | class_name () |
static int | class_count () |
static GeoTessData * | getData (const GeoTessDataType &dataType, int nAttributes) |
static GeoTessData * | getData (double values[], const int &size) |
static GeoTessData * | getData (const vector< double > &values) |
static GeoTessData * | getData (float values[], const int &size) |
static GeoTessData * | getData (const vector< float > &values) |
static GeoTessData * | getData (LONG_INT values[], const int &size) |
static GeoTessData * | getData (const vector< LONG_INT > &values) |
static GeoTessData * | getData (int values[], const int &size) |
static GeoTessData * | getData (const vector< int > &values) |
static GeoTessData * | getData (short values[], const int &size) |
static GeoTessData * | getData (const vector< short > &values) |
static GeoTessData * | getData (byte values[], const int &size) |
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.
Definition at line 74 of file GeoTessDataValue.h.
|
inline |
Standard constructor. Sets value.
Definition at line 88 of file GeoTessDataValue.h.
|
inline |
Default constructor.
Definition at line 93 of file GeoTessDataValue.h.
|
inlinevirtual |
Returns a copy of this DataValue.
Definition at line 305 of file GeoTessDataValue.h.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a bute value.
Reimplemented from geotess::GeoTessData.
Definition at line 198 of file GeoTessDataValue.h.
|
inlinevirtual |
Retrieve the DataType of this Data object. One of DOUBLE, FLOAT, LONG, INT SHORT, BYTE
Reimplemented from geotess::GeoTessData.
Definition at line 160 of file GeoTessDataValue.h.
|
inlinevirtual |
Returns value as one of six intrinsic types.
Reimplemented from geotess::GeoTessData.
Definition at line 183 of file GeoTessDataValue.h.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a float value.
Reimplemented from geotess::GeoTessData.
Definition at line 186 of file GeoTessDataValue.h.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a int value.
Reimplemented from geotess::GeoTessData.
Definition at line 192 of file GeoTessDataValue.h.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a LONG_INT value.
Reimplemented from geotess::GeoTessData.
Definition at line 189 of file GeoTessDataValue.h.
|
inlinevirtual |
Retrieve the value of the attribute at the specified attribute index as a short value.
Reimplemented from geotess::GeoTessData.
Definition at line 195 of file GeoTessDataValue.h.
|
inlinevirtual |
Returns the attribute at the input attribute index as a byte value.
Reimplemented from geotess::GeoTessData.
Definition at line 235 of file GeoTessDataValue.h.
|
inlinevirtual |
Returns the attribute at the input attribute index as a double value.
Reimplemented from geotess::GeoTessData.
Definition at line 205 of file GeoTessDataValue.h.
|
inlinevirtual |
Returns the attribute at the input attribute index as a float value.
Reimplemented from geotess::GeoTessData.
Definition at line 211 of file GeoTessDataValue.h.
|
inlinevirtual |
Returns the attribute at the input attribute index as a int value.
Reimplemented from geotess::GeoTessData.
Definition at line 223 of file GeoTessDataValue.h.
|
inlinevirtual |
Returns the attribute at the input attribute index as a long value.
Reimplemented from geotess::GeoTessData.
Definition at line 217 of file GeoTessDataValue.h.
|
inlinevirtual |
Returns the attribute at the input attribute index as a short value.
Reimplemented from geotess::GeoTessData.
Definition at line 229 of file GeoTessDataValue.h.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a byte value.
Reimplemented from geotess::GeoTessData.
Definition at line 266 of file GeoTessDataValue.h.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a double value.
Reimplemented from geotess::GeoTessData.
Definition at line 241 of file GeoTessDataValue.h.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a float value.
Reimplemented from geotess::GeoTessData.
Definition at line 246 of file GeoTessDataValue.h.
|
inlinevirtual |
Copy value into the supplied array at index 0 as an int value.
Reimplemented from geotess::GeoTessData.
Definition at line 256 of file GeoTessDataValue.h.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a LONG_INT value.
Reimplemented from geotess::GeoTessData.
Definition at line 251 of file GeoTessDataValue.h.
|
inlinevirtual |
Copy value into the supplied array at index 0 as a short value.
Reimplemented from geotess::GeoTessData.
Definition at line 261 of file GeoTessDataValue.h.
|
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.
Definition at line 300 of file GeoTessDataValue.h.
|
inlinevirtual |
Return true if the input DataValue<T> object (d) equals this DataValue<T> object.
Reimplemented from geotess::GeoTessData.
Definition at line 178 of file GeoTessDataValue.h.
|
inline |
Return true if the input DataValue<T> object (d) equals this DataValue<T> object.
Definition at line 171 of file GeoTessDataValue.h.
|
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.
Definition at line 286 of file GeoTessDataValue.h.
|
inlinevirtual |
Set the value at the input attribute index to the input intrinsic.
Reimplemented from geotess::GeoTessData.
Definition at line 271 of file GeoTessDataValue.h.
|
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.
Definition at line 274 of file GeoTessDataValue.h.
|
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.
Definition at line 280 of file GeoTessDataValue.h.
|
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.
Definition at line 277 of file GeoTessDataValue.h.
|
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.
Definition at line 283 of file GeoTessDataValue.h.
|
inlinevirtual |
Return size.
Reimplemented from geotess::GeoTessData.
Definition at line 165 of file GeoTessDataValue.h.