![]() |
CNiContours | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: NiContours.h |
Overview
CNiContours encapsulates the interface to the Contours property of a CNiPlot3D object. This object allows you to modify the appearance and behavior of all contour lines in a 3D contour plot.
Base Classes
Data Items
![]() |
double | Anchor | Specifies the value of the contour anchor. |
![]() |
bool | AnchorEnabled | Enables the contour anchor if true. |
![]() |
Bases | Basis | Specifies the basis of the plot contours. |
![]() |
short | Count | The number of objects in the collection. |
![]() |
double | Interval | Specifies the distance between each contour level. |
![]() |
CNiColor | LabelColor | Sets the label color for all contours in the collection. |
![]() |
CNiFont | LabelFont | Sets the label font for all contours in the collection. |
![]() |
CString | LabelFormat | Sets the label format string for all contours in the collection. |
![]() |
bool | LabelVisible | Sets the label visibility for all contours in the collection. |
![]() |
long | Levels | Specifies the number of contour levels for the plot. |
![]() |
CNiColor | LineColor | Sets the line color for all contours in the collection. |
![]() |
LineStyles | LineStyle | Sets the line style for all contours in the collection. |
![]() |
double | LineWidth | Sets the line width for all contours in the collection. |
Constructors
![]() |
Default constructor. | ||
![]() |
CNiContours( CWContours_CI* pCustom, CNiInterface::ThreadAccess option ) |
Constructor that attaches to the specified CWContours_CI pointer. | |
![]() |
CNiContours( const CNiContours& source ) |
Copy constructor. |
Destructors
Functions
![]() |
void | Add( double Level ) |
Adds a new contour level to the collection of contours. |
![]() |
static const IID & | GetIid() |
Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects. |
![]() |
void | GetLevelList( CNiReal64Vector& list ) |
Gets the contour levels of the plot. |
![]() |
CNiContour | Item( long itemIndex ) |
Returns the specified contour object from the current collection of contours. |
![]() |
const CNiContours & | Assignment operator. | |
![]() |
void | Remove( long itemIndex ) |
Removes the specified contour from the current collection of contours. |
![]() |
void | Removes all contours from the plot. | |
![]() |
void | SetLevelList( const CNiReal64Vector& list ) |
Sets the contour levels for the plot. |
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 all contour lines in the plot to 12pt // Courier and the contour line style to dashed.
CNiContours contours = plot.Contours; contours.LabelFont.Name = "Courier"; contours.LabelFont.Size = 12; contours.LineStyle = CNiContour::Dash;