deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.rendering.r3d.multiresolution
Class Node

java.lang.Object
  extended by org.deegree.rendering.r3d.multiresolution.Node

public class Node
extends Object

A node of a MultiresolutionMesh.

Version:
$Revision$
Author:
Markus Schneider, last edited by: $Author$

Field Summary
 float[][] bbox
          Bounding box of this node.
 int highestOutgoingArc
          Highest id of all arcs leaving from this node.
 int id
          Id of the node.
 int lowestIncomingArc
          Lowest id of all arcs entering this node.
 int lowestOutgoingArc
          Lowest id of all arcs leaving from this node.
static int SIZE
          Size of binary representation (in bytes)
 
Constructor Summary
Node(MultiresolutionMesh mt, int id, ByteBuffer buffer, int baseOffset)
          Creates a new Node instance.
 
Method Summary
static void store(ByteBuffer target, int lowestOutgoingArc, int highestOutgoingArc, int lowestIncomingArc, float[][] bbox)
          Stores the information of a Node in the given ByteBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

public static int SIZE
Size of binary representation (in bytes)


id

public final int id
Id of the node.


lowestOutgoingArc

public final int lowestOutgoingArc
Lowest id of all arcs leaving from this node.


highestOutgoingArc

public final int highestOutgoingArc
Highest id of all arcs leaving from this node.


lowestIncomingArc

public final int lowestIncomingArc
Lowest id of all arcs entering this node.


bbox

public final float[][] bbox
Bounding box of this node.

Constructor Detail

Node

Node(MultiresolutionMesh mt,
     int id,
     ByteBuffer buffer,
     int baseOffset)
Creates a new Node instance.

Parameters:
mt - MultiresolutionMesh instance that the node is part of
id - id of the node
buffer - buffer that contains the binary representation of the node
baseOffset - offset in the buffer
Method Detail

store

public static void store(ByteBuffer target,
                         int lowestOutgoingArc,
                         int highestOutgoingArc,
                         int lowestIncomingArc,
                         float[][] bbox)
Stores the information of a Node in the given ByteBuffer.

Parameters:
target - buffer where the binary representation is written to
lowestOutgoingArc - lowest id of all arcs leaving from this node
highestOutgoingArc - highest id of all arcs leaving from this node
lowestIncomingArc - lowest id of all arcs entering this node
bbox - bounding box of this node

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>