SEDRIS Reference Manual
APPENDIX A - Transmittal Access Level 0 API
Functions
SE CreateSpatialSearchBoundary
extern SE_Return_Code
SE_CreateSpatialSearchBoundary
(
SE_Encoding encoding, (notes)
constSE_Search_Bounds *bounds_ptr, (notes)
SE_Search_Bounds_Closure search_bounds_closure, (notes)
SE_Search_Type search_quality, (notes)
SE_Object_Inclusion inclusion, (notes)
SE_Search_Dimensionality search_dimension, (notes)
SE_Search_Boundary *search_boundary_out_ptr (notes)
);

Definition

Creates a search boundary to limit the scope of a component iterator's search; the search boundary can be used in a later call to SE_InitializeComponentIterator() to limit the spatial area that the iterator will search.

Spatial search boundaries can be freed at any time; a search boundary does not need to stay in existence until the iterator(s) that depend on that boundary are freed. (An iterator retains a copy of any search boundary used to initialize that iterator).

If no spatial search boundary is supplied, then the set of objects over which the iterator will iterate will be determined solely by the search rules and the starting object of the search.


Returns

SE_RET_CODE_SUCCESS and the spatial search boundary is created.
SE_RET_CODE_FAILUREand the status code is set appropriately if the call failed.

Status Codes

SE_Status_Code(s) when SE_RET_CODE_SUCCESS is returned:

SE_STAT_CODE_SUCCESS set if valid parameters were passed in and memory allocation succeeded.

SE_Status_Code(s) when SE_RET_CODE_FAILURE is returned:

SE_STAT_CODE_INACTIONABLE_FAILURE set if
  1. an invalid boundary was specified by the bounds parameter (e.g., the minimal and maximal points aren't in the same SRF),
  2. if an invalid search_bounds_closure, search_quality, inclusion, or search_dimension was specified, or
  3. the call failed for any other reason.


Parameters Notes


encoding

 - identifies the API implementation encoding
    to use when creating this spatial search boundary.  If the specified API
    can't create the search boundary, then the API will return a status code
    indicating why it could not be created.  If encoding
    is NULL, then the API implementation encoding to be used must be statically
    bound at compile time.

    See also SE_GetEncoding().

bounds_ptr

 the boundary definition; defines the spatial search area
    by ranges in each of its coordinates. If the search is 2-D, the height
    values are ignored. See SE_Search_Bounds for more details.

search_bounds_closure

 whether the spatial search area includes all its
    boundaries (fully closed) or only the lower endpoints (partly closed).
    See SE_Search_Bounds_Closure for more details.

search_quality

 whether to use a point, bounding box, or exact search.
    See SE_Search_Type for more details.

inclusion

 whether the inclusion test for the search specifies only
    fully included objects (objects completely inside the search boundary)
    or partly included objects (which include fully included objects as a
    subset). See SE_Object_Inclusion for more details.

search_dimension

 whether 2D, 3D, or both 2D and 3D kinds of objects are
    considered. See SE_Search_Dimensionality for more details.

search_boundary_out_ptr

 pointer to the newly created search boundary.


Prev: SE_CreateSearchFilter. Next: SE_CreateStore. Up:Index.

Last updated: July 16, 2004 Copyright © 2004 SEDRIS