mi32/rvcgref.h File Reference

<mi32/rvcgref.h> Definitions for georeference objects and functions More...

#include <mi32/rvcdefns.h>
#include <mi32/tiepoint.h>
#include <mi32/ctrlpt.h>

Include dependency graph for rvcgref.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  GEOREFMATRIX
struct  RVCCAMERAINFO
struct  RVCGEOREFINFO
struct  RVCTIEPOINTINFO

Defines

#define GEOREF_IMPLIED   5
#define GEOREF_MATRIX   6
#define GEOREF_CTRLPOINT   7
#define RVCGREF_FlagMask   0xFFFF0000
#define RVCGREF_TransGenOutput   0x00010000
#define RVCGREF_IncludeArb   0x00020000
#define MfCameraCalibRead(_f, _oi, _info)   _MfCameraCalibRead((_f),(_oi),(_info),sizeof(RVCCAMERAINFO))
#define MfCameraCalibWrite(_f, _oi, _info)   _MfCameraCalibWrite((_f),(_oi),(_info),sizeof(RVCCAMERAINFO))
#define MfReadTiePoints(_f, _oi, _info, _d)   _MfTiePointsRead((_f),(_oi),(_info),sizeof(RVCTIEPOINTINFO),(_d))
#define MfWriteTiePoints(_f, _oi, _info, _d)   _MfTiePointsWrite((_f),(_oi),(_info),sizeof(RVCTIEPOINTINFO),(_d))
#define MfReadGeoref(_f, _oi, _info, _d)   _MfGeorefRead((_f),(_oi),(_info),sizeof(RVCGEOREFINFO),(_d))
#define MfReadGeorefMatrix(_f, _oi, _info, _fwd, _inv, _pp)   _MfGeorefReadMatrix((_f),(_oi),(_info),sizeof(RVCGEOREFINFO),(_fwd),(_inv),(_pp))
#define MfReadGeorefTransParm(_f, _oi, _info, _tp, _tm)   _MfGeorefReadTransParm((_f),(_oi),(_info),sizeof(RVCGEOREFINFO),(_tp),(_tm))
#define MfWriteGeoref(_f, _oi, _info, _d)   _MfGeorefWrite((_f),(_oi),(_info),sizeof(RVCGEOREFINFO),(_d))

Functions

int MdlgGetGeoreferenceObject (MDLGPARENT dlgparent, const FILEPATH &filename, INT32 parentinode, INT32 *objectinode, const void *prompt, RVCGEOREFINFO *objinfo, MfFiltFuncProto filter=0, void *filtdata=0, GETOBJFLAGS flags=GETOBJFLAG_None)
int MdlgGetGeoreferenceObject (MDLGPARENT dlgparent, const UNICODE *filename, INT32 parentinode, INT32 *objectinode, const void *prompt, RVCGEOREFINFO *objinfo, MfFiltFuncProto filter=0, void *filtdata=0, GETOBJFLAGS flags=GETOBJFLAG_None)
int MdlgGetTiePointObject (MDLGPARENT dlgparent, const UNICODE *filename, INT32 parentinode, INT32 *objectinode, const void *prompt, RVCTIEPOINTINFO *objinfo, MfFiltFuncProto filter=0, void *filtdata=0, GETOBJFLAGS flags=GETOBJFLAG_None)
int MfWriteGeorefHeader (int fhandle, RVCINODENUM inode, RVCGEOREFINFO *info)
RVCAPPLIBEXPORT ERRVALUE ProjSetMapInfoTAB (MAPPROJPARM &ProjParm, IMapInfoFile *pFile, double &scale)
RVCAPPLIBEXPORT int MfComputeScaleFromGeoref (int fhandle, INT32 georefinode, double *xscale, double *yscale)
RVCAPPLIBEXPORT ERRVALUE MfGeorefChkDefault (int fhandle, INT32 parentinode, INT32 &georefinode)
RVCAPPLIBEXPORT INT32 MfGeorefGetDefault (int findex, INT32 parent, UINT32 flags=0)
RVCAPPLIBEXPORT int MfSetScaleFromGeoref (int fhandle, INT32 objinode, INT32 georefinode, int OnlyIfZero)
RVCAPPLIBEXPORT void CopyGEOREFINFOtoMAPPROJPARM (MAPPROJPARM *projparm, const RVCGEOREFINFO *georefinfo)
RVCAPPLIBEXPORT void CopyMAPPROJPARMtoGEOREFINFO (RVCGEOREFINFO *georefinfo, const MAPPROJPARM *projparm)
RVCAPPLIBEXPORT int SetDftGeorefNameDesc (RVCGEOREFINFO *ginfo, const MAPPROJPARM *projparm)
int MfReadGeorefHeader (int fhandle, RVCINODENUM inode, RVCGEOREFINFO *info)


Detailed Description

<mi32/rvcgref.h> Definitions for georeference objects and functions

Definition in file rvcgref.h.


Define Documentation

#define GEOREF_CTRLPOINT   7
 

List of CTRLPOINT3's.

Definition at line 182 of file rvcgref.h.

#define GEOREF_IMPLIED   5
 

Georeference information is implied in the data.

Definition at line 180 of file rvcgref.h.

#define GEOREF_MATRIX   6
 

Uses 2-D transformation matrix.

Definition at line 181 of file rvcgref.h.

#define MfCameraCalibRead _f,
_oi,
_info   )     _MfCameraCalibRead((_f),(_oi),(_info),sizeof(RVCCAMERAINFO))
 

Definition at line 309 of file rvcgref.h.

#define MfCameraCalibWrite _f,
_oi,
_info   )     _MfCameraCalibWrite((_f),(_oi),(_info),sizeof(RVCCAMERAINFO))
 

Definition at line 310 of file rvcgref.h.

#define MfReadGeoref _f,
_oi,
_info,
_d   )     _MfGeorefRead((_f),(_oi),(_info),sizeof(RVCGEOREFINFO),(_d))
 

Definition at line 313 of file rvcgref.h.

#define MfReadGeorefMatrix _f,
_oi,
_info,
_fwd,
_inv,
_pp   )     _MfGeorefReadMatrix((_f),(_oi),(_info),sizeof(RVCGEOREFINFO),(_fwd),(_inv),(_pp))
 

Definition at line 314 of file rvcgref.h.

#define MfReadGeorefTransParm _f,
_oi,
_info,
_tp,
_tm   )     _MfGeorefReadTransParm((_f),(_oi),(_info),sizeof(RVCGEOREFINFO),(_tp),(_tm))
 

Definition at line 315 of file rvcgref.h.

#define MfReadTiePoints _f,
_oi,
_info,
_d   )     _MfTiePointsRead((_f),(_oi),(_info),sizeof(RVCTIEPOINTINFO),(_d))
 

Definition at line 311 of file rvcgref.h.

#define MfWriteGeoref _f,
_oi,
_info,
_d   )     _MfGeorefWrite((_f),(_oi),(_info),sizeof(RVCGEOREFINFO),(_d))
 

Definition at line 316 of file rvcgref.h.

#define MfWriteTiePoints _f,
_oi,
_info,
_d   )     _MfTiePointsWrite((_f),(_oi),(_info),sizeof(RVCTIEPOINTINFO),(_d))
 

Definition at line 312 of file rvcgref.h.

#define RVCGREF_FlagMask   0xFFFF0000
 

Definition at line 184 of file rvcgref.h.

#define RVCGREF_IncludeArb   0x00020000
 

MfGeorefGetDeafult - Include PROJ_Arbitrary in default check.

Definition at line 186 of file rvcgref.h.

#define RVCGREF_TransGenOutput   0x00010000
 

MfReadGeorefTransParm - Setup output side of TRANSPARM.

Definition at line 185 of file rvcgref.h.


Function Documentation

RVCAPPLIBEXPORT void CopyGEOREFINFOtoMAPPROJPARM MAPPROJPARM projparm,
const RVCGEOREFINFO georefinfo
 

Copy fields from RVCGEOREFINFO structure to MAPPROJPARM structure.

RVCAPPLIBEXPORT void CopyMAPPROJPARMtoGEOREFINFO RVCGEOREFINFO georefinfo,
const MAPPROJPARM projparm
 

Copy fields from MAPPROJPARM structure to RVCGEOREFINFO structure.

int MdlgGetGeoreferenceObject MDLGPARENT  dlgparent,
const UNICODE filename,
INT32  parentinode,
INT32 objectinode,
const void *  prompt,
RVCGEOREFINFO objinfo,
MfFiltFuncProto  filter = 0,
void *  filtdata = 0,
GETOBJFLAGS  flags = GETOBJFLAG_None
[inline]
 

Get georeference object.

Definition at line 262 of file rvcgref.h.

int MdlgGetGeoreferenceObject MDLGPARENT  dlgparent,
const FILEPATH filename,
INT32  parentinode,
INT32 objectinode,
const void *  prompt,
RVCGEOREFINFO objinfo,
MfFiltFuncProto  filter = 0,
void *  filtdata = 0,
GETOBJFLAGS  flags = GETOBJFLAG_None
[inline]
 

Get georeference object.

Definition at line 247 of file rvcgref.h.

int MdlgGetTiePointObject MDLGPARENT  dlgparent,
const UNICODE filename,
INT32  parentinode,
INT32 objectinode,
const void *  prompt,
RVCTIEPOINTINFO objinfo,
MfFiltFuncProto  filter = 0,
void *  filtdata = 0,
GETOBJFLAGS  flags = GETOBJFLAG_None
[inline]
 

X_NATIVE || WIN32_MFC.

Definition at line 277 of file rvcgref.h.

RVCAPPLIBEXPORT int MfComputeScaleFromGeoref int  fhandle,
INT32  georefinode,
double *  xscale,
double *  yscale
 

Compute object scale / cell size from specified georeference object.

Parameters:
fhandle  Handle for open RVC file
georefinode  Georeference object to use
xscale  X scale or raster cell size returned
yscale  Y scale or raster cell size returned

RVCAPPLIBEXPORT ERRVALUE MfGeorefChkDefault int  fhandle,
INT32  parentinode,
INT32 georefinode
 

Check for valid georeference inode and get default for given parent object.

Parameters:
georefinode  Georeference inode passed/returned

RVCAPPLIBEXPORT INT32 MfGeorefGetDefault int  findex,
INT32  parent,
UINT32  flags = 0
 

Get default georeference under an object.

Returns:
Inode of default georef object or -1 if no georef object or < 0 Error.
This function determines the default georeference to use based on time / date stamps. Arbitrary georeference objects are not considered unless there are no other georeferences or the RVCGREF_IncludeArb flag is passed. For Raster Set objects, the georeference under the raster set is first considered then the georeferences under the raster object, if the raster object inode is passed as the parent inode.
Parameters:
findex  File handle returned by MfMakeFile or MfOpenFile
parent  Inode of parent object to search for georeference under
flags  Flags

int MfReadGeorefHeader int  fhandle,
RVCINODENUM  inode,
RVCGEOREFINFO info
[inline]
 

#ifndef INC_MI32_RVCGREF_H

Definition at line 392 of file rvcgref.h.

RVCAPPLIBEXPORT int MfSetScaleFromGeoref int  fhandle,
INT32  objinode,
INT32  georefinode,
int  OnlyIfZero
 

Set X/Y scale fields in object header based on specified georeference object.

Parameters:
fhandle  RVC file handle
objinode  Inode for object
georefinode  Inode for georeference object
OnlyIfZero  Flag - only change scale values if they are currently zero

int MfWriteGeorefHeader int  fhandle,
RVCINODENUM  inode,
RVCGEOREFINFO info
[inline]
 

Write the header information for the georef object.

Definition at line 294 of file rvcgref.h.

RVCAPPLIBEXPORT ERRVALUE ProjSetMapInfoTAB MAPPROJPARM ProjParm,
IMapInfoFile *  pFile,
double &  scale
 

RVCAPPLIBEXPORT int SetDftGeorefNameDesc RVCGEOREFINFO ginfo,
const MAPPROJPARM projparm
 

Set default name, desc from a MAPPROJPARM.

Parameters:
ginfo  The header
projparm  Projection parameters


Generated on Thu Aug 12 06:24:00 2004 for TNTsdk by doxygen 1.3.4-20031026