mi32/region.h File Reference

<mi32/region.h> Functions and structure for regions More...

#include <mi32/transgen.h>
#include <mi32/trans2dc.h>
#include <mi32/stddefns.h>
#include <mi32/mapproj.h>

Include dependency graph for region.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  DREGION
struct  DSUBREGION
class  GEOREGION

Defines

#define GEOMLIBEXPORT   MI_DLLIMPORT
#define REGIONTEST_CompInside   1
#define REGIONTEST_PartInside   2
#define REGIONTEST_CompOutside   3
#define REGIONTEST_PartOutside   4
#define REGIONTEST_ClipInside   5
#define REGIONTEST_ClipOutside   6
#define REGIONCOMP_Outside   1
#define REGIONCOMP_Inside   2
#define REGIONCOMP_Intersect   3
#define REGIONCOMP_Overlap   4
#define REGIONFLAG_TestAsLines   0x00000001

Functions

GEOMLIBEXPORT ERRVALUE MregionChangeProj (DREGION *region, const MAPPROJPARM *mapparm)
GEOMLIBEXPORT int MregionCheckIfOutside (const DRECT2D *extents, const DREGION *region)
GEOMLIBEXPORT void MregionClear (DREGION *region)
GEOMLIBEXPORT int MregionClipLine (const DREGION *region, const DPOLYGON *line, int(*ClippedLine)(DPOLYGON *retline, void *udata), void *udata, UINT32 RegionTest)
GEOMLIBEXPORT int MregionClipPoint (const DREGION *region, const DPOINT3D *pt, int(*ClippedPoint)(DPOINT3D *pt, void *udata), void *udata, UINT32 RegionTest)
GEOMLIBEXPORT int MregionClipPolygon (const DREGION *region, const DPOLYGON *IPolygon, DPOLYGON **OPolyList, UINT32 *ONumPolys, UINT32 RegionTest)
GEOMLIBEXPORT int MregionClipPolygonsL (const DREGION *region, const DPOLYGON *IPolyList, UINT32 INumPolys, LPOLYGON **OPolyList, UINT32 *ONumPolys, UINT32 RegionTest)
GEOMLIBEXPORT int MregionCompareLine (const DPOLYGON *line, const DREGION *region, INT32 *SubRegion)
GEOMLIBEXPORT ERRVALUE MregionConvertToLatLon (DREGION *region, double maxerror=0.0)
GEOMLIBEXPORT ERRVALUE MregionCopy (DREGION *DestRegion, const DREGION *SrcRegion)
GEOMLIBEXPORT int MregionDestToPolygonsL (DREGION *region, LPOLYGON **polys, INT32 *numpolys)
GEOMLIBEXPORT int MregionExclusiveOr (DREGION *DestRegion, const DREGION *RegionA, const DREGION *RegionB)
GEOMLIBEXPORT void MregionFree (DREGION *region)
GEOMLIBEXPORT ERRVALUE MregionGenerateDest (DREGION *region)
GEOMLIBEXPORT int MregionGenPointInSub (const DREGION *region, INT32 SubIndex, DPOINT2D *retpt)
bool MregionHasDest (const DREGION *region)
GEOMLIBEXPORT void MregionInit (DREGION *region)
GEOMLIBEXPORT int MregionIntersect (DREGION *DestRegion, const DREGION *RegionA, const DREGION *RegionB)
GEOMLIBEXPORT int MregionIsPointInSub (const DSUBREGION *subregion, const DPOINT2D *point)
GEOMLIBEXPORT ERRVALUE MregionSetTransParm (DREGION *region, const TRANSPARM *transparm)
GEOMLIBEXPORT int MregionSubtract (DREGION *DestRegion, const DREGION *RegionA, const DREGION *RegionB)
GEOMLIBEXPORT int MregionTestLine (const DPOLYGON *line, const DREGION *region, UINT32 RegionTest)
GEOMLIBEXPORT int MregionTestPoint (const DPOINT2D *pt, const DREGION *region, UINT32 RegionTest)
GEOMLIBEXPORT int MregionTestPolygon (const DPOLYGON *poly, const DREGION *region, UINT32 RegionTest)
GEOMLIBEXPORT int MregionTestSubRegion (const DSUBREGION *subregion, const DREGION *region, UINT32 RegionTest)
GEOMLIBEXPORT ERRVALUE MregionTransfer (DREGION *DestRegion, const DREGION *SrcRegion)
GEOMLIBEXPORT ERRVALUE MregionTranslate (DREGION *region, const TRANSPARM *tp)
GEOMLIBEXPORT int MregionUnion (DREGION *DestRegion, const DREGION *RegionA, const DREGION *RegionB)
GEOMLIBEXPORT ERRVALUE MregionUpdate (DREGION *region)
int MregionAppendToVector (int vid, void *vvinfo, DREGION *region)
int MregionClipVectPolygon (DREGION *region, int vid, INT32 PolyNum, LPOLYGON **rpolygons, INT32 *rnumpolys, UINT32 flags)
ERRVALUE MregionGetStats (const DREGION &region, double *Area, double *Perimeter, DPOINT2D *Centroid, double *AreaNotIsle, double *PerimeterNotIsle, DPOINT2D *CentroidNotIsle)
int MregionTestCADElement (void *velem, const DREGION *region, UINT32 RegionTest, UINT32 flags)
int MregionTestTINElement (int tid, int ElemType, INT32 ElemNum, const DREGION *region, UINT32 RegionTest)
int MregionTestVectorElement (int vid, int ElemType, INT32 ElemNum, const DREGION *region, UINT32 RegionTest)
GEOREGION operator & (const GEOREGION &lhs, const GEOREGION &rhs)
GEOREGION operator| (const GEOREGION &lhs, const GEOREGION &rhs)
GEOREGION operator+ (const GEOREGION &lhs, const GEOREGION &rhs)
GEOREGION operator- (const GEOREGION &lhs, const GEOREGION &rhs)
GEOREGION operator^ (const GEOREGION &lhs, const GEOREGION &rhs)


Detailed Description

<mi32/region.h> Functions and structure for regions

Definition in file region.h.


Define Documentation

#define GEOMLIBEXPORT   MI_DLLIMPORT
 

Definition at line 110 of file region.h.

#define REGIONCOMP_Inside   2
 

Element is inside the region.

Definition at line 160 of file region.h.

#define REGIONCOMP_Intersect   3
 

Element intersects the region.

Definition at line 161 of file region.h.

#define REGIONCOMP_Outside   1
 

Element is outside the region.

Definition at line 159 of file region.h.

#define REGIONCOMP_Overlap   4
 

Element overlaps the region, both inside and outside.

Definition at line 162 of file region.h.

#define REGIONFLAG_TestAsLines   0x00000001
 

Test element if possible as line data.

Definition at line 164 of file region.h.

#define REGIONTEST_ClipInside   5
 

Clip inside, not actual test.

Definition at line 156 of file region.h.

#define REGIONTEST_ClipOutside   6
 

Clip outside, not actual test.

Definition at line 157 of file region.h.

#define REGIONTEST_CompInside   1
 

Only elements completely inside region.

The DSUBREGION structure follows the same storage format as the CAD Polygon structure. The IsleNumPoints array is an array containing the number of points per island. The Points array contains both the points for the exterior polygon region and the islands. The layout of the points is as follows: first the exterior polygon is stored then the points for each island in the order stored in the IsleNumPoints array. If no islands exist, then the IsleNumPoints array is not allocated. Anything inside an island is considered to be "outside" the region. DREGION and DSUBREGION are defined in stddefns.h

Definition at line 152 of file region.h.

#define REGIONTEST_CompOutside   3
 

Only elements completely outside region.

Definition at line 154 of file region.h.

#define REGIONTEST_PartInside   2
 

All elements that partially or completely fall inside region.

Definition at line 153 of file region.h.

#define REGIONTEST_PartOutside   4
 

All elements that partially or completely fall outside region.

Definition at line 155 of file region.h.


Function Documentation

GEOREGION operator & const GEOREGION lhs,
const GEOREGION rhs
[inline]
 

Intersection.

Definition at line 964 of file region.h.

GEOREGION operator+ const GEOREGION lhs,
const GEOREGION rhs
[inline]
 

Sum (same as union).

Definition at line 984 of file region.h.

GEOREGION operator- const GEOREGION lhs,
const GEOREGION rhs
[inline]
 

Subtract one region from another.

Definition at line 992 of file region.h.

GEOREGION operator^ const GEOREGION lhs,
const GEOREGION rhs
[inline]
 

INC_MI32_REGION_H.

Definition at line 1002 of file region.h.

GEOREGION operator| const GEOREGION lhs,
const GEOREGION rhs
[inline]
 

Union.

Definition at line 974 of file region.h.


Generated on Thu Aug 12 06:23:48 2004 for TNTsdk by doxygen 1.3.4-20031026