public class LinearOctree extends CompoundShape
Constructor and Description |
---|
LinearOctree(PointND center) |
LinearOctree(PointND min,
PointND max) |
LinearOctree(PointND min,
PointND max,
double random) |
LinearOctree(PointND min,
PointND max,
PointND center) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(AbstractShape shape) |
boolean |
addAll(java.util.Collection<? extends AbstractShape> arg0) |
void |
applyTransform(Transform t)
Applies the Transform t to the object.
|
void |
clear() |
boolean |
contains(java.lang.Object arg0) |
boolean |
containsAll(java.util.Collection<?> arg0) |
PointND |
evaluate(PointND u)
Returns the point on the shape at the internal position u.
|
int |
getDimension()
Returns the external dimension of the shape.
|
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 arg0) |
boolean |
removeAll(java.util.Collection<?> arg0) |
boolean |
retainAll(java.util.Collection<?> arg0) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] arg0) |
java.lang.String |
toString() |
get, getHitsOnBoundingBox
getHitsOnBoundingBox_slow, getName, setName
public LinearOctree(PointND center)
public boolean add(AbstractShape shape)
add
in interface java.util.Collection<AbstractShape>
add
in class CompoundShape
public PointND getMin()
getMin
in class CompoundShape
public PointND getMax()
getMax
in class CompoundShape
public void applyTransform(Transform t)
Transformable
applyTransform
in interface Transformable
applyTransform
in class CompoundShape
t
- the transform to apply to the object.public PointND evaluate(PointND u)
AbstractShape
evaluate
in class CompoundShape
u
- the point in the internal parameter dimensionpublic int getDimension()
AbstractShape
getDimension
in class CompoundShape
public int getInternalDimension()
AbstractShape
getInternalDimension
in class CompoundShape
public java.util.ArrayList<PointND> intersect(AbstractCurve other)
AbstractShape
intersect
in class CompoundShape
public boolean isBounded()
AbstractShape
isBounded
in class CompoundShape
public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class CompoundShape
number
- the number of pointspublic java.lang.String toString()
toString
in class CompoundShape
public int size()
size
in interface java.util.Collection<AbstractShape>
size
in class CompoundShape
public boolean addAll(java.util.Collection<? extends AbstractShape> arg0)
addAll
in interface java.util.Collection<AbstractShape>
addAll
in class CompoundShape
public void clear()
clear
in interface java.util.Collection<AbstractShape>
clear
in class CompoundShape
public boolean contains(java.lang.Object arg0)
contains
in interface java.util.Collection<AbstractShape>
contains
in class CompoundShape
public boolean containsAll(java.util.Collection<?> arg0)
containsAll
in interface java.util.Collection<AbstractShape>
containsAll
in class CompoundShape
public boolean isEmpty()
isEmpty
in interface java.util.Collection<AbstractShape>
isEmpty
in class CompoundShape
public java.util.Iterator<AbstractShape> iterator()
iterator
in interface java.lang.Iterable<AbstractShape>
iterator
in interface java.util.Collection<AbstractShape>
iterator
in class CompoundShape
public boolean remove(java.lang.Object arg0)
remove
in interface java.util.Collection<AbstractShape>
remove
in class CompoundShape
public boolean removeAll(java.util.Collection<?> arg0)
removeAll
in interface java.util.Collection<AbstractShape>
removeAll
in class CompoundShape
public boolean retainAll(java.util.Collection<?> arg0)
retainAll
in interface java.util.Collection<AbstractShape>
retainAll
in class CompoundShape
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<AbstractShape>
toArray
in class CompoundShape
public <T> T[] toArray(T[] arg0)
toArray
in interface java.util.Collection<AbstractShape>
toArray
in class CompoundShape