| Modifier and Type | Class and Description |
|---|---|
| private class | IntervalsSet.
Local iterator for sub-intervals. |
| Modifier and Type | Field and Description |
|---|---|
| private static final double | DEFAULT_TOLERANCE
Default value for tolerance. |
| Access | Constructor and Description |
|---|---|
| public | IntervalsSet(final double
tolerance below which points are considered identical. tolerance)Build an intervals set representing the whole real line. |
| public | IntervalsSet(final double
lower bound of the interval, must be lesser or equal
to lower, final double upper (may be Double.NEGATIVE_INFINITY)upper bound of the interval, must be greater or equal
to upper, final double lower (may be Double.POSITIVE_INFINITY)tolerance below which points are considered identical. tolerance)Build an intervals set corresponding to a single interval. |
| public | IntervalsSet(final BSPTree<Euclidean1D>
inside/outside BSP tree representing the intervals set tree, final double tolerance below which points are considered identical. tolerance)Build an intervals set from an inside/outside BSP tree. |
| public | IntervalsSet(final Collection<SubHyperplane<Euclidean1D>>
collection of boundary elements boundary, final double tolerance below which points are considered identical. tolerance)Build an intervals set from a Boundary REPresentation (B-rep). |
| public | IntervalsSet()
Deprecated
as of 3.1 replaced with
IntervalsSet(double)
Build an intervals set representing the whole real line. |
| public | IntervalsSet(final double
lower bound of the interval, must be lesser or equal
to lower, final double upper (may be Double.NEGATIVE_INFINITY)upper bound of the interval, must be greater or equal
to upper)lower (may be Double.POSITIVE_INFINITY)
Deprecated
as of 3.3 replaced with
IntervalsSet(double, double, double)
Build an intervals set corresponding to a single interval. |
| public | IntervalsSet(final BSPTree<Euclidean1D>
inside/outside BSP tree representing the intervals set tree)
Deprecated
as of 3.3, replaced with
IntervalsSet(BSPTree, double)
Build an intervals set from an inside/outside BSP tree. |
| public | IntervalsSet(final Collection<SubHyperplane<Euclidean1D>>
collection of boundary elements boundary)
Deprecated
as of 3.3, replaced with
IntervalsSet(Collection, double)
Build an intervals set from a Boundary REPresentation (B-rep). |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public IntervalsSet | buildNew(final BSPTree<Euclidean1D>
inside/outside BSP tree representing the new region tree)Implements abstract org. Implements org. Build a region using the instance as a prototype. |
| private static BSPTree | Returns: the built treelower bound of the interval, must be lesser or equal
to lower, final double upper (may be Double.NEGATIVE_INFINITY)upper bound of the interval, must be greater or equal
to upper, final double lower (may be Double.POSITIVE_INFINITY)tolerance below which points are considered identical. tolerance)Build an inside/outside tree representing a single interval. |
| private BSPTree | Returns: child node just after the internal nodeinternal node at which the sub-tree starts node)Find the child node just after an internal node. |
| private BSPTree | Returns: child node just before the internal nodeinternal node at which the sub-tree starts node)Find the child node just before an internal node. |
| protected void | computeGeometricalProperties()
Implements abstract org. Compute some geometrical properties. |
| private Vector1D | Returns: a new point for finite abscissa, null otherwiseabscissa of the point x)Build a finite point. |
| private double | Returns: abscissainternal node to check node)Get the abscissa of an internal node. |
| private BSPTree | Returns: smallest internal node, or null if there are no internal nodes (i.e. the set is either empty or covers the real line)Get the node corresponding to the first interval boundary. |
| private BSPTree | Returns: first leaf nodetree root root)Get the first leaf node of a tree. |
| public double | Returns: lowest value belonging to the instance (Double.NEGATIVE_INFINITY if the instance doesn't
have any low bound, Double.POSITIVE_INFINITY if the
instance is empty)Get the lowest value belonging to the instance. |
| public double | Returns: highest value belonging to the instance (Double.POSITIVE_INFINITY if the instance doesn't
have any high bound, Double.NEGATIVE_INFINITY if the
instance is empty)Get the highest value belonging to the instance. |
| private boolean | Returns: true is the node has a parent end is after it in ascending orderchild node considered node)Check if a node is the child after its parent in ascending order. |
| private boolean | Returns: true is the node has a parent end is before it in ascending orderchild node considered node)Check if a node is the child before its parent in ascending order. |
| private boolean | Returns: true if the oriented point is directinternal node to check node)Check if an internal node has a direct oriented point. |
| private boolean | Returns: true if the node corresponds to the end abscissa of an intervalinternal node to check node)Check if an internal node corresponds to the end abscissa of an interval. |
| private boolean | Returns: true if the node corresponds to the start abscissa of an intervalinternal node to check node)Check if an internal node corresponds to the start abscissa of an interval. |
| public Iterator | |
| private BSPTree | Returns: leaf node just after the internal nodeinternal node at which the sub-tree starts node)Find the leaf node just after an internal node. |
| private BSPTree | Returns: leaf node just before the internal nodeinternal node at which the sub-tree starts node)Find the leaf node just before an internal node. |
| private BSPTree | Returns: next internal node in ascending order, or null if this is the last internal nodecurrent internal node node)Get the next internal node. |
| private BSPTree | Returns: previous internal node in ascending order, or null if this is the first internal nodecurrent internal node node)Get the previous internal node. |
| public BoundaryProjection | projectToBoundary(final Point<Euclidean1D>
point to check point)Overrides org. Implements org. Project a point on the boundary of the region. |
| DEFAULT_TOLERANCE | back to summary |
|---|---|
| private static final double DEFAULT_TOLERANCE Default value for tolerance. | |
| IntervalsSet | back to summary |
|---|---|
| public IntervalsSet(final double tolerance) Build an intervals set representing the whole real line.
| |
| IntervalsSet | back to summary |
|---|---|
| public IntervalsSet(final double lower, final double upper, final double tolerance) Build an intervals set corresponding to a single interval.
| |
| IntervalsSet | back to summary |
|---|---|
| public IntervalsSet(final BSPTree<Euclidean1D> tree, final double tolerance) Build an intervals set from an inside/outside BSP tree. The leaf nodes of the BSP tree must have a
| |
| IntervalsSet | back to summary |
|---|---|
| public IntervalsSet(final Collection<SubHyperplane<Euclidean1D>> boundary, final double tolerance) Build an intervals set from a Boundary REPresentation (B-rep). The boundary is provided as a collection of The boundary elements can be in any order, and can form
several non-connected sets (like for example polygons with holes
or a set of disjoints polyhedrons considered as a whole). In
fact, the elements do not even need to be connected together
(their topological connections are not used here). However, if the
boundary does not really separate an inside open from an outside
open (open having here its topological meaning), then subsequent
calls to the If the boundary is empty, the region will represent the whole space.
| |
| IntervalsSet | back to summary |
|---|---|
| public IntervalsSet()
Deprecated as of 3.1 replaced with Build an intervals set representing the whole real line.
| |
| IntervalsSet | back to summary |
|---|---|
| public IntervalsSet(final double lower, final double upper)
Deprecated as of 3.3 replaced with Build an intervals set corresponding to a single interval.
| |
| IntervalsSet | back to summary |
|---|---|
| public IntervalsSet(final BSPTree<Euclidean1D> tree)
Deprecated as of 3.3, replaced with Build an intervals set from an inside/outside BSP tree. The leaf nodes of the BSP tree must have a
| |
| IntervalsSet | back to summary |
|---|---|
| public IntervalsSet(final Collection<SubHyperplane<Euclidean1D>> boundary)
Deprecated as of 3.3, replaced with Build an intervals set from a Boundary REPresentation (B-rep). The boundary is provided as a collection of The boundary elements can be in any order, and can form
several non-connected sets (like for example polygons with holes
or a set of disjoints polyhedrons considered as a whole). In
fact, the elements do not even need to be connected together
(their topological connections are not used here). However, if the
boundary does not really separate an inside open from an outside
open (open having here its topological meaning), then subsequent
calls to the If the boundary is empty, the region will represent the whole space.
| |
| asList | back to summary |
|---|---|
| public List Build an ordered list of intervals representing the instance. This method builds this intervals set as an ordered list of
| |
| buildNew | back to summary |
|---|---|
| public IntervalsSet buildNew(final BSPTree<Euclidean1D> tree) Implements abstract org. Implements org. Doc from org. Build a region using the instance as a prototype. This method allow to create new instances without knowing exactly the type of the region. It is an application of the prototype design pattern. The leaf nodes of the BSP tree must have a
| |
| buildTree | back to summary |
|---|---|
| private static BSPTree Build an inside/outside tree representing a single interval.
| |
| childAfter | back to summary |
|---|---|
| private BSPTree Find the child node just after an internal node.
| |
| childBefore | back to summary |
|---|---|
| private BSPTree Find the child node just before an internal node.
| |
| computeGeometricalProperties | back to summary |
|---|---|
| protected void computeGeometricalProperties() Implements abstract org. Doc from org. Compute some geometrical properties. The properties to compute are the barycenter and the size.
| |
| finiteOrNullPoint | back to summary |
|---|---|
| private Vector1D finiteOrNullPoint(final double x) Build a finite point.
| |
| getAngle | back to summary |
|---|---|
| private double getAngle(final BSPTree<Euclidean1D> node) Get the abscissa of an internal node.
| |
| getFirstIntervalBoundary | back to summary |
|---|---|
| private BSPTree Get the node corresponding to the first interval boundary.
| |
| getFirstLeaf | back to summary |
|---|---|
| private BSPTree Get the first leaf node of a tree.
| |
| getInf | back to summary |
|---|---|
| public double getInf() Get the lowest value belonging to the instance.
| |
| getSup | back to summary |
|---|---|
| public double getSup() Get the highest value belonging to the instance.
| |
| isAfterParent | back to summary |
|---|---|
| private boolean isAfterParent(final BSPTree<Euclidean1D> node) Check if a node is the child after its parent in ascending order.
| |
| isBeforeParent | back to summary |
|---|---|
| private boolean isBeforeParent(final BSPTree<Euclidean1D> node) Check if a node is the child before its parent in ascending order.
| |
| isDirect | back to summary |
|---|---|
| private boolean isDirect(final BSPTree<Euclidean1D> node) Check if an internal node has a direct oriented point.
| |
| isIntervalEnd | back to summary |
|---|---|
| private boolean isIntervalEnd(final BSPTree<Euclidean1D> node) Check if an internal node corresponds to the end abscissa of an interval.
| |
| isIntervalStart | back to summary |
|---|---|
| private boolean isIntervalStart(final BSPTree<Euclidean1D> node) Check if an internal node corresponds to the start abscissa of an interval.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type The iterator returns the limit values of sub-intervals in ascending order.
The iterator does not support the optional
| |
| leafAfter | back to summary |
|---|---|
| private BSPTree Find the leaf node just after an internal node.
| |
| leafBefore | back to summary |
|---|---|
| private BSPTree Find the leaf node just before an internal node.
| |
| nextInternalNode | back to summary |
|---|---|
| private BSPTree Get the next internal node.
| |
| previousInternalNode | back to summary |
|---|---|
| private BSPTree Get the previous internal node.
| |
| projectToBoundary | back to summary |
|---|---|
| public BoundaryProjection Overrides org. Implements org. Doc from org. Project a point on the boundary of the region.
| |
| Modifier and Type | Field and Description |
|---|---|
| private BSPTree | current
Current node. |
| private double[] | pending
Sub-interval no yet returned. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public double[] | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| private void |
| current | back to summary |
|---|---|
| private BSPTree<Euclidean1D> current Current node. | |
| pending | back to summary |
|---|---|
| private double[] pending Sub-interval no yet returned. | |
| SubIntervalsIterator | back to summary |
|---|---|
| pack-priv SubIntervalsIterator() Simple constructor. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public double[] next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the | |
| selectPending | back to summary |
|---|---|
| private void selectPending() Walk the tree to select the pending sub-interval. | |