mi32/stddefns.h File Reference

#include <mi32/dlldefns.h>
#include <mi32/errcodes.h>
#include <mi32/math.h>
#include <mi32/errhandler.h>

Include dependency graph for stddefns.h:

mi32/dlldefns.hmi32/errcodes.hmi32/math.hmi32/errhandler.h

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

gre/base.hmi32/framemem.hmi32/mprint.hmi32/point.hmi32/inidefns.hmi32/fixedstr.hmi32/rvcdefns.hrvc/object.hmi32/rvctin.hmi32/elemstyl.hmi32/mgd2.hmi32/migrid.hmi32/cgm.hmi32/xdefns.hmgui/command.hmgui/shell.hmgui/dlgbase.hmgui/base.hmgui/tooltip.hmi32/mgui.hmi32/midialog.hmi32/hdf4.hmi32/ports.hrvc/descriptor.hmi32/rect.hmi32/polyline.hmi32/geocat.hmi32/geom2d.hmi32/unitconv.hmi32/erdashfa.hmi32/planeconic.hmi32/xydig.hmi32/bitset.hmi32/latlonfm.hgre/dde.hmi32/critsec.hrvc/element.hmgui/appmain.hmgui/cursorid.hmgui/customui.hmi32/mdlg.hmgui/imagelst.hrvc/formedst.hmi32/ucstring.hmi32/filepath.hmi32/lastpath.hmi32/mg2cms.hmi32/filetext.hmi32/genrcrwtxt.hmi32/ucregexp.hmi32/color.hmi32/dither.hmi32/thumbnl.hmi32/complex.hmi32/autocolr.hmi32/avi.hmi32/base64.hmi32/memalloc.hmi32/milist.hmi32/mihash.hmi32/nasaodl.hmi32/textres.hmi32/miodefns.hmi32/obslist.hmi32/bitsetd.hmi32/bitsetd64.hmi32/btreefun.hmi32/codespace.hmi32/mcb.hmi32/colormap.hmi32/colorspc.hmi32/comppts.hmi32/cpuext.hmi32/datetime.hmi32/delegate.hmi32/misystem.hmi32/dispinfo.hmi32/midblary.hmi32/mstatus.hmi32/elemtype.hmi32/elemtypeset.hrvc/mstdatt.hmi32/enumset.hmi32/errhandler.hmi32/filelegacy.hmi32/genericrw.hmi32/geom3d.hmi32/grlist.hmi32/i18n.hmi32/icodefns.hmi32/imgtilit.hmi32/math.hmi32/iso8211.hmi32/jpegext.hmi32/longlist.hmi32/macres.hmi32/matrix.hmi32/mcache.hmi32/membuf.hmi32/mempool.hmi32/mg2enums.hmi32/mg2imagefilewriter.hmi32/micache.hmi32/micallbacklist.hmi32/micon.hmi32/mimsg.hmi32/minetres.hmi32/mithread.hmi32/mlist.hmi32/mnetfunc.hmi32/morphol.hmi32/movie.hmi32/mscsi.hmi32/msys.hmi32/mtimer.hmi32/mwizard.hmi32/mxstereo.hmi32/netnghbr.hmi32/oldprojparm.hmi32/range.hmi32/statunivar.hmi32/readwritelock.hmi32/rgngen.hmi32/scrnunit.hmi32/sessionlog.hmi32/sort.hmi32/strutf8.hmi32/thrlcstr.hmi32/trans3d.hmi32/transgen.hmi32/transmod.hmie/mie2.hmie/features.hrvc/credentials.hrvc/otypeset.hspatmod/datatype.hspatmod/imagesection.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
 rvcdefns.h More...

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 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 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 int(*) MfFiltFuncProto (int, RVCINODENUM, RVCGENINFO *, void *, char *)
typedef int(*) MfValidMultiProto (int, FNAMEINODEUC *, void *, int *, char *)
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 }

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 550 of file stddefns.h.

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

Definition at line 549 of file stddefns.h.

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

Definition at line 738 of file stddefns.h.

#define BYTEORDER_HiLo

mi32/stddefns.h - Standard definitions for MicroImages SDK

Definition at line 271 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 747 of file stddefns.h.

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

Definition at line 696 of file stddefns.h.

#define DEGTORAD   (PI/180.0)

Definition at line 694 of file stddefns.h.

#define DEPRECATED

Definition at line 398 of file stddefns.h.

#define FALSE   0

Definition at line 679 of file stddefns.h.

#define FEETTOMETERS   (0.3048)

Definition at line 698 of file stddefns.h.

#define GLOBALFUNC

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

Definition at line 751 of file stddefns.h.

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

Definition at line 735 of file stddefns.h.

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

Definition at line 729 of file stddefns.h.

#define METERSTOFEET   (3.280839895)

Definition at line 699 of file stddefns.h.

#define METERSTOINCHES   (3.280839895*12.0)

Definition at line 700 of file stddefns.h.

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

Definition at line 732 of file stddefns.h.

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

Definition at line 734 of file stddefns.h.

#define NULL   0

Definition at line 686 of file stddefns.h.

#define PI   (3.14159265358979323846)

Definition at line 692 of file stddefns.h.

#define RADTODEG   (180.0/PI)

Definition at line 693 of file stddefns.h.

#define RADTODEG64   (64.0*180.0/PI)

Definition at line 695 of file stddefns.h.

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

Definition at line 736 of file stddefns.h.

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

Definition at line 737 of file stddefns.h.

#define TRUE   1

Definition at line 683 of file stddefns.h.


Typedef Documentation

typedef unsigned int COLOR32

Definition at line 453 of file stddefns.h.

typedef double DOUBLE

Definition at line 556 of file stddefns.h.

typedef DPOLYGON DPOLYLINE

Definition at line 609 of file stddefns.h.

typedef int ERRVALUE

Return type value, signifies < 0 is an error.

Definition at line 632 of file stddefns.h.

typedef float FLOAT

Definition at line 555 of file stddefns.h.

typedef UINT32 ICID

Interface component ID.

Definition at line 638 of file stddefns.h.

typedef void* INIHANDLE

Ini access handle.

Definition at line 667 of file stddefns.h.

typedef short INT16

Definition at line 418 of file stddefns.h.

typedef long INT32

Some X headers define it this way so must match.

Definition at line 431 of file stddefns.h.

typedef long long INT64

Definition at line 433 of file stddefns.h.

typedef signed char INT8

Definition at line 416 of file stddefns.h.

typedef LPOLYGON LPOLYLINE

Definition at line 608 of file stddefns.h.

typedef LRECT2D LRECTXY

Definition at line 589 of file stddefns.h.

typedef DOUBLE MAT3X3[3][3]

Definition at line 664 of file stddefns.h.

typedef DOUBLE Mat3x3[3][3]

Definition at line 663 of file stddefns.h.

typedef DOUBLE MAT4X4[4][4]

Definition at line 665 of file stddefns.h.

typedef CWnd* MDLGPARENT

Definition at line 648 of file stddefns.h.

typedef int(*) MfFiltFuncProto(int, RVCINODENUM, RVCGENINFO *, void *, char *)

Definition at line 641 of file stddefns.h.

typedef int(*) MfValidMultiProto(int, FNAMEINODEUC *, void *, int *, char *)

Definition at line 642 of file stddefns.h.

typedef unsigned short MIUNICODE

Definition at line 562 of file stddefns.h.

typedef unsigned long MPIXEL

Generic "pixel" value.

Definition at line 669 of file stddefns.h.

typedef void* MXDHANDLE

Generic dialog handle.

Definition at line 668 of file stddefns.h.

typedef INT32 PTRINT

Definition at line 449 of file stddefns.h.

typedef UINT32 PTRUINT

Definition at line 450 of file stddefns.h.

typedef INT32 RVCINODENUM

Type for RVC Object Inode parameter.

Definition at line 640 of file stddefns.h.

typedef unsigned short UINT16

Definition at line 419 of file stddefns.h.

typedef unsigned long UINT32

Definition at line 432 of file stddefns.h.

typedef unsigned long long UINT64

Definition at line 434 of file stddefns.h.

typedef unsigned char UINT8

Definition at line 417 of file stddefns.h.

typedef struct _WidgetRec* Widget

Definition at line 644 of file stddefns.h.

typedef WPOLYGON WPOLYLINE

Definition at line 607 of file stddefns.h.

typedef WRECT2D WRECTXY

rect.h

Definition at line 586 of file stddefns.h.


Enumeration Type Documentation

enum HELPID

Help text resource identifier.

Enumerator:
HELPID__None 

Definition at line 627 of file stddefns.h.

enum TEXTID

Text resource identifier.

Enumerator:
TEXTID__None 

Definition at line 622 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 766 of file stddefns.h.

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

Definition at line 772 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 755 of file stddefns.h.

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

Definition at line 763 of file stddefns.h.

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

Definition at line 762 of file stddefns.h.

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

Definition at line 761 of file stddefns.h.

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

Definition at line 767 of file stddefns.h.

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

Definition at line 773 of file stddefns.h.


Variable Documentation

const INT16 INT16_MAX = 32767

Definition at line 480 of file stddefns.h.

const INT16 INT16_MIN = -INT16_MAX-1

Definition at line 481 of file stddefns.h.

const INT32 INT32_MAX = 2147483647

Definition at line 485 of file stddefns.h.

const INT32 INT32_MIN = -INT32_MAX-1

Definition at line 486 of file stddefns.h.

const INT64 INT64_MAX = 0x7FFFFFFFFFFFFFFFLL

Maximum value of a 64-bit signed integer.

Definition at line 498 of file stddefns.h.

const INT64 INT64_MIN = -INT64_MAX-1

Minimum value of a 64-bit signed integer.

Definition at line 504 of file stddefns.h.

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

Create two INT32's to INT64 constants.

Definition at line 509 of file stddefns.h.

const INT8 INT8_MAX = 127

Definition at line 475 of file stddefns.h.

const INT8 INT8_MIN = -INT8_MAX-1

Definition at line 476 of file stddefns.h.

const UINT16 UINT16_MAX = 65535

Definition at line 482 of file stddefns.h.

const UINT16 UINT16_MIN = 0

Definition at line 483 of file stddefns.h.

const UINT32 UINT32_MAX = 4294967295UL

Definition at line 487 of file stddefns.h.

const UINT32 UINT32_MIN = 0

Definition at line 488 of file stddefns.h.

const UINT64 UINT64_MAX = 0xFFFFFFFFFFFFFFFFULL

Maximum value of a 64-bit signed unsigned integer.

Definition at line 500 of file stddefns.h.

const UINT64 UINT64_MIN = 0

Minimum value of a 64-bit signed unsigned integer.

Definition at line 506 of file stddefns.h.

const UINT8 UINT8_MAX = 255

Definition at line 477 of file stddefns.h.

const UINT8 UINT8_MIN = 0

Definition at line 478 of file stddefns.h.


Generated on Thu Apr 26 04:46:17 2007 for TNTsdk by  doxygen 1.5.2