|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgeometry.ImplicitGeometry
A default affine geometry for cells, which are not points. If a GeoComplex doesn't contain any information about the geometry of a d-dimensional cell, it is assumed that the cell is a part of a d-dimensional affine space bounded by the cells in the boundary of the cell. The affine space is implicitly defined by the location and geometry of the boundary-cells. This works only if the boundary-cells are all contained in a unique d-dimensional affine space.
| Field Summary | |
protected GeoCell |
cell
|
protected GeoComplex |
complex
|
protected AffineSpace |
space
|
| Constructor Summary | |
ImplicitGeometry(GeoComplex complex,
GeoCell cell)
Constructs the implicit geometry for a given cell of a GeoComplex. |
|
| Method Summary | |
void |
addIntersection(HyperPlane plane,
EditableGeoComplex target)
|
AffineSpace |
affineClosure()
Computes the smallest affine space, which contains this geometry |
boolean |
canBeContainedIn(Geometry other)
Tests, if this geometry knows how to test if is contained in another geometry. |
boolean |
canContain(Geometry other)
Tests, if this geometry knows how to test if it contains another geometry. |
boolean |
canIntersect(Geometry other)
Tests, if this geometry knows how to intersect itself with another geometry. |
boolean |
contains(Geometry other)
Tests, if this geometry contains another geometry. |
int |
dim()
Returns the dimension of this geometry. |
private AffineSpace |
generatedSpace(GeoComplex complex,
GeoCell cell)
Computes the smallest affine space containing the boundary of a given cell |
Vector |
getNormal(Point p)
Returns a normal vector onto a hypersurface in a given point (only possible if dim()+1 == outerDim()) |
Point |
getOrigin()
The origin of the local coordinate system. |
Geometry |
getRandomRay(Point origin)
Construct a random one-dimensional submanifold, containing a given point. |
Geometry |
intersection(Geometry other)
Intersects this geometry with another. |
boolean |
isContainedIn(Geometry other)
Tests, if this geometry is contained in another geometry. |
Point |
localization(Point p)
Converts a point (which is contained in the geometry) to coordinates local to the geometry. |
private java.awt.Shape |
makePolygon(java.util.Collection corners)
Constructs a polygon from a collection of Point2D objects. |
int |
outerDim()
Returns the dimension of the euclidean space containing this geometry. |
private java.util.Collection |
sortPolyCorners(java.util.Collection edges)
Sorts the endpoints of a collection of Line2D-objects,
so that these points describe the contiuous, closed path
defined by the lines. |
java.awt.Shape |
toShape(java.awt.geom.AffineTransform transform)
Returns the cell as Shape (only possible for 2-dimensional Complexes). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected GeoComplex complex
protected GeoCell cell
protected AffineSpace space
| Constructor Detail |
public ImplicitGeometry(GeoComplex complex,
GeoCell cell)
complex - a GeoComplexcell - the cell contained in the complex, whose geometry will be described| Method Detail |
public void addIntersection(HyperPlane plane,
EditableGeoComplex target)
public java.awt.Shape toShape(java.awt.geom.AffineTransform transform)
Geometry
toShape in interface Geometrypublic AffineSpace affineClosure()
Geometry
affineClosure in interface Geometrypublic boolean canIntersect(Geometry other)
Geometry
canIntersect in interface Geometryother - another geometry, which is to be intersected
public Geometry intersection(Geometry other)
GeometrycanIntersect returns false.
intersection in interface Geometryother - another geometry, which is to be intersected
public int dim()
Geometry
dim in interface Geometrypublic int outerDim()
Geometry
outerDim in interface Geometrypublic boolean canContain(Geometry other)
Geometry
canContain in interface Geometryother - another geometry
contains will workpublic boolean contains(Geometry other)
GeometrycanContain returns false.
contains in interface Geometryother - another geometry
other is contained in the geometry.public boolean canBeContainedIn(Geometry other)
Geometry
canBeContainedIn in interface Geometryother - another geometry
isContainedIn will workpublic boolean isContainedIn(Geometry other)
GeometrycanBeContainedIn returns false.
isContainedIn in interface Geometryother - another geometry
other.public Point localization(Point p)
Geometrydim() coordinates.
The dimension of this geometry has to be nonzero.
localization in interface Geometryp - a point contained in this geometry
public Point getOrigin()
Geometry
getOrigin in interface Geometrypublic Vector getNormal(Point p)
Geometrydim()+1 == outerDim())
getNormal in interface Geometryp - the starting point of the normal vector
public Geometry getRandomRay(Point origin)
Geometry
getRandomRay in interface Geometryorigin - a point contained in this geometry
private AffineSpace generatedSpace(GeoComplex complex,
GeoCell cell)
complex - a GeoComplexcell - the cell contained in the complex, whose geometry will be described
private java.awt.Shape makePolygon(java.util.Collection corners)
Point2D objects.
corners - the corners of the polygon
private java.util.Collection sortPolyCorners(java.util.Collection edges)
Line2D-objects,
so that these points describe the contiuous, closed path
defined by the lines. The collection of lines will be destroyed!
edges - a collection of Line2D-objects
Point2D-objects, describing the polygon defined by the edges
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||