![]() |
CNiGraph3D | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: NiGraph3d.h |
Overview
CNiGraph3D encapsulates the interface to the Measurement Studio ActiveX 3D graph control, which allows you to plot three-dimensional data.
CNiGraph3D is capable of responding to events that are generated by the control. For a list of the events that can be generated by this control and details on how to respond to the events in your program, refer to the Graph3D Events page.
Features
- Multiple plot styles: point-line, line-point, hidden-line, contour, surface, surface-line, surface-contour, and surface-normal.
- Multiple plots with individual properties such as name, line and point style, width, and base value.
- Configurable axes, including customizable ticks, labels, value pairs, and captions.
- Legends
- Cartesian, cylindrical, and spherical coordinate systems.
- Color maps.
- Transparency
- Plane projections.
- Orthographic and perspective viewing.
- Lighting
- Built-in format styles for labels including scientific, symbolic engineering, scaling, time, and date.
- Rotation, panning and zooming at runtime. Panning is useful when the graph displays only a subset of the data that has been plotted. You can scroll through all data plotted on the graph, essentially shifting the graph's display to different portions of the plot.
Note: To specify a date/time value, you must convert your date or time value to a double. A date is implemented as a floating-point value with the integer part of the number measuring days from midnight, 30 December 1899, and the fractional part representing the time of day. The absolute value of the fractional part of the number represents the time as a fraction of a day. Thus, 1 second equals 1 / 24 hours / 60 minutes, which is 1/86400 or approximately 1.157407e-5. So, midnight, 31 December 1899, is represented by 1.0. Similarly, 6 AM, 1 January 1900, is represented by 2.25, and midnight, 29 December 1899, is -1.0. However, 6 AM, 29 December 1899, is -1.25.
Base Classes
Data Items
![]() |
CNiColor | AmbientLightColor | Specifies the ambient light color for the graph when lighting is enabled. |
![]() |
CNiAxes3D | Axes | Gets a collection of axis objects associated with the control. |
![]() |
CNiColor | BackColor | Specifies the color for the background of the caption. |
![]() |
CString | Caption | Specifies the caption to be drawn on the graph. |
![]() |
CNiColor | CaptionColor | Specifies the color of the caption. |
![]() |
bool | ClipData | Specifies if the function should clip the displayed data. |
![]() |
CNiCursors3D | Cursors | Gets a collection of 3D cursor objects associated with the control. |
![]() |
bool | Dither | Specifies the dither mode of the graph. |
![]() |
bool | Enabled | Specifies if the graph generates any events. |
![]() |
bool | FastDraw | Specifies how the system draws the graph during interactive operations such as rotating, zooming, and panning. |
![]() |
CNiFont | Font | Specifies the font for the caption. |
![]() |
CNiColor | GraphFrameColor | Specifies the color for the graph frame. |
![]() |
bool | GraphFrameVisible | Specifies if the graph frame is visible. |
![]() |
CNiColor | GridFrameColor | Specifies the color of the grid frame. |
![]() |
bool | GridSmoothing | Specifies the smoothing mode for grid lines. |
![]() |
bool | GridXY | Draws the X-Y grid plane when true. |
![]() |
bool | GridXZ | Draws the X-Z grid plane when true. |
![]() |
bool | GridYZ | Draws the Y-Z grid plane when true. |
![]() |
bool | 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. |
![]() |
KeyboardModes | KeyboardMode | Specifies how the control handles keyboard input from the user. |
![]() |
bool | Lighting | Enables graph lighting when true. |
![]() |
CNiLights | Lights | Gets a collection of light objects associated with the control. |
![]() |
CNiColor | PlotAreaColor | Specifies the background color of the plot area. |
![]() |
CNiPlots3D | Plots | Gets a collection of 3D plot objects associated with the control. |
![]() |
CNiPlot3D | PlotTemplate | Returns the 3D plot object to use as a template for new plots. |
![]() |
ProjectionStyles | ProjectionStyle | Specifies the projection style of the graph. |
![]() |
long | ReadyState | Returns the ready state. |
![]() |
TrackModes | TrackMode | Determines the type of events generated and other automatic processing (for example, how the mouse interacts with the graph during run time). |
![]() |
bool | Use3DHardwareAcceleration | Determines if the 3D graph control renders directly to the display adapter. |
![]() |
bool | ViewAutoDistance | Specifies how the viewing distance is set. |
![]() |
double | ViewDistance | Specifies the distance of the viewing position from the center of the view. |
![]() |
double | ViewLatitude | Specifies the latitude of the viewing position. |
![]() |
double | ViewLongitude | Specifies the longitude of the viewing position. |
![]() |
ViewModes | ViewMode | Specifies the viewing position of the graph. |
![]() |
double | ViewXCenter | Specify the X coordinates of the center of the view. |
![]() |
double | ViewYCenter | Specify the Y coordinates of the center of the view. |
![]() |
double | ViewZCenter | Specify the Z coordinates of the center of the view. |
![]() |
bool | Windowless | Specifies if the control has a window. |
Constructors
![]() |
CNiGraph3D( CNiInterface::ThreadAccess option = CNiInterface::MultipleThreadsWithCaching ) |
Destructors
Functions
![]() |
void | AboutBox() |
Displays the About Box for the control. |
![]() |
void | Clears data in all plots. | |
![]() |
CNiPicture | Returns an image of the entire control. | |
![]() |
virtual BOOL | Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL ) |
Creates the ActiveX control that is represented in the MFC program by this object. |
![]() |
BOOL | Create( LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL ) |
Creates the ActiveX control that is represented in the MFC program by this object. |
![]() |
BOOL | CreateControl( LPCTSTR lpszClass, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL ) |
Creates the ActiveX control that is represented in the MFC program by this object. |
![]() |
BOOL | CreateControl( REFCLSID clsid, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL ) |
Creates the ActiveX control that is represented in the MFC program by this object. |
![]() |
void | ExportStyle( LPCTSTR FileName ) |
Exports the style of the control to a file. |
![]() |
static const CLSID & | GetClsid() |
Returns the globally unique identifier (GUID) of the ActiveX control to which this class connects. |
![]() |
static const IID & | GetIid() |
Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects. |
![]() |
void | ImportStyle( LPCTSTR FileName ) |
Imports a previously exported style. |
![]() |
void | Plot3DCurve( const CNiVector& x, const CNiVector& y, const CNiVector& z, const CNiVector& w ) |
Plots a set of vectors as a parametric curve plot. |
![]() |
void | Plot3DCurve( const CNiVector& x, const CNiVector& y, const CNiVector& z ) |
Plots a set of vectors as a parametric curve plot. |
![]() |
void | Plot3DMesh( const CNiVector& x, const CNiVector& y, const CNiVector& z, const CNiVector& w ) |
Plots three (or four) 1D arrays of data as a triangulated surface. |
![]() |
void | Plot3DMesh( const CNiVector& x, const CNiVector& y, const CNiVector& z ) |
Plots three (or four) 1D arrays of data as a triangulated surface. |
![]() |
void | Plot3DParametricSurface( const CNiMatrix& X, const CNiMatrix& Y, const CNiMatrix& Z, const CNiMatrix& W ) |
Plots a set of matrices as a parametric surface plot. |
![]() |
void | Plot3DParametricSurface( const CNiMatrix& X, const CNiMatrix& Y, const CNiMatrix& Z ) |
Plots a set of matrices as a parametric surface plot. |
![]() |
void | Plot3DSimpleSurface( const CNiMatrix& Z, const CNiMatrix& W ) |
Plots a matrix of data as a simple surface plot. |
![]() |
void | Plot3DSimpleSurface( const CNiMatrix& Z ) |
Plots a matrix of data as a simple surface plot. |
![]() |
void | Plot3DSurface( const CNiVector& x, const CNiVector& y, const CNiMatrix& Z, const CNiMatrix& W ) |
Plots a matrix of data as a surface plot. |
![]() |
void | Plot3DSurface( const CNiVector& x, const CNiVector& y, const CNiMatrix& Z ) |
Plots a matrix of data as a surface plot. |
![]() |
void | Restores the default viewing parameters. | |
![]() |
void | Validates the current state of the control. |