public class CompoundShape extends AbstractShape implements java.util.Collection<AbstractShape>
Constructor and Description |
---|
CompoundShape() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(AbstractShape shape) |
boolean |
addAll(java.util.Collection<? extends AbstractShape> c) |
void |
applyTransform(Transform t)
Applies the Transform t to the object.
|
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
PointND |
evaluate(PointND u)
Returns the point on the shape at the internal position u.
|
AbstractShape |
get(int i) |
int |
getDimension()
Returns the external dimension of the shape.
|
java.util.ArrayList<PointND> |
getHitsOnBoundingBox(AbstractCurve curve) |
int |
getInternalDimension()
returns the internal dimension of the shape, i.e.
|
PointND |
getMax() |
PointND |
getMin() |
PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less.
|
java.util.ArrayList<PointND> |
intersect(AbstractCurve other)
Returns the intersection points between the curve and the shape.
|
boolean |
isBounded()
Returns true if the shape is of limited space
|
boolean |
isEmpty() |
java.util.Iterator<AbstractShape> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
getHitsOnBoundingBox_slow, getName, setName
public int getDimension()
AbstractShape
getDimension
in class AbstractShape
public AbstractShape get(int i)
public java.util.ArrayList<PointND> getHitsOnBoundingBox(AbstractCurve curve)
getHitsOnBoundingBox
in class AbstractShape
public java.util.ArrayList<PointND> intersect(AbstractCurve other)
AbstractShape
intersect
in class AbstractShape
public boolean isBounded()
AbstractShape
isBounded
in class AbstractShape
public PointND getMax()
getMax
in class AbstractShape
public PointND getMin()
getMin
in class AbstractShape
public boolean add(AbstractShape shape)
add
in interface java.util.Collection<AbstractShape>
public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class AbstractShape
number
- the number of pointspublic void applyTransform(Transform t)
Transformable
applyTransform
in interface Transformable
applyTransform
in class AbstractShape
t
- the transform to apply to the object.public PointND evaluate(PointND u)
AbstractShape
evaluate
in class AbstractShape
u
- the point in the internal parameter dimensionpublic int getInternalDimension()
AbstractShape
getInternalDimension
in class AbstractShape
public boolean addAll(java.util.Collection<? extends AbstractShape> c)
addAll
in interface java.util.Collection<AbstractShape>
public void clear()
clear
in interface java.util.Collection<AbstractShape>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<AbstractShape>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<AbstractShape>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<AbstractShape>
public java.util.Iterator<AbstractShape> iterator()
iterator
in interface java.lang.Iterable<AbstractShape>
iterator
in interface java.util.Collection<AbstractShape>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<AbstractShape>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<AbstractShape>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<AbstractShape>
public int size()
size
in interface java.util.Collection<AbstractShape>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<AbstractShape>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<AbstractShape>
public java.lang.String toString()
toString
in class java.lang.Object