![]() |
CNiCursor3D | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: NiCursor3D.h |
Overview
CNiCursor3D encapsulates the interface to a single cursor on a graph control, which allows you to modify its appearance and behavior. You use cursors to enable your users to identify specific points on your 3D graph plots.
You get individual cursors using the Cursors property on a CNiGraph3D object.
Base Classes
Data Items
![]() |
long | Column | Specifies the row index of the point associated with the cursor on the plot. |
![]() |
bool | Enabled | Specifies if the cursor generates mouse events or if you can drag the cursor in cursor tracking mode. |
![]() |
CNiFont | Font | Specifies the cursor label font. |
![]() |
CNiColor | LineColor | Specifies the color of the cursor point. |
![]() |
LineStyles | LineStyle | Specifies the style of the cursor lines. |
![]() |
double | LineWidth | Specifies the width of the cursor line. |
![]() |
CString | Name | Specifies the name of the cursor. |
![]() |
bool | NameVisible | Specifies if the cursor name is displayed next to the cursor. |
![]() |
CNiColor | PlaneColor | Specifies the color of the cursor point. |
![]() |
CNiPlot3D | Plot | Specifies the plot associated with the cursor. |
![]() |
CNiColor | PointColor | Specifies the color of the cursor point. |
![]() |
double | PointSize | Specifies the size of the cursor point in points. |
![]() |
PointStyles | PointStyle | Specifies the style of the cursor point. |
![]() |
bool | PositionVisible | Specifies if the cursor position is displayed next to the cursor. |
![]() |
long | Row | Specifies the row index of the point associated with the cursor on the plot. |
![]() |
SnapModes | SnapMode | Specifies the snap mode of the cursor. |
![]() |
CNiColor | TextBackColor | Specifies the color of the cursor point. |
![]() |
long | TextBackgroundTransparency | Specifies the transparency of the background drawn behind the cursor name and position text. |
![]() |
CNiColor | TextColor | Specifies the color of the cursor point. |
![]() |
long | Transparency | Indicates the percentage of transparency of the cursor planes. |
![]() |
bool | Visible | Specifies if the cursor is visible or hidden. |
![]() |
double | XPosition | Current x axis position of the cursor. |
![]() |
bool | XYPlaneVisible | Specifies if a plane is displayed at the cursor Z value. |
![]() |
bool | XZPlaneVisible | Specifies if a plane is displayed at the cursor Y value. |
![]() |
double | YPosition | Current y axis position of the cursor. |
![]() |
bool | YZPlaneVisible | Specifies if a plane is displayed at the cursor X value. |
![]() |
double | ZPosition | Current z axis position of the cursor. |
Constructors
![]() |
Default constructor. | ||
![]() |
CNiCursor3D( CWCursor3D_CI* pCustom, CNiInterface::ThreadAccess option ) |
Constructor that attaches to the specified CWCursor3D_CI pointer. | |
![]() |
CNiCursor3D( const CNiCursor3D& 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 CNiCursor3D & | Assignment operator. | |
![]() |
void | Sets the all the colors of the cursor at the same time. | |
![]() |
void | SetPosition( double xPosition, double yPosition, double zPosition ) |
Sets the x, y, and z axis positions of the cursor at the same time. |
Example
// Change the snap mode of the first cursor on the graph.
CNiGraph3D graph; CNiCursor3D cursor = graph.Cursors.Item(1); cursor.SnapMode = CNiCursor3D::SnapNearestPlot;