Class AbstractRectangle2DQuery<X,Y,DS extends BoundedShape<NS>,NS extends Rectangle2D<X,Y,NS>,Q extends AbstractRectangle2DQuery<X,Y,DS,NS,Q>>
java.lang.Object
ghidra.util.database.spatial.rect.AbstractRectangle2DQuery<X,Y,DS,NS,Q>
- All Implemented Interfaces:
Query<DS,NS>
- Direct Known Subclasses:
DBTraceAddressSnapRangePropertyMapTree.TraceAddressSnapRangeQuery
public abstract class AbstractRectangle2DQuery<X,Y,DS extends BoundedShape<NS>,NS extends Rectangle2D<X,Y,NS>,Q extends AbstractRectangle2DQuery<X,Y,DS,NS,Q>>
extends Object
implements Query<DS,NS>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAbstractRectangle2DQuery.QueryFactory<NS extends Rectangle2D<?,?, NS>, Q extends AbstractRectangle2DQuery<?, ?, ?, NS, Q>> Nested classes/interfaces inherited from interface ghidra.util.database.spatial.Query
Query.QueryInclusion -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Comparator<NS> protected final Rectangle2DDirectionprotected final NSprotected final NSprotected final EuclideanSpace2D<X, Y> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRectangle2DQuery(NS r1, NS r2, EuclideanSpace2D<X, Y> space, Rectangle2DDirection direction) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Qcreate(NS ir1, NS ir2, Rectangle2DDirection newDirection) protected Comparator<NS> protected static <X,Y, NS extends Rectangle2D<X, Y, NS>, Q extends AbstractRectangle2DQuery<X, Y, ?, NS, Q>>
Qenclosed(NS rect, Rectangle2DDirection direction, AbstractRectangle2DQuery.QueryFactory<NS, Q> factory) protected static <X,Y, NS extends Rectangle2D<X, Y, NS>, Q extends AbstractRectangle2DQuery<X, Y, ?, NS, Q>>
Qenclosing(NS rect, Rectangle2DDirection direction, AbstractRectangle2DQuery.QueryFactory<NS, Q> factory) protected static <X,Y, NS extends Rectangle2D<X, Y, NS>, Q extends AbstractRectangle2DQuery<X, Y, ?, NS, Q>>
QequalTo(NS rect, Rectangle2DDirection direction, AbstractRectangle2DQuery.QueryFactory<NS, Q> factory) If the query orders elements, get the (or an equivalent) comparator.protected static <X,Y, NS extends Rectangle2D<X, Y, NS>, Q extends AbstractRectangle2DQuery<X, Y, ?, NS, Q>>
Qintersecting(NS rect, Rectangle2DDirection direction, AbstractRectangle2DQuery.QueryFactory<NS, Q> factory) starting(Rectangle2DDirection newDirection) booleanterminateEarlyData(DS shape) Test if internal data entry iteration can terminate earlybooleanterminateEarlyNode(NS shape) Test if internal node entry iteration can terminate earlyTest if the given node shape has data entries included in the query
-
Field Details
-
r1
-
r2
-
space
-
direction
-
comparator
-
-
Constructor Details
-
AbstractRectangle2DQuery
public AbstractRectangle2DQuery(NS r1, NS r2, EuclideanSpace2D<X, Y> space, Rectangle2DDirection direction)
-
-
Method Details
-
intersecting
protected static <X,Y, Q intersectingNS extends Rectangle2D<X, Y, NS>, Q extends AbstractRectangle2DQuery<X, Y, ?, NS, Q>> (NS rect, Rectangle2DDirection direction, AbstractRectangle2DQuery.QueryFactory<NS, Q> factory) -
enclosing
protected static <X,Y, Q enclosingNS extends Rectangle2D<X, Y, NS>, Q extends AbstractRectangle2DQuery<X, Y, ?, NS, Q>> (NS rect, Rectangle2DDirection direction, AbstractRectangle2DQuery.QueryFactory<NS, Q> factory) -
enclosed
protected static <X,Y, Q enclosedNS extends Rectangle2D<X, Y, NS>, Q extends AbstractRectangle2DQuery<X, Y, ?, NS, Q>> (NS rect, Rectangle2DDirection direction, AbstractRectangle2DQuery.QueryFactory<NS, Q> factory) -
equalTo
protected static <X,Y, Q equalToNS extends Rectangle2D<X, Y, NS>, Q extends AbstractRectangle2DQuery<X, Y, ?, NS, Q>> (NS rect, Rectangle2DDirection direction, AbstractRectangle2DQuery.QueryFactory<NS, Q> factory) -
terminateEarlyData
Description copied from interface:QueryTest if internal data entry iteration can terminate early- Specified by:
terminateEarlyDatain interfaceQuery<X,Y> - Parameters:
shape- the shape of the current data entry- Returns:
- true if no entry to follow could possibly be included in the query
-
terminateEarlyNode
Description copied from interface:QueryTest if internal node entry iteration can terminate early- Specified by:
terminateEarlyNodein interfaceQuery<X,Y> - Parameters:
shape- the shape of the current node entry- Returns:
- true if no entry to follow could possibly contain data entries included in the query
-
getBoundsComparator
Description copied from interface:QueryIf the query orders elements, get the (or an equivalent) comparator.- Specified by:
getBoundsComparatorin interfaceQuery<X,Y> - Returns:
- an comparator
-
createBoundsComparator
-
testNode
Description copied from interface:QueryTest if the given node shape has data entries included in the query- Specified by:
testNodein interfaceQuery<X,Y> - Parameters:
shape- the shape (bounds) of the node entry- Returns:
- a result as described in
Query.QueryInclusion
-
create
-
and
-
getDirection
-
starting
-