org.deegree.rendering.r3d.opengl.rendering.model.prototype
Class PrototypeReference
java.lang.Object
org.deegree.rendering.r3d.opengl.rendering.model.prototype.PrototypeReference
- All Implemented Interfaces:
- Serializable
public class PrototypeReference
- extends Object
- implements Serializable
The PrototypeData
saves information of a prototype, and the transformation matrix to apply before
rendering the prototype.
- Version:
- $Revision: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
- See Also:
- Serialized Form
Constructor Summary |
PrototypeReference(String prototypeID,
float angle,
float[] location,
float width,
float height,
float depth)
Construct a reference to a prototype, by supplying an id and the transformations |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrototypeReference
public PrototypeReference(String prototypeID,
float angle,
float[] location,
float width,
float height,
float depth)
- Construct a reference to a prototype, by supplying an id and the transformations
- Parameters:
prototypeID
- angle
- location
- width
- height
- depth
-
getPrototypeID
public final String getPrototypeID()
- Returns:
- the prototypeID
setPrototypeID
public final void setPrototypeID(String prototypeID)
- Parameters:
prototypeID
- the prototypeID to set
getApproximateSizeInBytes
public long getApproximateSizeInBytes()
- Returns:
- the approximate size of this prototype in bytes.
getAngle
public final float getAngle()
- Returns:
- the angle
getWidth
public final float getWidth()
- Returns:
- the width
getHeight
public final float getHeight()
- Returns:
- the height
getDepth
public final float getDepth()
- Returns:
- the depth
getLocation
public float[] getLocation()
- Returns:
- the location (translation) of this reference.
Copyright © 2011. All Rights Reserved.