CNiContour

3D Graph

Class CNiContour Base ClassesData ItemsConstructorsDestructorsFunctionsGo to hierarchy chart    Prev page: operator =Next page: LabelColor    
Class Declared in:
NiContour.h

'Overview' icon -- Shortcut to top of page. 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.

Hierarchy Chart Hierarchy Chart

'Base Classes' icon -- Shortcut to top of page. Base Classes

'Data Items' icon -- Shortcut to top of page. Data Items

Public data CNiColor LabelColor Specifies the color of the contour label.
Public data CNiFont LabelFont Specifies the contour label font.
Public data CString LabelFormat Specifies the format string for formatting the label on this contour.
Public data bool LabelVisible Specifies if the contour line has a label.
Public data double Level Specifies the position of the contour.
Public data CNiColor LineColor Specifies the color of the contour line.
Public data LineStyles LineStyle Specifies the line style of the contour line.
Public data double LineWidth Specifies the width of the contour line in points.

'Constructors' icon -- Shortcut to top of page. Constructors

Public constructor

CNiContour()

Default constructor.
Public constructor

CNiContour( CWContour_CI* pCustom, CNiInterface::ThreadAccess option )

Constructor that attaches to the specified CWContour_CI pointer.
Public constructor

CNiContour( const CNiContour& source )

Copy constructor.

'Destructors' icon -- Shortcut to top of page. Destructors

Public destructor

~CNiContour()

Destructor.

'Functions' icon -- Shortcut to top of page. Functions

Public function static const IID &

GetIid()

Returns the globally unique identifier (GUID) of the ActiveX interface to which this class connects.
Public function const CNiContour &

operator =( const CNiContour& source )

Assignment operator.

Shortcut to top of page. 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;