mi32/stddefns.h File Reference

#include <mi32/dlldefns.h>

Include dependency graph for stddefns.h:

mi32/dlldefns.h

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

gre/base.hmi32/framemem.hmi32/mprint.hmi32/inibase.hmi32/fillpoly.hmi32/bitset.hrvc/mstdatt.hmi32/fixedstr.hrvc/descriptor.hmi32/hdf4.hmi32/ports.hgre/dde.hmgui/shell.hmi32/latlonfm.hmi32/xdefns.hmi32/midialog.hmi32/migrid.hrvc/element.hmgui/appmain.hmgui/base.hmgui/command.hmgui/cursorid.hmgui/customui.hrvc/object.hmi32/mdlg.hmgui/imagelst.hmi32/charencoding.hmi32/filepath.hmi32/mg2cms.hmi32/mgd2.hmi32/avi.hmi32/lastpath.hmi32/ucstring.hmi32/cgm.hmi32/genrcrwtxt.hmi32/filetext.hmi32/misystem.hmgui/tooltip.hmi32/complex.hmi32/autocolr.hmi32/base64.hmi32/memalloc.hmi32/milist.hmi32/polyline.hrvc/opprofiling.hmi32/mihash.hmi32/nasaodl.hmi32/thumbnl.hmi32/obslist.hmi32/bitsetd.hmi32/bitsetd64.hmi32/btreefun.hmi32/codespace.hmi32/colorbal.hmi32/colorspc.hmi32/comppts.hmi32/contrastparm.hmi32/cpuext.hmi32/critsec.hmi32/datetime.hmi32/mcb.hmi32/relshade.hmi32/delegate.hmi32/mithread.hmi32/dispinfo.hmi32/dither.hmi32/midblary.hmi32/doubleclicktest.hmi32/grlist.hmi32/drawgen.hmi32/elemtype.hmi32/elemtypeset.hmi32/enumset.hmi32/errhandler.hmi32/filelegacy.hmi32/genericrw.hmi32/geocat.hmi32/geom2d.hmi32/geom3d.hmi32/imgtilit.hmi32/math.hmi32/jpegext.hmi32/lincomrw.hmi32/linerast.hmi32/longlist.hmi32/macres.hmi32/matrix.hmi32/membuf.hmi32/mempool.hmi32/mg2enums.hmi32/mg2imagefilewriter.hmi32/micache.hmi32/micallbacklist.hmi32/micon.hmi32/mimsg.hmi32/minetres.hmi32/mnetfunc.hmi32/modbc.hmi32/morphol.hmi32/movie.hmi32/mstatus.hmi32/msys.hmi32/mtimer.hmi32/mwizard.hmi32/netnghbr.hmi32/oldprojparm.hmi32/planeconic.hmi32/range.hmi32/statunivar.hrvc/oprastertoregion.hmi32/readwritelock.hmi32/rgngen.hmi32/rvcdefns.hmi32/scrnunit.hmi32/serializable.hmi32/serializeritem.hmi32/sessionlog.hmi32/sort.hmi32/stereoparm.hmi32/strutf8.hmi32/textres.hmi32/thrlcstr.hmi32/trans3d.hmi32/transgen.hmi32/transmod.hmi32/ucregexp.hmi32/unitconv.hmi32/xmlhelper.hmi32/xtabpage.hmi32/xydig.hmie/mie2.hmie/features.hrvc/credentials.hrvc/otypeset.hrvc/getobjflags.hrvc/opcrosssection.hrvc/opgeometrictoraster.hrvc/opgeomtovoronoi.hrvc/opimageautocorr.hrvc/oprasterthreshold.hrvc/oprastertogeombound.hrvc/oprastertogeomline.hrvc/opslantground.hsoa/uidownload.hspatmod/datatype.hspatmod/imagespans.hspatmod/metadatacontent.h

Go to the source code of this file.

Namespaces

namespace  MGD
namespace  MGUI

Classes

struct  DPOLYGON
struct  DPOLYLINE3D
struct  DRANGE
struct  LPOLYGON
struct  LSEGMENT2D
struct  WPOLYGON

Defines

#define ALIGN16(_x)   _x __attribute((aligned(16)))
#define ALIGN8(_x)   _x __attribute((aligned(8)))
#define bound(val, min, max)   (((val)<(min))?(min):(((val)>(max))?(max):(val)))
#define BYTEORDER_HiLo
#define CHECKSIZE(s)   inline int _checksize () { return (1 / ((sizeof(*this) == (s)) ? 1 : 0)); }
#define DEG64TORAD   (PI/(64.0*180.0))
#define DEGTORAD   (PI/180.0)
#define DEPRECATED
#define DEPRECATED_MSG(_msg)
#define EBadFuncParm   -1213
#define EProgramError   -1204
#define EUserCancel   -1000
#define FALSE   0
#define FEETTOMETERS   (0.3048)
#define GLOBALFUNC
#define MAX(i1, i2)   (((i1)>(i2))?(i1):(i2))
#define membersize(type, name)   sizeof(((type*)0)->name)
#define METERSTOFEET   (3.280839895)
#define METERSTOINCHES   (3.280839895*12.0)
#define MI_ARRAYSIZE(a)   (sizeof(a)/sizeof(a[0]))
#define MIN(i1, i2)   (((i1)<(i2))?(i1):(i2))
#define NULL   0
#define PI   (3.14159265358979323846)
#define R_NewRequest   -2026
#define R_SkipRequest   -2035
#define RADTODEG   (180.0/PI)
#define RADTODEG64   (64.0*180.0/PI)
#define SIGN(d)   (((d)<0) ? -1 : ((d)>0) ? 1 : 0)
#define SWAP(a, b)   { a-=b; b+=a; a=b-a; }
#define TRUE   1

Typedefs

typedef unsigned int COLOR32
typedef double DOUBLE
typedef DPOLYGON DPOLYLINE
typedef int ERRVALUE
typedef float FLOAT
typedef UINT32 ICID
typedef PTRINT MGUI::ID
typedef void * INIHANDLE
typedef short INT16
typedef long INT32
typedef long long INT64
typedef signed char INT8
typedef LPOLYGON LPOLYLINE
typedef LRECT2D LRECTXY
typedef DOUBLE MAT3X3 [3][3]
typedef DOUBLE Mat3x3 [3][3]
typedef DOUBLE MAT4X4 [4][4]
typedef CWnd * MDLGPARENT
typedef unsigned short MIUNICODE
typedef unsigned long MPIXEL
typedef void * MXDHANDLE
typedef unsigned long MGD::PIXEL
typedef INT32 PTRINT
typedef UINT32 PTRUINT
typedef INT32 RVCINODENUM
typedef unsigned short UINT16
typedef unsigned long UINT32
typedef unsigned long long UINT64
typedef unsigned char UINT8
typedef _WidgetRec * Widget
typedef WPOLYGON WPOLYLINE
typedef WRECT2D WRECTXY

Enumerations

enum  HELPID { HELPID__None = 0 }
enum  TEXTID { TEXTID__None = 0, TEXTID__Default = 1 }

Functions

INT64 INT32ToINT64 (INT32 high, INT32 low)
void INT64ToINT32 (INT64 value, INT32 &high, INT32 &low)
ERRVALUE MdlgShowErrorCode (MDLGPARENT parent, ERRVALUE errcode)
template<class _CT>
void SetBitFromBool (_CT &value, unsigned bit, bool set)
void SetMinMax (UINT32 x, UINT32 &minx, UINT32 &maxx)
void SetMinMax (INT32 x, INT32 &minx, INT32 &maxx)
void SetMinMax (double x, double &minx, double &maxx)
UINT64 UINT32ToUINT64 (UINT32 high, UINT32 low)
void UINT64ToUINT32 (UINT64 value, UINT32 &high, UINT32 &low)

Variables

const INT16 INT16_MAX = 32767
const INT16 INT16_MIN = -INT16_MAX-1
const INT32 INT32_MAX = 2147483647
const INT32 INT32_MIN = -INT32_MAX-1
const INT64 INT64_MAX = 0x7FFFFFFFFFFFFFFFLL
const INT64 INT64_MIN = -INT64_MAX-1
const UINT64 INT64_MULT = static_cast<UINT64>(UINT32_MAX) + 1
const INT8 INT8_MAX = 127
const INT8 INT8_MIN = -INT8_MAX-1
const UINT16 UINT16_MAX = 65535
const UINT16 UINT16_MIN = 0
const UINT32 UINT32_MAX = 4294967295UL
const UINT32 UINT32_MIN = 0
const UINT64 UINT64_MAX = 0xFFFFFFFFFFFFFFFFULL
const UINT64 UINT64_MIN = 0
const UINT8 UINT8_MAX = 255
const UINT8 UINT8_MIN = 0


Define Documentation

#define ALIGN16 ( _x   )     _x __attribute((aligned(16)))

Definition at line 583 of file stddefns.h.

#define ALIGN8 ( _x   )     _x __attribute((aligned(8)))

Definition at line 582 of file stddefns.h.

#define bound ( val,
min,
max   )     (((val)<(min))?(min):(((val)>(max))?(max):(val)))

Definition at line 776 of file stddefns.h.

#define BYTEORDER_HiLo

mi32/stddefns.h - Standard definitions for MicroImages SDK

Definition at line 301 of file stddefns.h.

#define CHECKSIZE (  )     inline int _checksize () { return (1 / ((sizeof(*this) == (s)) ? 1 : 0)); }

Compile-time validate size of structure or class.

Definition at line 781 of file stddefns.h.

#define DEG64TORAD   (PI/(64.0*180.0))

Definition at line 734 of file stddefns.h.

#define DEGTORAD   (PI/180.0)

Definition at line 732 of file stddefns.h.

#define DEPRECATED

Definition at line 430 of file stddefns.h.

#define DEPRECATED_MSG ( _msg   ) 

Definition at line 431 of file stddefns.h.

#define EBadFuncParm   -1213

Invalid parameter(s) used for library function.

Definition at line 709 of file stddefns.h.

#define EProgramError   -1204

Program error, operation aborted.

Definition at line 708 of file stddefns.h.

#define EUserCancel   -1000

Operation cancelled by user.

Definition at line 707 of file stddefns.h.

#define FALSE   0

Definition at line 717 of file stddefns.h.

#define FEETTOMETERS   (0.3048)

Definition at line 736 of file stddefns.h.

#define GLOBALFUNC

Compile-time validate that public global has a matching prototype.

Definition at line 785 of file stddefns.h.

#define MAX ( i1,
i2   )     (((i1)>(i2))?(i1):(i2))

Definition at line 773 of file stddefns.h.

#define membersize ( type,
name   )     sizeof(((type*)0)->name)

Definition at line 767 of file stddefns.h.

#define METERSTOFEET   (3.280839895)

Definition at line 737 of file stddefns.h.

#define METERSTOINCHES   (3.280839895*12.0)

Definition at line 738 of file stddefns.h.

#define MI_ARRAYSIZE (  )     (sizeof(a)/sizeof(a[0]))

Definition at line 770 of file stddefns.h.

#define MIN ( i1,
i2   )     (((i1)<(i2))?(i1):(i2))

Definition at line 772 of file stddefns.h.

#define NULL   0

Definition at line 724 of file stddefns.h.

#define PI   (3.14159265358979323846)

Definition at line 730 of file stddefns.h.

#define R_NewRequest   -2026

New object request.

Definition at line 710 of file stddefns.h.

#define R_SkipRequest   -2035

Request to skip.

Definition at line 711 of file stddefns.h.

#define RADTODEG   (180.0/PI)

Definition at line 731 of file stddefns.h.

#define RADTODEG64   (64.0*180.0/PI)

Definition at line 733 of file stddefns.h.

#define SIGN (  )     (((d)<0) ? -1 : ((d)>0) ? 1 : 0)

Definition at line 774 of file stddefns.h.

#define SWAP ( a,
 )     { a-=b; b+=a; a=b-a; }

Definition at line 775 of file stddefns.h.

#define TRUE   1

Definition at line 721 of file stddefns.h.


Typedef Documentation

typedef unsigned int COLOR32

Definition at line 486 of file stddefns.h.

typedef double DOUBLE

Definition at line 589 of file stddefns.h.

typedef DPOLYGON DPOLYLINE

Definition at line 642 of file stddefns.h.

typedef int ERRVALUE

Return type value, signifies < 0 is an error.

Definition at line 666 of file stddefns.h.

typedef float FLOAT

Definition at line 588 of file stddefns.h.

typedef UINT32 ICID

Interface component ID.

Definition at line 672 of file stddefns.h.

typedef void* INIHANDLE

Ini access handle.

Definition at line 697 of file stddefns.h.

typedef short INT16

Definition at line 451 of file stddefns.h.

typedef long INT32

Some X headers define it this way so must match.

Definition at line 464 of file stddefns.h.

typedef long long INT64

Definition at line 466 of file stddefns.h.

typedef signed char INT8

Definition at line 449 of file stddefns.h.

typedef LPOLYGON LPOLYLINE

Definition at line 641 of file stddefns.h.

typedef LRECT2D LRECTXY

Definition at line 625 of file stddefns.h.

typedef DOUBLE MAT3X3[3][3]

Definition at line 694 of file stddefns.h.

typedef DOUBLE Mat3x3[3][3]

Definition at line 693 of file stddefns.h.

typedef DOUBLE MAT4X4[4][4]

Definition at line 695 of file stddefns.h.

typedef CWnd* MDLGPARENT

Definition at line 678 of file stddefns.h.

typedef unsigned short MIUNICODE

Definition at line 598 of file stddefns.h.

typedef unsigned long MPIXEL

Generic "pixel" value.

Definition at line 699 of file stddefns.h.

typedef void* MXDHANDLE

Generic dialog handle.

Definition at line 698 of file stddefns.h.

typedef INT32 PTRINT

Definition at line 482 of file stddefns.h.

typedef UINT32 PTRUINT

Definition at line 483 of file stddefns.h.

typedef INT32 RVCINODENUM

Type for RVC Object Inode parameter.

Definition at line 673 of file stddefns.h.

typedef unsigned short UINT16

Definition at line 452 of file stddefns.h.

typedef unsigned long UINT32

Definition at line 465 of file stddefns.h.

typedef unsigned long long UINT64

Definition at line 467 of file stddefns.h.

typedef unsigned char UINT8

Definition at line 450 of file stddefns.h.

typedef struct _WidgetRec* Widget

Definition at line 674 of file stddefns.h.

typedef WPOLYGON WPOLYLINE

Definition at line 640 of file stddefns.h.

typedef WRECT2D WRECTXY

rect.h

Definition at line 622 of file stddefns.h.


Enumeration Type Documentation

enum HELPID

Help text resource identifier.

Enumerator:
HELPID__None 

Definition at line 661 of file stddefns.h.

enum TEXTID

Text resource identifier.

Enumerator:
TEXTID__None 
TEXTID__Default  Indicates to use default text for functions that have TEXTID parameter.

Definition at line 655 of file stddefns.h.


Function Documentation

INT64 INT32ToINT64 ( INT32  high,
INT32  low 
) [inline]

Functions to convert two INT32's to an INT64.

Definition at line 800 of file stddefns.h.

void INT64ToINT32 ( INT64  value,
INT32 high,
INT32 low 
) [inline]

Definition at line 806 of file stddefns.h.

template<class _CT>
void SetBitFromBool ( _CT &  value,
unsigned  bit,
bool  set 
) [inline]

Set or clear 'bit' in value based on 'bool'.

The type may be an enum if DEFINE_ENUM_OP_BITWISE used on enum.

Parameters:
value  Value to modify
bit  Bit(s) to set or clear.
set  'true' to set, 'false' to clear

Definition at line 789 of file stddefns.h.

void SetMinMax ( UINT32  x,
UINT32 minx,
UINT32 maxx 
) [inline]

Definition at line 797 of file stddefns.h.

void SetMinMax ( INT32  x,
INT32 minx,
INT32 maxx 
) [inline]

Definition at line 796 of file stddefns.h.

void SetMinMax ( double  x,
double &  minx,
double &  maxx 
) [inline]

Definition at line 795 of file stddefns.h.

UINT64 UINT32ToUINT64 ( UINT32  high,
UINT32  low 
) [inline]

Definition at line 801 of file stddefns.h.

void UINT64ToUINT32 ( UINT64  value,
UINT32 high,
UINT32 low 
) [inline]

Definition at line 807 of file stddefns.h.


Variable Documentation

const INT16 INT16_MAX = 32767

Definition at line 513 of file stddefns.h.

const INT16 INT16_MIN = -INT16_MAX-1

Definition at line 514 of file stddefns.h.

const INT32 INT32_MAX = 2147483647

Definition at line 518 of file stddefns.h.

const INT32 INT32_MIN = -INT32_MAX-1

Definition at line 519 of file stddefns.h.

const INT64 INT64_MAX = 0x7FFFFFFFFFFFFFFFLL

Maximum value of a 64-bit signed integer.

Definition at line 531 of file stddefns.h.

const INT64 INT64_MIN = -INT64_MAX-1

Minimum value of a 64-bit signed integer.

Definition at line 537 of file stddefns.h.

const UINT64 INT64_MULT = static_cast<UINT64>(UINT32_MAX) + 1

Create two INT32's to INT64 constants.

Definition at line 542 of file stddefns.h.

const INT8 INT8_MAX = 127

Definition at line 508 of file stddefns.h.

const INT8 INT8_MIN = -INT8_MAX-1

Definition at line 509 of file stddefns.h.

const UINT16 UINT16_MAX = 65535

Definition at line 515 of file stddefns.h.

const UINT16 UINT16_MIN = 0

Definition at line 516 of file stddefns.h.

const UINT32 UINT32_MAX = 4294967295UL

Definition at line 520 of file stddefns.h.

const UINT32 UINT32_MIN = 0

Definition at line 521 of file stddefns.h.

const UINT64 UINT64_MAX = 0xFFFFFFFFFFFFFFFFULL

Maximum value of a 64-bit signed unsigned integer.

Definition at line 533 of file stddefns.h.

const UINT64 UINT64_MIN = 0

Minimum value of a 64-bit signed unsigned integer.

Definition at line 539 of file stddefns.h.

const UINT8 UINT8_MAX = 255

Definition at line 510 of file stddefns.h.

const UINT8 UINT8_MIN = 0

Definition at line 511 of file stddefns.h.


Generated on Thu Apr 26 04:08:27 2007 for TNTsdk by  doxygen 1.5.2