motris.model
Class VolumeRepresentation

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
          extended bymotris.model.VolumeRepresentation
All Implemented Interfaces:
ParameterizedObject
Direct Known Subclasses:
GeneralizedCone, GenericVolumeRepresentation

public abstract class VolumeRepresentation
extends ParameterizedObjectAdaptor

Represents a volume in 3d space and allows to write its properties (visible edges, occluding polygons and shadows) to be written into SceneGeometry.

Author:
preuter, dahlkamp

Nested Class Summary
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
 RigidModel parent
           
 
Fields inherited from class parameter.ParameterizedObjectAdaptor
parameterChangedNotifyList
 
Fields inherited from class motris.data.Description
 
Constructor Summary
VolumeRepresentation()
           
 
Method Summary
abstract  boolean hasStructureChanged()
          Check whether the Structure (ie the set of edges and polygons, not just the position of the vertices) has changed
abstract  void updateSceneGeometry(SceneGeometry geometry, Camera cam, DoubleVector CameraOriginLocal, JSci.maths.DoubleSquareMatrix toGlobalTransform, DoubleMatrix[] firstDerivative)
          update the Scene geometry
 
Methods inherited from class parameter.ParameterizedObjectAdaptor
addParameterChangedListener, finalize, fireParameterChanged, getParameters, parameterEdited, removeParameterChangedListener, setParameters
 
Methods inherited from class motris.data.Description
getDescription, getIdentifier, getName, setDescription, setIdentifier, setName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

public RigidModel parent
Constructor Detail

VolumeRepresentation

public VolumeRepresentation()
Method Detail

updateSceneGeometry

public abstract void updateSceneGeometry(SceneGeometry geometry,
                                         Camera cam,
                                         DoubleVector CameraOriginLocal,
                                         JSci.maths.DoubleSquareMatrix toGlobalTransform,
                                         DoubleMatrix[] firstDerivative)
update the Scene geometry

Parameters:
geometry - to be updated
CameraOriginLocal - camera origin in local (i.e. volume object) coordinates

hasStructureChanged

public abstract boolean hasStructureChanged()
Check whether the Structure (ie the set of edges and polygons, not just the position of the vertices) has changed

Returns:
structure changed