|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeometrySearch
General interface for geometry searching in 2D and 3D (for various types of search-trees).
Brep
Field Summary |
---|
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Method Summary | |
---|---|
boolean |
buildDirectory(int entity,
int ctx)
Builds the whole data structure (directory) from scratch. |
BrepIterator |
centerPass(double[] center,
double radius,
BrepIterator pre)
Initializes a new center pass. |
double |
finishedSegment(BrepIterator iter)
Returns end value (coordinate) of already finished pass-segment. |
double |
getProgress(BrepIterator iter,
int[] count)
Returns progress parameters of the given pass. |
int |
getStatistics(long[] counters)
Returns (and resets) counters (for statistics, profiling): counters[0] .. number of point-to-point distance calculations. |
void |
insertObject(int handle)
Inserts another object into the directory. |
BrepIterator |
intervalQuery(double[] min,
double[] max,
BrepIterator pre)
Initializes a new interval query for floating-point coordinates. |
BrepIterator |
intervalQuery(int[] min,
int[] max,
BrepIterator pre)
Initializes a new interval query for integer coordinates. |
int |
localize(double[] coord)
Localizes the given point - finds the object which contains it (first of such objects). |
int |
localize(int[] coord)
Localizes the given point - finds the object which contains it (first of such objects). |
boolean |
optimizeDirectory()
Optimizes the data structure (directory). |
BrepIterator |
rayPass(double[] start,
double[] direction,
BrepIterator pre)
Initializes a new ray-casting pass. |
boolean |
removeObject(int handle)
Removes the given object from the directory. |
boolean |
resetDirectory(int entity,
int ctx)
(Re-)initializes the data structure (directory). |
BrepIterator |
sweepPass(double[] plane,
double[] origin,
BrepIterator pre)
Initializes a new sweep-plane pass. |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Method Detail |
---|
boolean buildDirectory(int entity, int ctx)
entity
- Type of stored entities (VERTEX
, EDGE
or
FACE
from Brep
).ctx
- Handle to the used Brep
-context.
true
if this service is implemented.resetDirectory(int, int)
,
optimizeDirectory()
,
Brep.VERTEX
,
Brep.EDGE
,
Brep.SOLID
boolean resetDirectory(int entity, int ctx)
entity
- Type of stored entities (VERTEX
, EDGE
or
FACE
from Brep
).ctx
- Handle to the used Brep
-context.
true
if this service is implemented.buildDirectory(int, int)
,
optimizeDirectory()
,
Brep.VERTEX
,
Brep.EDGE
,
Brep.SOLID
void insertObject(int handle)
resetDirectory(int, int)
.
handle
- Handle to an inserted object (its entity type and context
were defined in advance).resetDirectory(int, int)
boolean removeObject(int handle)
handle
- Handle to a removed object (its entity type and context
were defined in advance).
true
if this service is implemented and if the object was
successfully removed.resetDirectory(int, int)
boolean optimizeDirectory()
true
if this service is implemented.buildDirectory(int, int)
,
resetDirectory(int, int)
int localize(int[] coord)
coord
- Coordinate vector of the localized point.
NULL
if not found (or the service is
not implemented).localize(double[])
int localize(double[] coord)
coord
- Coordinate vector of the localized point.
NULL
if not found (or the service is
not implemented).localize(int[])
BrepIterator intervalQuery(int[] min, int[] max, BrepIterator pre)
min
- Coordinate vector of minimum-vertex.max
- Coordinate vector of maximum-vertex. Non-mandatory ?pre
- Pre-allocated BrepIterator
object (can be null
).
intervalQuery(double[],double[],BrepIterator)
,
getProgress(cz.cuni.jagrlib.iface.BrepIterator, int[])
BrepIterator intervalQuery(double[] min, double[] max, BrepIterator pre)
min
- Coordinate vector of minimum-vertex.max
- Coordinate vector of maximum-vertex. Non-mandatory ?pre
- Pre-allocated BrepIterator
object (can be null
).
intervalQuery(int[],int[],BrepIterator)
,
getProgress(cz.cuni.jagrlib.iface.BrepIterator, int[])
BrepIterator rayPass(double[] start, double[] direction, BrepIterator pre)
start
- Starting point of the ray.direction
- Direction vector of the ray.pre
- Pre-allocated BrepIterator
object (can be null
).
getProgress(cz.cuni.jagrlib.iface.BrepIterator, int[])
BrepIterator centerPass(double[] center, double radius, BrepIterator pre)
center
- Center of a pass.radius
- Maximum radius to be searched.pre
- Pre-allocated BrepIterator
object (can be null
).
getProgress(cz.cuni.jagrlib.iface.BrepIterator, int[])
BrepIterator sweepPass(double[] plane, double[] origin, BrepIterator pre)
plane
- (Oriented) normal vector of the sweep-plane.origin
- Starting point of a pass.pre
- Pre-allocated BrepIterator
object (can be null
).
getProgress(cz.cuni.jagrlib.iface.BrepIterator, int[])
double finishedSegment(BrepIterator iter)
iter
- Pass data.
double getProgress(BrepIterator iter, int[] count)
iter
- Pass data.count
- Array to hold two counters: count[0]
.. number of objects
yet passed, count[1]
.. total number of objects
relevant to this pass (non-mandatory). Can be null
.
int getStatistics(long[] counters)
counters
- Array to hold result. If null
functions returns required length.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |