hypermgr.h File Reference

<gre/hypermgr.h> GRE HyperIndex Link Manager definitions More...

#include <mi32/gre.h>
#include <mi32/rvchyper.h>

Include dependency graph for hypermgr.h:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  GRE

Classes

class  GRE::HYPERIDXMGR
struct  MDISPHYPERLINKLIST
struct  MDISPHYPERSHAPE
struct  MDISPHYPERSHAPELIST

Defines

#define HYPERDRAWFLAG_Highlight   0x01
#define HYPERDRAWFLAG_NoDraw   0x08
#define HYPERDRAWFLAG_ShowTransparent   0x04
#define HYPERDRAWFLAG_Unhighlight   0x02

Functions

 DEFINE_ENUM_OP_BITWISE (HYPERIDXMGR::FINDFLAGS)
ERRVALUE MdispHyperDrawShape (GRE_VIEW *view, GRE_LAYER *layer, int obj, INT32 shapenum, UINT32 drawflags)
ERRVALUE MdispHyperDrawShape (GRE_VIEW *view, GRE_LAYER *layer, int obj, const TRANS2D_MAPGEN &LayerToDisp, INT32 shapenum, UINT32 drawflags)
int MdispHyperDrawShapes (GRE_VIEW *view, UINT32 drawflags)
void MdispHyperEllipseToRect (DPOINT2D *pt, double rx, double ry, double theta, DPOINT2D *c)
int MdispHyperFindLayerElemShape (GRE_LAYER *layer, int ShapeType, INT32 ElemNum)
int MdispHyperFindLayerObjShapes (GRE_VIEW *view, GRE_LAYER *layer, int obj, const DPOINT2D &lpoint, INT32 **ShapeList, GRE::HYPERIDXMGR::FINDFLAGS flags=GRE::HYPERIDXMGR::FINDFLAG_Default)
int MdispHyperFindLinks (GRE_VIEW *view, const DPOINT2D *spoint, MDISPHYPERLINKLIST *linklist, GRE::HYPERIDXMGR::FINDFLAGS flags=GRE::HYPERIDXMGR::FINDFLAG_Default)
int MdispHyperFindLinksView (GRE_VIEW *view, const DPOINT2D *lpoint, MDISPHYPERLINKLIST *linklist, GRE::HYPERIDXMGR::FINDFLAGS flags=GRE::HYPERIDXMGR::FINDFLAG_Default)
int MdispHyperFindNeighbors (GRE_LAYOUT *layout, GRE_LAYOUT *playout, const DPOINT2D &point, const FILEPATH &parentfilename, const UNICODE *parentobjname, const FILEPATH &curfilename, const UNICODE *curobjname, HYPERLINK neighbors[8])
void MdispHyperFreeLinkList (MDISPHYPERLINKLIST *linkedlist)
void MdispHyperFreeShapeList (MDISPHYPERSHAPELIST *shapelist)
int MdispHyperGetLayerObjShapeList (GRE_LAYER *layer, int obj, MDISPHYPERSHAPE **pShapes, INT32 *pNumShapes)
int MdispHyperGetLinkObjType (int linktype)
bool MdispHyperHasLinks (GRE_VIEW *view, const DPOINT2D &spoint, GRE::HYPERIDXMGR::FINDFLAGS flags=GRE::HYPERIDXMGR::FINDFLAG_Default)
bool MdispHyperHasLinks (GRE_VIEWABLE *viewable)
void MdispHyperInit (void)
int MdispHyperObjectClose (GRE_LAYER *layer, int obj, int CloseFile)
int MdispHyperObjectGetHandle (GRE_LAYER *layer, int obj)
int MdispHyperObjectOpen (GRE_LAYER *layer, int obj, RVCHYPERINFO *hyperinfo, int writemode)
void MdispHyperRectToEllipse (DPOINT2D *pt, double *rx, double *ry, double *theta, DPOINT2D *c)
int MdispHyperShapeAddToLayer (GRE_LAYER *layer, int obj, INT32 shapenum)
int MdispHyperShapeDelete (GRE_LAYER *layer, int obj, INT32 shapenum)
ELEMTYPE MdispHyperShapeTypeToElemType (GRE_LAYER *layer, INT16 ShapeType)
int MdispHyperShapeUpdate (GRE_LAYER *layer, int obj, INT32 shapenum)


Detailed Description

<gre/hypermgr.h> GRE HyperIndex Link Manager definitions

Definition in file hypermgr.h.


Define Documentation

#define HYPERDRAWFLAG_Highlight   0x01
 

End namespace GRE.

Definition at line 62 of file hypermgr.h.

#define HYPERDRAWFLAG_NoDraw   0x08
 

Definition at line 65 of file hypermgr.h.

#define HYPERDRAWFLAG_ShowTransparent   0x04
 

Definition at line 64 of file hypermgr.h.

#define HYPERDRAWFLAG_Unhighlight   0x02
 

Definition at line 63 of file hypermgr.h.


Function Documentation

DEFINE_ENUM_OP_BITWISE HYPERIDXMGR::FINDFLAGS   ) 
 

ERRVALUE MdispHyperDrawShape GRE_VIEW view,
GRE_LAYER layer,
int  obj,
INT32  shapenum,
UINT32  drawflags
 

Draw specified HyperIndex shape for layer.

ERRVALUE MdispHyperDrawShape GRE_VIEW view,
GRE_LAYER layer,
int  obj,
const TRANS2D_MAPGEN LayerToDisp,
INT32  shapenum,
UINT32  drawflags
 

Draw specified HyperIndex shape for layer.

int MdispHyperDrawShapes GRE_VIEW view,
UINT32  drawflags
 

Draw all HyperIndex link shapes for view.

void MdispHyperEllipseToRect DPOINT2D pt,
double  rx,
double  ry,
double  theta,
DPOINT2D c
 

Convert ellipse to rectangle corner points.

int MdispHyperFindLayerElemShape GRE_LAYER layer,
int  ShapeType,
INT32  ElemNum
 

Find shape corresponding to given layer element.

Returns:
Shape number, -1 if no shape, < -1 if error.

int MdispHyperFindLayerObjShapes GRE_VIEW view,
GRE_LAYER layer,
int  obj,
const DPOINT2D lpoint,
INT32 **  ShapeList,
GRE::HYPERIDXMGR::FINDFLAGS  flags = GRE::HYPERIDXMGR::FINDFLAG_Default
 

Return list of shape numbers for given layer object.

Returns:
Number of shapes or error < 0.
Parameters:
obj  Layer object number
lpoint  Point in layer's object coordinates
ShapeList  Shape numbers (within HyperIndex object) returned

int MdispHyperFindLinks GRE_VIEW view,
const DPOINT2D spoint,
MDISPHYPERLINKLIST linklist,
GRE::HYPERIDXMGR::FINDFLAGS  flags = GRE::HYPERIDXMGR::FINDFLAG_Default
 

Find hyper links for view given point.

Parameters:
spoint  Point in "screen" coordinates

int MdispHyperFindLinksView GRE_VIEW view,
const DPOINT2D lpoint,
MDISPHYPERLINKLIST linklist,
GRE::HYPERIDXMGR::FINDFLAGS  flags = GRE::HYPERIDXMGR::FINDFLAG_Default
 

Find hyper links for view given point.

Parameters:
lpoint  Point in "view" coordinates

int MdispHyperFindNeighbors GRE_LAYOUT layout,
GRE_LAYOUT playout,
const DPOINT2D point,
const FILEPATH parentfilename,
const UNICODE parentobjname,
const FILEPATH curfilename,
const UNICODE curobjname,
HYPERLINK  neighbors[8]
 

Find neighbor links/shapes for given layout.

Parameters:
layout  Layout, NULL if point is in Lat-Lon
point  Point in layout or Lat-Lon coordinates
parentfilename  Name of parent file (previous navigation step)
parentobjname  Name of parent object
curfilename  Name of current file to exclude from neighbor list
curobjname  Name of current object to exclude from neighbor list
neighbors  Array of neighbors returned

void MdispHyperFreeLinkList MDISPHYPERLINKLIST linkedlist  ) 
 

Free linked list.

void MdispHyperFreeShapeList MDISPHYPERSHAPELIST shapelist  ) 
 

Free shape list.

int MdispHyperGetLayerObjShapeList GRE_LAYER layer,
int  obj,
MDISPHYPERSHAPE **  pShapes,
INT32 pNumShapes
 

Get shape list for specified layer.

Parameters:
pShapes  Pointer returned, DO NOT FREE

int MdispHyperGetLinkObjType int  linktype  ) 
 

Get RVC object type for HyperIndex link type.

bool MdispHyperHasLinks GRE_VIEW view,
const DPOINT2D spoint,
GRE::HYPERIDXMGR::FINDFLAGS  flags = GRE::HYPERIDXMGR::FINDFLAG_Default
 

Determine if has any hyperlinks for specified point.

Parameters:
spoint  Point in "screen" coordinates

bool MdispHyperHasLinks GRE_VIEWABLE viewable  ) 
 

Determine if has any hyperlinks for specified viewable.

void MdispHyperInit void   ) 
 

Initialize HyperIndex module.

int MdispHyperObjectClose GRE_LAYER layer,
int  obj,
int  CloseFile
 

Close HyperIndex object for specified layer object.

int MdispHyperObjectGetHandle GRE_LAYER layer,
int  obj
 

Return HyperIndex object handle for specified layer object.

int MdispHyperObjectOpen GRE_LAYER layer,
int  obj,
RVCHYPERINFO hyperinfo,
int  writemode
 

Open HyperIndex object for specified layer object.

Returns:
TRUE if opened file, FALSE if file was already open, < 0 if error.

void MdispHyperRectToEllipse DPOINT2D pt,
double *  rx,
double *  ry,
double *  theta,
DPOINT2D c
 

Convert rectangle (corner points) to ellipse.

Parameters:
pt  Center of ellipse returned
rx  X Radius returned
ry  Y Radius returned
theta  Rotation angle returned
c  Rectangle corners

int MdispHyperShapeAddToLayer GRE_LAYER layer,
int  obj,
INT32  shapenum
 

Add HyperIndex shape to array of shapes for layer.

Parameters:
obj  Layer object

int MdispHyperShapeDelete GRE_LAYER layer,
int  obj,
INT32  shapenum
 

Delete HyperIndex shape from layer.

Parameters:
obj  Layer object

ELEMTYPE MdispHyperShapeTypeToElemType GRE_LAYER layer,
INT16  ShapeType
 

Determine ELEMTYPE for HyperIndex ShapeType (HYPERSHAPE...).

Returns:
Element type, ELEMTYPE_Empty if can't convert.
Parameters:
layer  Layer
ShapeType  HYPERSHAPE_... shape type

int MdispHyperShapeUpdate GRE_LAYER layer,
int  obj,
INT32  shapenum
 

Update after any change to shape (except deletion)/.

Parameters:
obj  Layer object


Generated on Tue Dec 14 13:18:54 2004 for TNTsdk by  doxygen 1.3.8-20040913