![]() |
CNiPlot3D | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: NiPlot3d.h |
Overview
CNiPlot3D encapsulates the interface to a single plot of 3D graph control, which allows you to modify its appearance and behavior.
You obtain individual plots using the Plots property on a CNiGraph3D object.
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
![]() |
bool | AutoScale | Specifies if the extents of the data in the plot affect the extents of an autoscaling axis. |
![]() |
bool | CacheData | Improves drawing performance by caching intermediate calculations when set to true. |
![]() |
bool | ColorMapAutoScale | Specifies if the color map rescales its values when the plot data changes. |
![]() |
CNiColorVector | ColorMapColors | ColorMapColors and ColorMapValues specify a custom color map. |
![]() |
bool | ColorMapInterpolate | Specifies if the color map interpolates between colors. |
![]() |
bool | ColorMapLog | Specifies if the color map interpolates logarithmically. |
![]() |
ColorMapStyles | ColorMapStyle | Specifies the color map used by the plot. |
![]() |
CNiReal64Vector | ColorMapValues | ColorMapColors and ColorMapValues specify a custom color map. |
![]() |
CNiContours | Contours | Gets a collection of contour objects associated with the plot. |
![]() |
CoordinateSystems | CoordinateSystem | Specifies the coordinate system of the plot. |
![]() |
bool | Enabled | Specifies if the plot generates mouse events when CNiGraph3D.TrackMode = TrackAllEvents and the plot is visible. |
![]() |
CNiColor | FillColor | Specifies the color to use for drawing the plot surface. |
![]() |
FillStyles | FillStyle | Specifies the fill style of the plot. |
![]() |
CNiColor | LineColor | Specifies the color of lines for connecting points in the plot. |
![]() |
LineStyles | LineStyle | Specifies the style of lines for connecting points on a plot. |
![]() |
double | LineWidth | Specifies the width of the plotting line. |
![]() |
bool | MultiPlot | Determines if the CNiGraph3D plot functions can use this plot. |
![]() |
CString | Name | Specifies the name of the plot. |
![]() |
CNiColor | PointColor | Specifies the color for points on a plot. |
![]() |
long | PointFrequency | Specifies the frequency of points in the plot. |
![]() |
double | PointSize | Specifies the size of the plot points in points. |
![]() |
PointStyles | PointStyle | Specifies the style of the points in the plot. |
![]() |
bool | ProjectionXY | ProjectionXY draws the X-Y plane projection of the plot when true. |
![]() |
bool | ProjectionXZ | ProjectionXZ draws the X-Z plane projection of the plot when true. |
![]() |
bool | ProjectionYZ | ProjectionYZ draws the Y-Z plane projection of the plot when true. |
![]() |
bool | ShowProjectionsOnly | Defines the show-projections-only mode. |
![]() |
PlotStyles | Style | Specifies the style of the plot. |
![]() |
long | Transparency | Indicates the percentage of transparency. |
![]() |
bool | Visible | Specifies if the plot is visible or hidden. |
![]() |
CNiAxis3D | XAxis | Gets the x axis for the plot. |
![]() |
CNiAxis3D | YAxis | Gets the y axis for the plot. |
![]() |
CNiAxis3D | ZAxis | Gets the z axis for the plot. |
Constructors
![]() |
Default constructor. | ||
![]() |
CNiPlot3D( CWPlot3D_CI* pCustom, CNiInterface::ThreadAccess option ) |
Constructor that attaches to the specified CWPlot3D_CI pointer. | |
![]() |
CNiPlot3D( const CNiPlot3D& source ) |
Copy constructor. |
Destructors
Functions
![]() |
void | Clears the data currently associated with the plot. | |
![]() |
static const IID & | GetIid() |
Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects. |
![]() |
const CNiPlot3D & | Assignment operator. | |
![]() |
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. |
Example
// Add a surface plot to the graph.
CNiGraph3D graph; CNiReal64Matrix surface(20, 20); graph.SimpleSurfacePlot(surface);
// Get the plot from the graph and change its color map style.
CNiPlot3D plot = graph.Plots.Item(1); plot.ColorMapStyle = CNiPlot3D::ColorSpectrum;