Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class mil.navy.nps.dis.EntityCoordinate

java.lang.Object
  |
  +--mil.navy.nps.dis.PduElement
        |
        +--mil.navy.nps.dis.EntityCoordinate

public class EntityCoordinate
extends PduElement
Version:
1.0
Author:
Don McGregor (http://www.stl.nps.navy.mil/~mcgredo)
Location:
http://www.stl.nps.navy.mil/dis-java-vrml/mil/navy/nps/dis/EntityCoordinate.java
Hierarchy Diagram:
Summary:
Location with respect to a particular entity shall be specified with respect to three orthogonal axes whose origin shall be the center of the bounding volume of the entity excluding its articulated and attached parts.
Explanation:
The EntityCoordinate class describes a position in 32-bit x,y,z coordinates relative to the entity's own coordinate system. The other major position class is "WorldCoordinate", which describes the position in 64-bit x, y, z "world" coords.

Note:
This is not really a record on its own for DIS, but simply a vector.
History:
16Dec96 /Don McGregor /New
10Mar97 /Don McGregor /Cleaned up for javadoc
16Apr97 /Don McGregor /PrintStream passed to printValues
12Aug97 /Don McGregor /elaborated printValues
8Dec97 /Ronan Fauglas /changes for documentation templates + complements in documentation
11Dec97 /Ronan Fauglas /changes access methods names from "variable()" to "getVariable()"
17Dec97 /Ronan Fauglas /bug fixes: changed sizeOf from 24 to 12
References:
DIS Data Dictionary: Entity Coordinate Vector Record
DIS specification : IEEE 1278.1, 5.3.33.1
See Also:
PduElement, mil.navy.nps.util.SerializationInterface, LinearAcceleration, LinearVelocity, WorldCoordinate

Field Summary
int sizeOf
          Constant value--size of a Entity Position Record; here :sizeOf = 12 bytes.
float x
          First coordinate of the entity, along X axis
float y
          Second coordinate of the entity, along Y axis
float z
          Third coordinate of the entity, along Z axis
 
Constructor Summary
EntityCoordinate()
          Constructs an new EntityCoordinate Object; the entity is at the origin.
EntityCoordinate(float pX, float pY, float pZ)
           
 
Method Summary
java.lang.Object clone()
           
void deSerialize(java.io.DataInputStream pInputStream)
           
float getX()
           
float getY()
           
float getZ()
           
int length()
           
void printValues(int indentLevel, java.io.PrintStream printStream)
           
void serialize(java.io.DataOutputStream outputStream)
           
void setX(float pX)
           
void setY(float pY)
           
void setZ(float pZ)
           
 
Methods inherited from class mil.navy.nps.dis.PduElement
clone, deSerialize, length, printValues, serialize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

x

protected float x
First coordinate of the entity, along X axis

y

protected float y
Second coordinate of the entity, along Y axis

z

protected float z
Third coordinate of the entity, along Z axis

sizeOf

public final int sizeOf
Constant value--size of a Entity Position Record; here :sizeOf = 12 bytes.
Constructor Detail

EntityCoordinate

public EntityCoordinate()
Constructs an new EntityCoordinate Object; the entity is at the origin.

EntityCoordinate

public EntityCoordinate(float pX,
                        float pY,
                        float pZ)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class PduElement

serialize

public void serialize(java.io.DataOutputStream outputStream)
Overrides:
serialize in class PduElement

deSerialize

public void deSerialize(java.io.DataInputStream pInputStream)
Overrides:
deSerialize in class PduElement

length

public int length()
Overrides:
length in class PduElement

printValues

public void printValues(int indentLevel,
                        java.io.PrintStream printStream)
Overrides:
printValues in class PduElement

getX

public float getX()

setX

public void setX(float pX)

getY

public float getY()

setY

public void setY(float pY)

getZ

public float getZ()

setZ

public void setZ(float pZ)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD