org.deegree.rendering.r3d.model
Class QualityModel<T extends QualityModelPart>

java.lang.Object
  extended by org.deegree.rendering.r3d.model.QualityModel<T>
Type Parameters:
T - the qualitymodel type
All Implemented Interfaces:
Serializable, MemoryAware
Direct Known Subclasses:
GeometryQualityModel, RenderableQualityModel

public class QualityModel<T extends QualityModelPart>
extends Object
implements Serializable, MemoryAware

The GeometryQualityModel defines a Quality level of a geometry model.

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

Field Summary
protected  PrototypeReference prototype
          The prototype
protected  ArrayList<T> qualityModelParts
          The geometries of this quality model
 
Constructor Summary
QualityModel()
          Creates a GeometryQualityModel with an empty list of geometry patches
QualityModel(ArrayList<T> qualityModelParts)
          Creates a GeometryQualityModel with the given geometry patches
QualityModel(PrototypeReference prototype)
          Creates a GeometryQualityModel with the given geometry patches
QualityModel(T qualityModelPart)
           
 
Method Summary
 boolean addQualityModelPart(T part)
           
 boolean addQualityModelParts(List<T> parts)
           
 PrototypeReference getPrototypeReference()
           
 T getQualityModelPart(int index)
           
 ArrayList<T> getQualityModelParts()
           
 void setPrototype(PrototypeReference prototype)
           
 long sizeOf()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

qualityModelParts

protected transient ArrayList<T extends QualityModelPart> qualityModelParts
The geometries of this quality model


prototype

protected transient PrototypeReference prototype
The prototype

Constructor Detail

QualityModel

public QualityModel()
Creates a GeometryQualityModel with an empty list of geometry patches


QualityModel

public QualityModel(ArrayList<T> qualityModelParts)
Creates a GeometryQualityModel with the given geometry patches

Parameters:
qualityModelParts -

QualityModel

public QualityModel(PrototypeReference prototype)
Creates a GeometryQualityModel with the given geometry patches

Parameters:
prototype - to be renedered

QualityModel

public QualityModel(T qualityModelPart)
Parameters:
qualityModelPart -
Method Detail

addQualityModelPart

public final boolean addQualityModelPart(T part)
Parameters:
part - to add to the geometries
Returns:
true (as specified by Collection.add)

addQualityModelParts

public final boolean addQualityModelParts(List<T> parts)
Parameters:
parts - to add to the quality model
Returns:
true (as specified by Collection.add)

getQualityModelPart

public final T getQualityModelPart(int index)
Parameters:
index -
Returns:
the geometry data at given index or null if the index is out of bounds.

getQualityModelParts

public final ArrayList<T> getQualityModelParts()
Returns:
the reference to the qualityModelParts, alterations to the patches will be reflected, may be null

getPrototypeReference

public final PrototypeReference getPrototypeReference()
Returns:
the prototype or null if no prototype was defined

setPrototype

public final void setPrototype(PrototypeReference prototype)
Parameters:
prototype - the prototype to set

sizeOf

public long sizeOf()
Specified by:
sizeOf in interface MemoryAware
Returns:
approximate size in bytes


Copyright © 2011. All Rights Reserved.