CWGraph3D
The CWGraph3D object has properties that affect the overall appearance of the control. It also has collections of axes, plots, and lights. To set properties for a specific part of the control, set the properties on the object corresponding to that part.
Properties
AmbientLightColor | Specifies the ambient light color for the graph. |
Axes | Specifies a collection of CWAxis3D objects. |
BackColor | Specifies the color for the background of the caption. |
Caption | Specifies the caption for the 3D graph. |
CaptionColor | Specifies the color of the caption text. |
ClipData | Indicates if the data is clipped to the axes ranges. |
Cursors | Specifies a collection of CWCursor3D objects. |
Dither | Specifies the dither mode of the graph. |
Enabled | Specifies if the graph generates any events. |
FastDraw | Specifies how the graph is drawn during interactive operations such as rotating, zooming, and panning. |
Font | Specifies the font for the caption. |
GraphFrameColor | Specifies the color for the graph frame. |
GraphFrameVisible | Specifies if the graph frame is visible. |
GridFrameColor | Specifies the color of the graph's grid frame. |
GridSmoothing | Specifies the smoothing mode for grid lines. |
GridXY, GridXZ, GridYZ | GridXY draws the XY grid plane when set to True. GridXZ draws the XZ grid plane when set to True. GridYZ draws the YZ grid plane when set to True. |
ImmediateUpdates | Specifies if the graph draws new data as soon as it is available, or if the form refreshes the graph when it draws other controls. |
KeyboardMode | Specifies how the control handles keyboard input from the user. |
Lighting | Enables graph lighting when set to True. |
Lights | Specifies a collection of CWLights. |
PlotAreaColor | Specifies the background color of the plot area. |
Plots | Specifies a collection of CWPlot3D objects. |
PlotTemplate | Returns the CWPlot3D object to use as a template for new plots. |
ProjectionStyle | Specifies the projection style of the graph. |
ReadyState | Returns the ready state. |
TrackMode | Determines the type of events generated and other automatic processing, such as how the mouse interacts with the graph during run time. |
Use3DHardwareAcceleration | Determines if the 3D Graph control renders directly to the display adapter. |
ViewAutoDistance | Specifies how the viewing distance is set. |
ViewDistance | Specifies the distance of the viewing position from the center of the view as defined by ViewXCenter, ViewYCenter, and ViewZCenter. |
ViewLatitude | Specifies the latitude in degees of the viewing position. |
ViewLongitude | Specifies the longitude in degrees of the viewing position. |
ViewMode | Specifies the viewing position of the graph. |
ViewXCenter, ViewYCenter, ViewZCenter | Specify the X, Y, and Z coordinates of the center of the view. |
Windowless | Specifies if the control has a window. |
Methods
AboutBox | Displays the About Box for the control. |
ClearData | Clears data in all plots. |
ControlImage | Returns an image of the entire control. |
ExportStyle | Exports the style of the control to a .cwx file. |
ImportStyle | Imports a previously exported style to the control. |
Plot3DCurve | Plots three (or four) 1D arrays of data as a parametric curve. |
Plot3DMesh | Plots three (or four) 1D arrays of data as a triangulated surface. |
Plot3DParametricSurface | Plots three (or four) 2D arrays of data as a parametric surface. |
Plot3DSimpleSurface | Plots one (or two) 2D array(s) of data as a surface. |
Plot3DSurface | Plots two 1D arrays and one (or two) 2D array(s) of data as a surface. |
SetDefaultView | Restores the default viewing parameters after panning, zooming, or rotating the graph. |
Events
Click | Generates a Click event when you click the mouse on the control. |
CursorChange | Generates the CursorChange event when you reposition a cursor with the mouse. |
DblClick | Generates a DblClick event when you double-click the mouse on the control. |
KeyDown, KeyUp | Generates the KeyUp event when you release a key while the control has the input focus.
Generates the KeyDown event when you press a key while the control has the input focus. |
KeyPress | Generated when the control has focus and you press a key. |
MouseDown, MouseMove, MouseUp | Generates the MouseDown event when you click the mouse on the control. Generates the MouseMove event when you move the mouse over the control. Generates the MouseUp event when you release the mouse on the control. |
Pan | Generates the Pan event when you pan the graph up and down or left and right. |
PlotAreaMouseDown, PlotAreaMouseMove, PlotAreaMouseUp | Generates PlotAreaMouseDown when you click the mouse on the plot area. Generates PlotAreaMouseMove when you move the mouse over the plot area. Generates PlotAreaMouseUp when you release the mouse over the plot area. |
PlotMouseDown, PlotMouseMove, PlotMouseUp | Generates PlotMouseDown when you click the mouse on a plot. Generates PlotMouseMove when you move the mouse over a plot. Generates PlotMouseUp when you release the mouse over a plot. |
ReadyStateChange | Generates the event when the ready state changes. |
Rotate | Generates the Rotate event when you rotate the graph. |
Zoom | Generates the Zoom event when you zoom in or out on the plot. |