The Robot Application Programming Interface Delegate Project
RAPID Logo

ShortMapLayer Class Reference

Map layer data for data samples reduced to 8 bit values. More...

Inheritance diagram for ShortMapLayer:
Collaboration diagram for ShortMapLayer:

List of all members.

Public Member Functions

 ShortMapLayer ()
 ShortMapLayer (ShortMapLayer other)
boolean equals (Object o)
int hashCode ()
Object copy_from (Object src)
 This is the implementation of the Copyable interface.
String toString ()
String toString (String desc, int indent)

Static Public Member Functions

static Object create ()

Public Attributes

double offset
 Data value offset.
float scale
 Data value scale.
short density
 Sampling density.
gov.nasa.rapid.idl.dds.rapid.ShortSequence128K data = (gov.nasa.rapid.idl.dds.rapid.ShortSequence128K) gov.nasa.rapid.idl.dds.rapid.ShortSequence128K.create()
 Vector of 16 bit data samples.

Detailed Description

Data structure holding a vector of data points. To reduce footprint, the data is sent as 8 bit values (octet). The data-structure holds an offset and a scaling factor, to restore the original data samples. e.g. double value = data * scale + offset The density parameter allows a layer to be of lower resolution than the map itself. Map layer data for data samples reduced to 16 bit values. Data structure holding a vector of data points. To reduce footprint, the data is sent as 16 bit values (short). The data-structure holds an offset and a scaling factor, to restore the original data samples. e.g. double value = data * scale + offset The density parameter allows a layer to be of lower resolution than the map itself.


Constructor & Destructor Documentation

Here is the call graph for this function:


Member Function Documentation

Object copy_from ( Object  src)

This method will perform a deep copy of src This method could be placed into ShortMapLayerTypeSupport rather than here by using the -noCopyable option to rtiddsgen.

Parameters:
srcThe Object which contains the data to be copied.
Returns:
Returns this.
Exceptions:
NullPointerExceptionIf src is null.
ClassCastExceptionIf src is not the same type as this.
See also:
com.rti.dds.infrastructure.Copyable.copy_from(java.lang.Object)

Here is the call graph for this function:

static Object create ( ) [static]

Here is the call graph for this function:

boolean equals ( Object  o)

Here is the call graph for this function:

int hashCode ( )

Here is the call graph for this function:

String toString ( String  desc,
int  indent 
)

Here is the call graph for this function:

String toString ( )

Member Data Documentation

gov.nasa.rapid.idl.dds.rapid.ShortSequence128K data = (gov.nasa.rapid.idl.dds.rapid.ShortSequence128K) gov.nasa.rapid.idl.dds.rapid.ShortSequence128K.create()
short density

A full resolution layer has a density of 1, a half resolution (in both dimensions) layer has a density of 2, etc.

double offset
float scale

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines