mxgraph.h File Reference

#include <mi32/xdefns.h>
#include <mi32/mgd2.h>
#include <mi32/mxtools.h>

Include dependency graph for mxgraph.h:

Include dependency graph

Go to the source code of this file.

Classes

struct  MxGraphCallbackStruct
struct  POINT_ND

Defines

#define GRAPH_HISTOGRAM_CREATEMENU   0x0010
#define GRAPH_HISTOGRAM_CUMULATIVE   0x0004
#define GRAPH_HISTOGRAM_GRIDLINES   0x0002
#define GRAPH_HISTOGRAM_LOGARITHMIC   0x0020
#define GRAPH_HISTOGRAM_MENUCLOSE   0x0100
#define GRAPH_HISTOGRAM_MINMAXONLY   0x0008
#define GRAPH_HISTOGRAM_NOFILL   0x0001
#define HISTOGRAM_BAR   1
#define HISTOGRAM_IGNORE   0
#define HISTOGRAM_LASTSTYLE   3
#define HISTOGRAM_OUTLINE   2
#define HISTOGRAM_STRIP   3
#define LABELS_INBOX   3
#define LABELS_NONE   1
#define LABELS_PLAIN   2
#define MxGraph_ClientMessageReason   0x0400
#define MxGraph_ColorChangeReason   0x1000
#define MxGraph_DataChangeReason   0x0800
#define MxGraph_DestroyReason   0x0001
#define MxGraph_ExposeReason   0x0100
#define MxGraph_LeftPressReason   0x0002
#define MxGraph_LeftReleaseReason   0x0004
#define MxGraph_MotionLeftNotifyReason   0x0020
#define MxGraph_MotionRightNotifyReason   0x0040
#define MxGraph_NDViewClearScreen   0x2000
#define MxGraph_NDViewRestoreScreen   0x4000
#define MxGraph_RedrawReason   0x0080
#define MxGraph_ResizeReason   0x0200
#define MxGraph_RightPressReason   0x0008
#define MxGraph_RightReleaseReason   0x0010
#define MxGraphHistogramClear(wdt)   (MxGraphHistogramSetData(wdt,NULL,0))
#define XYPLOT_DRAWGRID   0x0004
#define XYPLOT_DRAWNODES   0x0010
#define XYPLOT_DRAWSTAIRS   0x0001
#define XYPLOT_HASTOOL   0x0008
#define XYPLOT_SNAPTOVERTEX   0x0020
#define XYPLOT_SOLIDPLOT   0x0002
#define XYPLOT_XVALUEISINTEGER   0x0040

Functions

int MxGraphAddCallback (Widget wgraph, McbCallbackFunc, void *data, UINT32 reason)
Widget MxGraphCreate (Widget parent, int Width, int Height, void(*CB_Draw)(MGD::CONTEXT *gc, TRANSPARM *, int, int, void *, UINT32), void *userdata, UINT32 flags, Arg *arg, int n)
int MxGraphDraw (Widget wgraph)
int MxGraphEnableRedraw (Widget wgraph, int flag)
int MxGraphGetDimensions (Widget wgraph, int *Width, int *Height)
Widget MxGraphGetDrawingAreaWidget (Widget wgraph)
int MxGraphGetPixmap (Widget wgraph, Pixmap *p)
MXTHANDLE MxGraphGetTool (Widget wgraph)
void * MxGraphGetUserData (Widget wgraph)
int MxGraphHistogramCheckForNull (Widget whisto)
int MxGraphHistogramComputeFromData (Widget whisto, DOUBLE *data, int numdata, int numintervals)
Widget MxGraphHistogramCreate (Widget parent, int Width, int Height, int numintervals, UINT32 *data, UINT32 flags, Arg *arg, int n)
int MxGraphHistogramEnableTooltip (Widget whisto, int flag)
int MxGraphHistogramGetCount (Widget whisto, INT32 bin, INT32 *count)
int MxGraphHistogramGetDataRange (Widget whisto, DOUBLE *start, DOUBLE *end)
int MxGraphHistogramGetMaxCount (Widget whisto, INT32 *bin, INT32 *count)
int MxGraphHistogramGetNumIntervals (Widget whisto, INT32 *numintervals)
int MxGraphHistogramScreenToData (Widget whisto, int x, int y, INT32 *bin, DOUBLE *value, INT32 *count)
int MxGraphHistogramSetData (Widget whisto, UINT32 *data, int items)
int MxGraphHistogramSetDataDouble (Widget whisto, DOUBLE *data, int numintervals)
int MxGraphHistogramSetFlags (Widget whisto, UINT32 flags)
int MxGraphHistogramSetFromRaster (Widget whisto, const UNICODE *Filename, INT32 inode, const REGION2D *region, int ColorComp)
int MxGraphHistogramSetStyle (Widget whisto, COLOR *fg, COLOR *bg, COLOR *fill, COLOR *labelcover, DOUBLE levelcount, int DrawStyle)
int MxGraphHistogramSetTextStyle (Widget whisto, const char *Fontname, float size)
int MxGraphHistogramSetTicMarks (Widget whisto, DOUBLE datastart, DOUBLE dataend, DOUBLE ticstart, DOUBLE ticspacing)
int MxGraphHistogramSmooth (Widget whisto)
int MxGraphNDViewAddPoints (Widget wview, INT32 numdim, POINT_ND *points, INT32 numpts, int Normalize, int ToClass)
int MxGraphNDViewAddSinglePoint (Widget wview, INT32 numdim, POINT_ND *point)
int MxGraphNDViewClearPoints (Widget wview)
Widget MxGraphNDViewCreate (Widget parent, int Width, int Height, UINT32 flags, Arg *argext, int next)
int MxGraphNDViewEditColors (Widget wview, int Redraw)
int MxGraphNDViewGetClassColor (Widget wview, int classnum, COLOR *color)
int MxGraphNDViewGetMaxNumClasses (Widget wview)
int MxGraphNDViewRotate (Widget wview)
int MxGraphNDViewRotateRandom (Widget wview)
int MxGraphNDViewSetPointMappingCallback (Widget wview, int(*MapFunc)(void *, INT32, COLOR *, int), void *userdata)
int MxGraphNDViewSetPoints (Widget wview, INT32 numdim, POINT_ND *points, INT32 numpts, int Norm)
int MxGraphNDViewSetRotationVector (Widget wview, DOUBLE dx, DOUBLE dy, DOUBLE radius)
int MxGraphNDViewSetSpeed (Widget wview, DOUBLE time_speed)
int MxGraphNDViewSetViewAxises (Widget wview, int haxis, int vaxis)
int MxGraphNDViewSpinGetCancel (Widget wview)
int MxGraphNDViewSpinRandom (Widget wview)
int MxGraphNDViewSpinSetCancel (Widget wview)
int MxGraphNDViewUpdatePointCoord (Widget wview, INT32 pointnum, INT32 numdim, INT32 dim, DOUBLE value)
int MxGraphObjectToScreen (Widget wgraph, DPOINT2D *Obj, DPOINT2D *Scr)
void MxGraphRemoveCallback (Widget w, McbCallbackFunc, void *data, UINT32 reason)
int MxGraphScreenToObject (Widget wgraph, DPOINT2D *Scr, DPOINT2D *Obj)
Widget MxGraphSelectorCreate (Widget parent, int Width, int Height, int NumSelections, UINT8 *Bitmap, UINT32 flags, Arg *argext, int next)
int MxGraphSetTransParm (Widget wgraph, TRANSPARM *tparam)
Widget MxGraphSliderCreate (Widget parent, int Width, int Height, int MinVal, int MaxVal, int InitVal, int *Value, UINT32 flags, Arg *argext, int next)
int MxGraphSliderGetMinMax (Widget wgraph, int *MinVal, int *MaxVal)
int MxGraphSliderGetValue (Widget wgraph, int *Value)
int MxGraphSliderSetBackgroundColor (Widget wgraph, COLOR *color)
int MxGraphSliderSetMarkerColor (Widget wgraph, COLOR *fillcolor)
int MxGraphSliderSetMinMax (Widget wgraph, int NewMin, int NewMax, int Redraw)
int MxGraphSliderSetSensitive (Widget wgraph, int Flag)
int MxGraphSliderSetValue (Widget wgraph, int NewValue, int Redraw)
int MxGraphSliderSetValueChangeCallback (Widget wgraph, McbCallbackFunc func, void *userdata)
int MxGraphSnapshot (Widget wgraph)
int MxGraphXYPlotAddLine (Widget wplot, const UNICODE *name, DPOLYLINE *Line, const COLOR *color, DOUBLE linewidth, int Redraw)
int MxGraphXYPlotAddLineScaled (Widget wplot, const UNICODE *name, DPOLYLINE *Line, const COLOR *color, DOUBLE linewidth, DOUBLE offset, DOUBLE scale, int Redraw)
int MxGraphXYPlotClear (Widget wplot, int Redraw)
Widget MxGraphXYPlotCreate (Widget parent, int Width, int Height, const UNICODE *title, const UNICODE *xtitle, const UNICODE *ytitle, const UNICODE *y2title, UINT32 flags, Arg *argext, int next)
int MxGraphXYPlotEditLineColors (Widget wplot, int Redraw)
int MxGraphXYPlotEditVertex (Widget wplot, const UNICODE *linename, INT32 vertexnum, DOUBLE y, int redraw)
int MxGraphXYPlotGetColors (Widget wplot, COLOR *A, COLOR *B, COLOR *TextColor)
int MxGraphXYPlotGetExtents (Widget wplot, DRECT2D *rect)
int MxGraphXYPlotGetHorizontalRange (Widget wplot, DOUBLE *minval, DOUBLE *maxval)
int MxGraphXYPlotGetLine (Widget wplot, const UNICODE *linename, DPOLYLINE *poly)
int MxGraphXYPlotGetVerticalRange (Widget wplot, DOUBLE *minval, DOUBLE *maxval)
int MxGraphXYPlotSetAxisNames (Widget wplot, const char *title, const char *xtitle, const char *ytitle, const char *y2title)
int MxGraphXYPlotSetAxisNamesUC (Widget wplot, const UNICODE *title, const UNICODE *xtitle, const UNICODE *ytitle, const UNICODE *y2title)
int MxGraphXYPlotSetChangePositionCallback (Widget wplot, McbCallbackFunc func, void *userdata)
int MxGraphXYPlotSetColors (Widget wplot, COLOR *A, COLOR *B, COLOR *TextColor)
int MxGraphXYPlotSetFlags (Widget wplot, UINT32 flags)
int MxGraphXYPlotSetFontname (Widget wplot, const UNICODE *fontname)
int MxGraphXYPlotSetFontSize (Widget wplot, int Size)
int MxGraphXYPlotSetHorizontalRange (Widget wplot, DOUBLE minval, DOUBLE maxval, int Redraw)
int MxGraphXYPlotSetVerticalRange (Widget wplot, DOUBLE minval, DOUBLE maxval, int Redraw)


Define Documentation

#define GRAPH_HISTOGRAM_CREATEMENU   0x0010
 

create standart pull-down menu

Definition at line 114 of file mxgraph.h.

#define GRAPH_HISTOGRAM_CUMULATIVE   0x0004
 

display histogram as cumulative graph

Definition at line 112 of file mxgraph.h.

#define GRAPH_HISTOGRAM_GRIDLINES   0x0002
 

display grid lines

Definition at line 111 of file mxgraph.h.

#define GRAPH_HISTOGRAM_LOGARITHMIC   0x0020
 

logarithmic y - scale

Definition at line 115 of file mxgraph.h.

#define GRAPH_HISTOGRAM_MENUCLOSE   0x0100
 

add "close" item to the menu

Definition at line 116 of file mxgraph.h.

#define GRAPH_HISTOGRAM_MINMAXONLY   0x0008
 

not implemented yet

Definition at line 113 of file mxgraph.h.

#define GRAPH_HISTOGRAM_NOFILL   0x0001
 

don't fill histogram bars or polygon

Definition at line 110 of file mxgraph.h.

#define HISTOGRAM_BAR   1
 

Definition at line 123 of file mxgraph.h.

#define HISTOGRAM_IGNORE   0
 

Definition at line 122 of file mxgraph.h.

#define HISTOGRAM_LASTSTYLE   3
 

Definition at line 126 of file mxgraph.h.

#define HISTOGRAM_OUTLINE   2
 

Definition at line 124 of file mxgraph.h.

#define HISTOGRAM_STRIP   3
 

Definition at line 125 of file mxgraph.h.

#define LABELS_INBOX   3
 

Definition at line 120 of file mxgraph.h.

#define LABELS_NONE   1
 

Definition at line 118 of file mxgraph.h.

#define LABELS_PLAIN   2
 

Definition at line 119 of file mxgraph.h.

#define MxGraph_ClientMessageReason   0x0400
 

Definition at line 82 of file mxgraph.h.

#define MxGraph_ColorChangeReason   0x1000
 

Definition at line 84 of file mxgraph.h.

#define MxGraph_DataChangeReason   0x0800
 

Definition at line 83 of file mxgraph.h.

#define MxGraph_DestroyReason   0x0001
 

Definition at line 72 of file mxgraph.h.

#define MxGraph_ExposeReason   0x0100
 

Definition at line 80 of file mxgraph.h.

#define MxGraph_LeftPressReason   0x0002
 

Definition at line 73 of file mxgraph.h.

#define MxGraph_LeftReleaseReason   0x0004
 

Definition at line 74 of file mxgraph.h.

#define MxGraph_MotionLeftNotifyReason   0x0020
 

Definition at line 77 of file mxgraph.h.

#define MxGraph_MotionRightNotifyReason   0x0040
 

Definition at line 78 of file mxgraph.h.

#define MxGraph_NDViewClearScreen   0x2000
 

Definition at line 86 of file mxgraph.h.

#define MxGraph_NDViewRestoreScreen   0x4000
 

Definition at line 87 of file mxgraph.h.

#define MxGraph_RedrawReason   0x0080
 

Definition at line 79 of file mxgraph.h.

#define MxGraph_ResizeReason   0x0200
 

Definition at line 81 of file mxgraph.h.

#define MxGraph_RightPressReason   0x0008
 

Definition at line 75 of file mxgraph.h.

#define MxGraph_RightReleaseReason   0x0010
 

Definition at line 76 of file mxgraph.h.

#define MxGraphHistogramClear wdt   )     (MxGraphHistogramSetData(wdt,NULL,0))
 

Clear contents of the histogram widget.

Definition at line 249 of file mxgraph.h.

#define XYPLOT_DRAWGRID   0x0004
 

draw grid lines

Definition at line 131 of file mxgraph.h.

#define XYPLOT_DRAWNODES   0x0010
 

draw circles arround graph nodes

Definition at line 133 of file mxgraph.h.

#define XYPLOT_DRAWSTAIRS   0x0001
 

draw plot in the stairs mode

Definition at line 129 of file mxgraph.h.

#define XYPLOT_HASTOOL   0x0008
 

xyplot has a crosshair tool

Definition at line 132 of file mxgraph.h.

#define XYPLOT_SNAPTOVERTEX   0x0020
 

snap tool to the closest vertex

Definition at line 134 of file mxgraph.h.

#define XYPLOT_SOLIDPLOT   0x0002
 

fill area below plot

Definition at line 130 of file mxgraph.h.

#define XYPLOT_XVALUEISINTEGER   0x0040
 

x value is integer value

Definition at line 135 of file mxgraph.h.


Function Documentation

int MxGraphAddCallback Widget  wgraph,
McbCallbackFunc  ,
void *  data,
UINT32  reason
 

Add a callback function to the "MxGraph" widget.

Parameters:
wgraph  "MxGraph" widget returned by MxGraphCreate function
data  Data passed to the callback function
reason  Callback reason , see MxGraph_...Reason masks

Widget MxGraphCreate Widget  parent,
int  Width,
int  Height,
void(*  CB_Draw)(MGD::CONTEXT *gc, TRANSPARM *, int, int, void *, UINT32),
void *  userdata,
UINT32  flags,
Arg *  arg,
int  n
 

Create "MxGraph" widget.

Returns:
"MxGraph" widget returned or NULL if error.
Parameters:
parent  Parent widget
Width  Initial width of the drawing area
Height  Initial height of the drawing area
userdata  Userdata to be passed to the CB_Draw function
flags  Flags to be passed to the CB_Draw function
arg  Attachments for the "MxGraph" widget
n  Number of elements in arg arrray

int MxGraphDraw Widget  wgraph  ) 
 

Redraw contents of the "MxGraph" widget.

Parameters:
wgraph  "MxGraph" widget

int MxGraphEnableRedraw Widget  wgraph,
int  flag
 

Enable redraw of "MxGraph" widget.

int MxGraphGetDimensions Widget  wgraph,
int *  Width,
int *  Height
 

Get actual dimension of the "MxGraph's" DrawArea widget.

Parameters:
wgraph  "MxGraph" widget
Width  Width in pixels returned
Height  Height in pixels returned

Widget MxGraphGetDrawingAreaWidget Widget  wgraph  ) 
 

Get drawing area widget.

Returns:
DrawingArea widget or NULL if error.
Parameters:
wgraph  "MxGraph" widget returned by MxGraphCreate function

int MxGraphGetPixmap Widget  wgraph,
Pixmap *  p
 

Get ID of the "MxGraph" Pixmap.

Parameters:
wgraph  "MxGraph" widget
p  Pixmap ID returned

MXTHANDLE MxGraphGetTool Widget  wgraph  ) 
 

Get tool handle associated with any MxGraph...

widget.

Returns:
Tool handle or NULL.
NOTE: You can use this function with any MxGraph... widget.
Parameters:
wgraph  Any MxGraph... widget (MxGraphXYPlot or MxGraphHistogram)

void* MxGraphGetUserData Widget  wgraph  ) 
 

Get user data.

Returns:
Pointer to the userdata or NULL.

int MxGraphHistogramCheckForNull Widget  whisto  ) 
 

This functions checks and removes 0 value from histogram.

Parameters:
whisto  Histogram widget

int MxGraphHistogramComputeFromData Widget  whisto,
DOUBLE data,
int  numdata,
int  numintervals
 

Compute histogram from raw data and assign.

Parameters:
whisto  "histogram" widget passed
data  Raw data to compute histogram from
numdata  Number of items in the data array
numintervals  Number of histogram intervals to compute

Widget MxGraphHistogramCreate Widget  parent,
int  Width,
int  Height,
int  numintervals,
UINT32 data,
UINT32  flags,
Arg *  arg,
int  n
 

Create a histogram widget.

Returns:
"Histogram" widget or NULL.
Flags: GRAPH_HISTOGRAM_NOFILL don't fill histogram bars or polygon GRAPH_HISTOGRAM_GRIDLINES display grid lines GRAPH_HISTOGRAM_LABELS display labels GRAPH_HISTOGRAM_CUMULATIVE display histogram as cumulative graph GRAPH_HISTOGRAM_MINMAXONLY not implemented yet GRAPH_HISTOGRAM_CREATEMENU create standart pull-down menu GRAPH_HISTOGRAM_LOGARITHMIC logarithmic y - scale GRAPH_HISTOGRAM_LABELINBOX draw label boxes
Parameters:
parent  Parent widget
Width  Initial width of the widget
Height  Initial height of the widget
numintervals  Number of intervals or 0
data  Histogram data or NULL
flags  Flags
arg  Attachments
n  Number of elements in arg

int MxGraphHistogramEnableTooltip Widget  whisto,
int  flag
 

Enable/disable tooltip in the "Histogram" window.

Parameters:
whisto  Histogram widget
flag  True or False

int MxGraphHistogramGetCount Widget  whisto,
INT32  bin,
INT32 count
 

Get number of counts for specified bin number.

Parameters:
whisto  Histogram widget
bin  Bin number
count  Number of counts returned

int MxGraphHistogramGetDataRange Widget  whisto,
DOUBLE start,
DOUBLE end
 

Get data range for a histogram.

NOTE: if histogram data doesn't have start/end value set, then this function returns: start = 0.0 end = numintervals - 1

Parameters:
whisto  Histogram widget
start  Starting value returned
end  Ending value returned

int MxGraphHistogramGetMaxCount Widget  whisto,
INT32 bin,
INT32 count
 

Get histogram maximum count and it's position (bin number).

Parameters:
whisto  Histogram widget
bin  Bin number returned
count  Number of counts returned

int MxGraphHistogramGetNumIntervals Widget  whisto,
INT32 numintervals
 

Get number of intervals in the histogram.

Parameters:
whisto  Histogram widget
numintervals  Number of intervals returned

int MxGraphHistogramScreenToData Widget  whisto,
int  x,
int  y,
INT32 bin,
DOUBLE value,
INT32 count
 

Convert screen pixel position into (value & count).

Parameters:
whisto  Histogram widget
x  Screen pixel coordinate
y  Screen pixel coordinate
bin  Bin number returned
value  Value returned (not a bin number)
count  Count returned

int MxGraphHistogramSetData Widget  whisto,
UINT32 data,
int  items
 

Assign data in histogram form to the histogram widget.

Parameters:
whisto  Histogram widget
data  Array of counts
items  Number of entries in data array

int MxGraphHistogramSetDataDouble Widget  whisto,
DOUBLE data,
int  numintervals
 

Assign data in histogram form to the histogram widget, double form.

int MxGraphHistogramSetFlags Widget  whisto,
UINT32  flags
 

Set display flags.

Flags: GRAPH_HISTOGRAM_NOFILL don't fill histogram bars or polygon GRAPH_HISTOGRAM_GRIDLINES display grid lines GRAPH_HISTOGRAM_LABELS display labels GRAPH_HISTOGRAM_CUMULATIVE display histogram as cumulative graph GRAPH_HISTOGRAM_MINMAXONLY not implemented yet GRAPH_HISTOGRAM_CREATEMENU create standart pull-down menu GRAPH_HISTOGRAM_LOGARITHMIC logarithmic y - scale GRAPH_HISTOGRAM_LABELINBOX draw label boxes

Parameters:
whisto  Histogram widget
flags  Flags

int MxGraphHistogramSetFromRaster Widget  whisto,
const UNICODE Filename,
INT32  inode,
const REGION2D region,
int  ColorComp
 

Assign data to the histogram widget.

Parameters:
whisto  Histogram widget
Filename  RVC filename
inode  Raster inode
ColorComp  Color component for RGB/BGR rasters

int MxGraphHistogramSetStyle Widget  whisto,
COLOR fg,
COLOR bg,
COLOR fill,
COLOR labelcover,
DOUBLE  levelcount,
int  DrawStyle
 

Set appearance parameters of the histogram widget.

Draw styles: HISTOGRAM_IGNORE - ignore draw style reassignment HISTOGRAM_BAR - display as a set of 3D-bars HISTOGRAM_OUTLINE - display as histogram outline HISTOGRAM_STRIP - display as "fancy" 3D-strip

Parameters:
whisto  Histogram widget
fg  NULL or foreground color (Black by default)
bg  NULL or background color (White by default)
fill  NULL or fill color (Green by default)
labelcover  NULL or color for displaying labels (Black by default)
levelcount  Number of counts used as an interval for drawing of the horizontal grid lines and labeling (Pass negative value to ignore).
DrawStyle  Type of the histogram representation

int MxGraphHistogramSetTextStyle Widget  whisto,
const char *  Fontname,
float  size
 

Set label font and size.

Parameters:
whisto  Histogram widget
Fontname  Font name to use
size  Label size 8,10,12,14...

int MxGraphHistogramSetTicMarks Widget  whisto,
DOUBLE  datastart,
DOUBLE  dataend,
DOUBLE  ticstart,
DOUBLE  ticspacing
 

Set parameters for ranging histogram values and displaying horizontal tic-marks and labels.

NOTE: This function is important for assignment real world values to the horizontal scale. If programmer doesn't call this function, tic marks will represent just array numbers.

Parameters:
whisto  Histogram widget
datastart  Value that correspond to the first entry of the histogram data array
dataend  Value that corresponds to the last entry of the histogram array
ticstart  Data value for the first vertical tic-mark or grid-line
ticspacing  Spacing in data values between vertical tic-marks

int MxGraphHistogramSmooth Widget  whisto  ) 
 

Parameters:
whisto  Histogram widget

int MxGraphNDViewAddPoints Widget  wview,
INT32  numdim,
POINT_ND points,
INT32  numpts,
int  Normalize,
int  ToClass
 

Assign N-dimensional points to visualizer.

int MxGraphNDViewAddSinglePoint Widget  wview,
INT32  numdim,
POINT_ND point
 

Add one N-dimensional point to the NDview.

This function accepts ONLY NORMALIZED DATA in range between 0...1.

Parameters:
numdim  This is necessary for dimension control

int MxGraphNDViewClearPoints Widget  wview  ) 
 

Clear NDview.

Widget MxGraphNDViewCreate Widget  parent,
int  Width,
int  Height,
UINT32  flags,
Arg *  argext,
int  next
 

Create N-dimensional view widget.

int MxGraphNDViewEditColors Widget  wview,
int  Redraw
 

Edit color map of the view.

int MxGraphNDViewGetClassColor Widget  wview,
int  classnum,
COLOR color
 

Get color assigned to the class.

int MxGraphNDViewGetMaxNumClasses Widget  wview  ) 
 

Get maximum number of classes.

int MxGraphNDViewRotate Widget  wview  ) 
 

Rotate using "rolling ball" algorithm.

int MxGraphNDViewRotateRandom Widget  wview  ) 
 

Rotate using "rolling ball" algorithm.

int MxGraphNDViewSetPointMappingCallback Widget  wview,
int(*  MapFunc)(void *, INT32, COLOR *, int),
void *  userdata
 

Set the point mapping callback.

Parameters:
userdata  User supplied private data structure

int MxGraphNDViewSetPoints Widget  wview,
INT32  numdim,