![]() |
CNiContour | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: NiContour.h |
Overview
CNiContour encapsulates the interface to a single contour line of a 3D contour plot. This object allows you to modify the appearance and behavior of contour lines on an individual basis.
Base Classes
Data Items
![]() |
CNiColor | LabelColor | Specifies the color of the contour label. |
![]() |
CNiFont | LabelFont | Specifies the contour label font. |
![]() |
CString | LabelFormat | Specifies the format string for formatting the label on this contour. |
![]() |
bool | LabelVisible | Specifies if the contour line has a label. |
![]() |
double | Level | Specifies the position of the contour. |
![]() |
CNiColor | LineColor | Specifies the color of the contour line. |
![]() |
LineStyles | LineStyle | Specifies the line style of the contour line. |
![]() |
double | LineWidth | Specifies the width of the contour line in points. |
Constructors
![]() |
Default constructor. | ||
![]() |
CNiContour( CWContour_CI* pCustom, CNiInterface::ThreadAccess option ) |
Constructor that attaches to the specified CWContour_CI pointer. | |
![]() |
CNiContour( const CNiContour& source ) |
Copy constructor. |
Destructors
Functions
![]() |
static const IID & | GetIid() |
Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects. |
![]() |
const CNiContour & | Assignment operator. |
Example
// Create a surface-contour plot.
CNiGraph3D graph; CNiReal64Matrix data(20,20); graph.Plot3DSimpleSurface(data); CNiPlot3D plot = graph.Plots.Item(1); plot.Style = CNiPlot3D::SurfaceContour;
// Change the label font on the first contour line in the plot to 12pt // Courier and the contour line style to dashed.
CNiContour contour = plot.Contours.Item(1); contour.LabelFont.Name = "Courier"; contour.LabelFont.Size = 12; contour.LineStyle = CNiContour::Dash;