The Robot Application Programming Interface Delegate Project
RAPID Logo

OctetMapLayer Class Reference

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

Inheritance diagram for OctetMapLayer:
Collaboration diagram for OctetMapLayer:

List of all members.

Public Member Functions

 OctetMapLayer ()
 OctetMapLayer (OctetMapLayer 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.OctetSequence128K data = (gov.nasa.rapid.idl.dds.rapid.OctetSequence128K) gov.nasa.rapid.idl.dds.rapid.OctetSequence128K.create()
 Vector of 8 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.


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 OctetMapLayerTypeSupport 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.OctetSequence128K data = (gov.nasa.rapid.idl.dds.rapid.OctetSequence128K) gov.nasa.rapid.idl.dds.rapid.OctetSequence128K.create()
short density

A full resolution layer has a density of 1, a half resolution 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