|
|||||||||||
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 describedMethod Detail |
public void addIntersection(HyperPlane plane, EditableGeoComplex target)
public java.awt.Shape toShape(java.awt.geom.AffineTransform transform)
Geometry
toShape
in interface Geometry
public AffineSpace affineClosure()
Geometry
affineClosure
in interface Geometry
public boolean canIntersect(Geometry other)
Geometry
canIntersect
in interface Geometry
other
- another geometry, which is to be intersected
public Geometry intersection(Geometry other)
Geometry
canIntersect
returns false.
intersection
in interface Geometry
other
- another geometry, which is to be intersected
public int dim()
Geometry
dim
in interface Geometry
public int outerDim()
Geometry
outerDim
in interface Geometry
public boolean canContain(Geometry other)
Geometry
canContain
in interface Geometry
other
- another geometry
contains
will workpublic boolean contains(Geometry other)
Geometry
canContain
returns false.
contains
in interface Geometry
other
- another geometry
other
is contained in the geometry.public boolean canBeContainedIn(Geometry other)
Geometry
canBeContainedIn
in interface Geometry
other
- another geometry
isContainedIn
will workpublic boolean isContainedIn(Geometry other)
Geometry
canBeContainedIn
returns false.
isContainedIn
in interface Geometry
other
- another geometry
other
.public Point localization(Point p)
Geometry
dim()
coordinates.
The dimension of this geometry has to be nonzero.
localization
in interface Geometry
p
- a point contained in this geometry
public Point getOrigin()
Geometry
getOrigin
in interface Geometry
public Vector getNormal(Point p)
Geometry
dim()+1 == outerDim()
)
getNormal
in interface Geometry
p
- the starting point of the normal vector
public Geometry getRandomRay(Point origin)
Geometry
getRandomRay
in interface Geometry
origin
- 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 |