Functions | |
| int | Mgd3dDepthInit (MgdDISPLAY display) |
| int | Mgd3dDepthSetFunction (MgdGC gc, float xcoeff, float ycoeff, float zconst , bool isPerspective) |
| ERRVALUE | MgdChangeColorMap (MgdDISPLAY display, COLMAPINFO *colmapinfo) |
| ERRVALUE | MgdCreateGC (MGD_DISPLAY *display, MGD_GC **gc) |
| ERRVALUE | MgdDestroyGC (MGD_GC *gc) |
| ERRVALUE | MgdDrawIcon (MgdGC gc, INT32 x, INT32 y, MICON icon, UINT32 flags) |
| ERRVALUE | MgdDrawLineStyleSample (MgdGC gc, int shandle, const LINESTYLE *style, const LRECT2D *rect, UINT32 flags) |
| ERRVALUE | MgdDrawPointStyleSample (MgdGC gc, int shandle, const POINTSTYLE *style, const LRECT2D *rect, UINT32 flags) |
| ERRVALUE | MgdDrawPolyStyleSample (MgdGC gc, int shandle, const POLYSTYLE *style, const LRECT2D *rect, UINT32 flags) |
| double | MgdGetPixelSizeMM (MgdDISPLAY display) |
| void | MgdGetPixelSizeXYMM (MgdDISPLAY display, double *xsize, double *ysize) |
| ERRVALUE | MgdImageBegin (MgdGC gc, INT32 x, INT32 y, INT32 width, INT32 height, UINT32 colorspace, COLMAPINFO *colmapinfo=0, UINT32 flags=0) |
| ERRVALUE | MgdImageEnd (MgdGC gc, UINT32 flags=0) |
| ERRVALUE | MgdInit (MgdDISPLAY *display, DISPLAYINFO *dispinfo, COLMAPINFO *colmapinfo, int(*FillSpan)(MgdGC, INT32, INT32, INT32)) |
| ERRVALUE | MgdInitMem24 (MgdDISPLAY *display, INT32 width, INT32 height, double mmPerPixel, UINT32 flags=MGDMEM24_BGR) |
| ERRVALUE | MgdInitRaster (MgdDISPLAY *display, int fhandle, RVCRASTINFO *rastinfo) |
| ERRVALUE | MgdInitRasterTransMask (MgdDISPLAY *display, int rfhandle, RVCRASTINFO &rastinfo, int mfhandle, RVCRASTINFO &maskinfo) |
| ERRVALUE | MgdInitSimple (MgdDISPLAY *display, MgdGC *gc, INT32 width, INT32 height, int depth, int(*FillSpan)(MgdGC, INT32, INT32, INT32), void *funcdata) |
| ERRVALUE | MgdInterfaceTextDrawString (MgdGC gc, INT32 x, INT32 y, const UNICODE *string, TEXTBASEORIGIN baseorigin=TEXTBASEORIGIN_FirstLine) |
| ERRVALUE | MgdInterfaceTextDrawString (MgdGC gc, INT32 x, INT32 y, const char *string, TEXTBASEORIGIN baseorigin=TEXTBASEORIGIN_FirstLine) |
| ERRVALUE | MgdInterfaceTextGetExtents (MgdGC gc, const UNICODE *string, int *width, int *height=0, int *ascent=0) |
| ERRVALUE | MgdInterfaceTextGetExtents (MgdGC gc, const char *string, int *width, int *height=0, int *ascent=0) |
| UINT8 * | MgdMem24GetImagePointer (MgdDISPLAY display, INT32 x, INT32 y) |
| int | MgdMem24GetLineBytes (MgdDISPLAY display) |
| ERRVALUE | MgdMem24ScanColorUse (MgdDISPLAY display, HISTORGB *historgb) |
| ERRVALUE | MgdPutImageSpan (MgdGC gc, INT32 x, INT32 y, INT32 len, void *data, UINT8 *mask=0) |
| ERRVALUE | MgdResetGC (MgdGC gc) |
| ERRVALUE | MgdSetClipNone (MgdGC gc) |
| ERRVALUE | MgdSetClipRectangle (MgdGC gc, INT32 xinit, INT32 yinit, INT32 xlast, INT32 ylast) |
| ERRVALUE | MgdSetColor (MgdGC gc, const COLOR *color) |
| ERRVALUE | MgdSetColorPixel (MgdGC gc, MgdPIXEL pixel) |
| ERRVALUE | MgdSetLineAttributes (MgdGC gc, int capstyle, int joinstyle) |
| ERRVALUE | MgdSetLineWidth (MgdGC gc, double width) |
| ERRVALUE | MgdSetOutputScale (MgdGC gc, double mapscale) |
| ERRVALUE | MgdSetPixelFunction (MgdGC gc, int function) |
| ERRVALUE | MgdSetPixelSizeMM (MgdDISPLAY display, double xsize, double ysize) |
| ERRVALUE | MgdSetPlaneMask (MgdGC gc, MgdPIXEL mask) |
| ERRVALUE | MgdSetPlaneMaskRGB (MgdGC gc, UINT8 redmask, UINT8 greenmask, UINT8 bluemask) |
| ERRVALUE | MgdSetStyleFill (MgdGC gc, const POLYSTYLE *style, const void *pattdata=0, INT32 pattbytes=0) |
| ERRVALUE | MgdSetStyleLine (MgdGC gc, const LINESTYLE *style, const void *pattdata=0, INT32 pattbytes=0) |
| ERRVALUE | MgdSetStylePoint (MgdGC gc, const POINTSTYLE *style, const void *pattdata=0, INT32 pattbytes=0) |
| ERRVALUE | MgdStop (MgdDISPLAY display) |
| ERRVALUE | MgdTextBlockComputeExtents (MgdGC gc, MgdTEXTBLOCK *textblock, DRECT2D *extents) |
| ERRVALUE | MgdTextBlockDraw (MgdGC gc, MgdTEXTBLOCK *textblock) |
| ERRVALUE | MgdTextBlockGetFirstString (MgdTEXTBLOCK *textblock, UNICODE *string, int maxlen) |
| ERRVALUE | MgdTextDrawGlyph (MgdGC gc, double x, double y, double baseangle, UNICODE character, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| ERRVALUE | MgdTextDrawString (MgdGC gc, DPOINT2D *basepoints, int numbasepoints, UINT32 baseflags, const UNICODE *string, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| ERRVALUE | MgdTextDrawStringPart (MgdGC gc, DPOINT2D *basepoints, int numbasepoints, UINT32 baseflags, const UNICODE *string, int startindex=0, int endindex=0, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| ERRVALUE | MgdTextDrawStringSimple (MgdGC gc, double x, double y, double baseangle, const UNICODE *string, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| int | MgdTextGetFontByName (INIHANDLE ini, UNICODE *fontname, UNICODE *family, UINT32 StyleFlags, UINT32 *pStyleFlags) |
| ERRVALUE | MgdTextGetFontInfo (int fhandle, MgdFONT *font) |
| ERRVALUE | MgdTextGetFontMetrics (MgdGC gc, MgdFONTINFO *fontinfo) |
| ERRVALUE | MgdTextGetFontName (int fonthandle, UNICODE *fontname) |
| ERRVALUE | MgdTextGetStringExtents (MgdGC gc, DPOINT2D *basepoints, int numbasepoints, UINT32 baseflags, const UNICODE *string, DRECT2D *extents, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| ERRVALUE | MgdTextGetStringExtentsJustified (MgdGC gc, DPOINT2D *basepoints, int numbasepoints, UINT32 baseflags, const UNICODE *string, DRECT2D *extents, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| ERRVALUE | MgdTextGetStringExtentsSimple (MgdGC gc, double x, double y, double baseangle, const UNICODE *string, DRECT2D *extents, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| ERRVALUE | MgdTextGetStringExtentsSimpleJustified (MgdGC gc, double x, double y, double baseangle, const UNICODE *string, DRECT2D *extents, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| ERRVALUE | MgdTextGetStringMetrics (MgdGC gc, const UNICODE *string, MgdGLYPHINFO *glyphinfo, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| ERRVALUE | MgdTextGetStringWidth (MgdGC gc, const UNICODE *string, double *width, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE) |
| ERRVALUE | MgdTextGetTTFName (INIHANDLE ini, const UNICODE *fontname, int nameid, UNICODE *name, int namesize, UINT32 *pStyleFlags) |
| int | MgdTextOpenFont (const UNICODE *fontname) |
| ERRVALUE | MgdTextSetColorPixels (MgdGC gc, MgdPIXEL fgpixel, MgdPIXEL bgpixel, MgdPIXEL ulpixel) |
| ERRVALUE | MgdTextSetColors (MgdGC gc, COLOR *fgcolor, COLOR *bgcolor, COLOR *ulcolor=0) |
| ERRVALUE | MgdTextSetEnhanceWidth (MgdGC gc, double width) |
| ERRVALUE | MgdTextSetFont (MgdGC gc, int fonthandle) |
| void | MgdTextSetFontByName (MgdGC gc, UNICODE *fontname) |
| ERRVALUE | MgdTextSetHeight (MgdGC gc, double height) |
| ERRVALUE | MgdTextSetShadowValues (MgdGC gc, double offset, double angle, UINT8 relative) |
| ERRVALUE | MgdTextSetStrokeWidth (MgdGC gc, double width) |
| void | MgdTextSetStyle (MgdGC gc, TEXTSTYLE *style) |
| ERRVALUE | MgdTextSetUnderlineValues (MgdGC gc, double offset, double thickness) |
|
|
Initialize depth buffer for 3D display.
|
|
||||||||||||||||||||||||
|
Set depth function for 3D drawing. This sets the depth function to: Z = X * xcoeff + Y * ycoeff + zconst.
|
|
||||||||||||
|
Change color map associated with display.
|
|
||||||||||||
|
Create "graphic context" for generic display.
|
|
|
Destroy graphic context.
|
|
||||||||||||||||||||||||
|
Draw single icon. Flags: MgdICON_OriginTopLeft Top-Left of icon at specified coordinates (default) MgdICON_OriginTopCenter Top-Center MgdICON_OriginTopRight Top-Right MgdICON_OriginCenterLeft Center-Left MgdICON_OriginCenter Center icon MgdICON_OriginCenterRight Center-Right MgdICON_OriginBottomLeft Bottom-Left MgdICON_OriginBottomCenter Bottom-Right MgdICON_OriginBottomRight Bottom-Center MgdICON_Dimmed Draw "dimmed" icon
|
|
||||||||||||||||||||||||
|
Draw sample of line style in specified rectangle.
|
|
||||||||||||||||||||||||
|
Draw sample of point style in specified rectangle.
|
|
||||||||||||||||||||||||
|
Draw sample of polygon style in specified rectangle.
|
|
|
Return pixel size for display in millimeters. If the specified "display" is NULL or the mmPerPixel field is not initialized, .31 will be returned. This is the approximate size for 1024x768 on a 17 inch screen.
|
|
||||||||||||||||
|
Retrieve X/Y pixel size in millimeters. If the specified "display" is NULL or the mmPerPixel field is not initialized, .31 will be returned. This is the approximate size for 1024x768 on a 17 inch screen.
|
|
||||||||||||||||||||||||||||||||||||
|
Notify device of size/position/colors for image to be displayed.
|
|
||||||||||||
|
Notify device that image is complete.
|
|
||||||||||||||||||||
|
Setup generic graphic display. This function creates and initializes a simple generic graphic display. The programmer need only supply a single function to perform horizontal span "filling". This function will be called for all drawing operations. XXX
|
|
||||||||||||||||||||||||
|
Setup 24-bit memory-based display. This "display" is implemented by allocating a memory image of linebytes*height bytes where 'linebytes' is computed by padding each row up to the next multiple of 4 bytes (not pixels). The data order is stored pixel-interleaved in the order specified by the flags. Use MgdMem24GetImagePointer() to retrieve the pointer to the memory image. This display supports "transparency" effects via color mixing.
|
|
||||||||||||||||
|
Setup raster-based display. This function will create the raster if it does not exist (rastinfo->objectinode <= 0). The raster data type must at present be either RVCTYPE_RGB or RVCTYPE_BGR, though additional types could be implemented. If the raster is smaller than a certain size (currently 1M cells) the data will be buffered in memory until the raster is closed.
|
|
||||||||||||||||||||||||
|
Setup raster-based display with transparency mask retention. This function will create the raster if it does not exist (rastinfo->objectinode <= 0). The raster data type must at present be either RVCTYPE_RGB or RVCTYPE_BGR, though additional types could be implemented. If the raster is smaller than a certain size (currently 1M cells) the data will be buffered in memory until the raster is closed.
|
|
||||||||||||||||||||||||||||||||
|
Setup "simple" display commonly used for reading/drawing in raster objects. This function is commonly used when the "drawing" is to be done directly to a raster object. No color translation is available for the simple display, so use of MgdSetColor() or MgdSetColorPixel() is not recommended.
|
|
||||||||||||||||||||||||
|
Draw "interface text" char* string.
|
|
||||||||||||||||||||||||
|
Draw "interface text" UNICODE* string. This and related InterfaceText functions are used for rendering text through the underlying graphic system. For example, X text will be rendered using BDF fonts. For user interfaces this will generally be much faster than using the MgdText or MgdTextBlock functions, but is subject to the limitations of the user-selected font and style. Flags TEXTBASEORIGIN_Baseline Base of first line (default) TEXTBASEORIGIN_Left Left of first line (default) TEXTBASEORIGIN_CenterHorz Center horizontally using longest line TEXTBASEORIGIN_Right Right of longest line TEXTBASEORIGIN_Top Top TEXTBASEORIGIN_CenterVert Center vertically all lines TEXTBASEORIGIN_Bottom Bottom of all lines TEXTBASEORIGIN_CenterVertFirstLine Center first line vertically
|
|
||||||||||||||||||||||||
|
Get extents of "interface text" char* string.
|
|
||||||||||||||||||||||||
|
Get extents of "interface text" UNICODE* string.
|
|
||||||||||||||||
|
Get pointer to location in pixel array for 24-bit memory-based display.
|
|
|
Get number of bytes per image line in 24-bit memory-based display.
|
|
||||||||||||
|
Determine color usage for 24-bit memory-based display.
|
|
||||||||||||||||||||||||||||
|
Put horizontal "span" of image data on display.
|
|
|
Reset all drawing parameters (except color) to defaults.
|
|
|
Set clipping to entire drawing extents.
|
|
||||||||||||||||||||||||
|
Set clipping rectangle.
|
|
||||||||||||
|
Set drawing color.
|
|
||||||||||||
|
Set drawing color using given pixel value.
|
|
||||||||||||||||
|
Set line "cap" and "join" styles.
|
|
||||||||||||
|
Set line width in pixels.
|
|
||||||||||||
|
Set output scale for use by styles, symbols, patterns.
|
|
||||||||||||
|
Set pixel bitwise logical function. Pixel functions MgdPIXELFUNC_Clear 0 MgdPIXELFUNC_And src AND dst MgdPIXELFUNC_AndReverse src AND NOT dst MgdPIXELFUNC_Copy src (default) MgdPIXELFUNC_AndInverted NOT src AND dst MgdPIXELFUNC_NoOp dst MgdPIXELFUNC_ExclusiveOr src XOR dst MgdPIXELFUNC_Or src OR dst MgdPIXELFUNC_Nor NOT src AND NOT dst MgdPIXELFUNC_Equiv NOT src XOR dst MgdPIXELFUNC_Invert NOT dst MgdPIXELFUNC_OrReverse src OR NOT dst MgdPIXELFUNC_CopyInverted NOT src MgdPIXELFUNC_OrInverted NOT src OR dst MgdPIXELFUNC_NotAnd NOT src OR NOT dst MgdPIXELFUNC_Set 1
|
|
||||||||||||||||
|
Set pixel size for display in millimeters.
|
|
||||||||||||
|
Set bitplane mask.
|
|
||||||||||||||||||||
|
Set bitplane mask using separate RGB values (TrueColor displays only).
|
|
||||||||||||||||||||
|
Set filling style including pattern.
|
|
||||||||||||||||||||
|
Set line drawing style including pattern.
|
|
||||||||||||||||||||
|
Set point drawing style including pattern. If the STYLEFLAG_ScaleToMap flag is set in style.StyleFlags the current output scale will be used to scale the pattern. If no pattern is specified the points will be drawn as boxes or circles depending on the StyleFlags.
|
|
|
Free all resources associated with generic display.
|
|
||||||||||||||||
|
Compute extents of text block.
|
|