motris.model
Class ImageGeometry

java.lang.Object
  extended bymotris.model.ImageGeometry

public class ImageGeometry
extends java.lang.Object

Representing all geometric properties of an actor in the image plane, including visible edges and polygons for occlusions for both the object and its shadows

Author:
Hendrik Dahlkamp

Field Summary
(package private)  SceneGeometry associatedSceneGeometry
           
protected  java.awt.Rectangle boundingBoxCache
           
 java.util.Vector edges
           
 java.util.Vector polygons
           
 java.util.Vector shadowEdges
           
 boolean shadowEdgesVisible
           
 java.util.Vector shadowPolygons
           
 java.util.Vector vertices
           
 
Constructor Summary
ImageGeometry(SceneGeometry _associatedSceneGeometry)
           
 
Method Summary
 void clearAll()
           
 void computeForeignOcclusions(ImageGeometry otherGeometry, Camera cam, int edgeParentCollisionTreatment)
           
 void computeSelfOcclusions(Camera cam, int edgeParentCollisionTreatment)
           
 java.lang.String debugDumpAll()
           
 void findVisibleIntersections(double startX, double startY, double endX, double endY, DoubleArray target, double[] tmp)
           
 java.awt.Rectangle getBoundingBox()
           
 ImageEdge getEdge(int index)
           
 int getEdgeCount()
           
 Convex2DPolygon getPolygon(int index)
           
 int getPolygonCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vertices

public java.util.Vector vertices

edges

public java.util.Vector edges

polygons

public java.util.Vector polygons

shadowPolygons

public java.util.Vector shadowPolygons

shadowEdges

public java.util.Vector shadowEdges

associatedSceneGeometry

SceneGeometry associatedSceneGeometry

shadowEdgesVisible

public boolean shadowEdgesVisible

boundingBoxCache

protected java.awt.Rectangle boundingBoxCache
Constructor Detail

ImageGeometry

public ImageGeometry(SceneGeometry _associatedSceneGeometry)
Method Detail

clearAll

public void clearAll()

computeSelfOcclusions

public void computeSelfOcclusions(Camera cam,
                                  int edgeParentCollisionTreatment)

computeForeignOcclusions

public void computeForeignOcclusions(ImageGeometry otherGeometry,
                                     Camera cam,
                                     int edgeParentCollisionTreatment)

getEdge

public final ImageEdge getEdge(int index)

getEdgeCount

public int getEdgeCount()

getPolygon

public Convex2DPolygon getPolygon(int index)

getPolygonCount

public int getPolygonCount()

getBoundingBox

public java.awt.Rectangle getBoundingBox()

findVisibleIntersections

public void findVisibleIntersections(double startX,
                                     double startY,
                                     double endX,
                                     double endY,
                                     DoubleArray target,
                                     double[] tmp)

debugDumpAll

public java.lang.String debugDumpAll()