public abstract class AbstractShape extends java.lang.Object implements java.io.Serializable, Transformable
Constructor and Description |
---|
AbstractShape() |
Modifier and Type | Method and Description |
---|---|
abstract void |
applyTransform(Transform t)
Applies the Transform t to the object.
|
abstract PointND |
evaluate(PointND u)
Returns the point on the shape at the internal position u.
|
abstract int |
getDimension()
Returns the external dimension of the shape.
|
java.util.ArrayList<PointND> |
getHitsOnBoundingBox_slow(AbstractCurve curve)
Evaluates the bounding box and returns true if it is hit.
|
java.util.ArrayList<PointND> |
getHitsOnBoundingBox(AbstractCurve curve) |
abstract int |
getInternalDimension()
returns the internal dimension of the shape, i.e.
|
PointND |
getMax() |
PointND |
getMin() |
java.lang.String |
getName() |
abstract PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less.
|
abstract java.util.ArrayList<PointND> |
intersect(AbstractCurve other)
Returns the intersection points between the curve and the shape.
|
abstract boolean |
isBounded()
Returns true if the shape is of limited space
|
void |
setName(java.lang.String name) |
public abstract boolean isBounded()
public java.util.ArrayList<PointND> getHitsOnBoundingBox_slow(AbstractCurve curve)
curve
- the curvepublic java.util.ArrayList<PointND> getHitsOnBoundingBox(AbstractCurve curve)
public abstract PointND evaluate(PointND u)
u
- the point in the internal parameter dimensionpublic abstract int getDimension()
public abstract int getInternalDimension()
public abstract java.util.ArrayList<PointND> intersect(AbstractCurve other)
other
- public abstract PointND[] getRasterPoints(int number)
number
- the number of pointspublic PointND getMin()
public PointND getMax()
public abstract void applyTransform(Transform t)
Transformable
applyTransform
in interface Transformable
t
- the transform to apply to the object.public java.lang.String getName()
public void setName(java.lang.String name)