![]() |
CNiTicks3D | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: NiTicks3d.h |
Overview
CNiTicks3D encapsulates the interface to the Ticks property of a CNiAxis3D object, which allows you to modify the appearance and behavior of the tick marks on a 3D axis.
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 | AutoDivisions | Specifies if divisions are automatically calculated. |
![]() |
bool | Inside | Specifies if ticks are draw on the inside of the axis plane. |
![]() |
double | MajorDivisions | Specifies the number of major divisions. |
![]() |
bool | MajorGrid | Specifies if major grid lines are drawn. |
![]() |
CNiColor | MajorGridColor | Specifies the color of major grid lines. |
![]() |
CNiColor | MajorTickColor | Specifies the color of major grid ticks. |
![]() |
bool | MajorTicks | Specifies if major grid ticks are drawn. |
![]() |
double | MajorUnitsBase | Specifies the base number for calculating ticks. |
![]() |
double | MajorUnitsInterval | Specifies the number of units between major divisions. |
![]() |
double | MinorDivisions | Specifies the number of minor divisions for each major division. |
![]() |
bool | MinorGrid | Specifies if minor grid lines are drawn. |
![]() |
CNiColor | MinorGridColor | Specifies the color of minor grid lines. |
![]() |
CNiColor | MinorTickColor | Specifies the color of minor grid ticks. |
![]() |
bool | MinorTicks | Specifies if minor grid ticks are drawn. |
![]() |
double | MinorUnitsInterval | Specifies the number of units between minor divisions. |
![]() |
bool | Normal | Specifies if tick marks are drawn at the normal axis position. |
![]() |
bool | Opposite | Specifies if tick marks are drawn at the opposite axis position. |
![]() |
bool | Outside | Specifies if ticks are drawn on the outside of the axis plane. |
Constructors
![]() |
Default constructor. | ||
![]() |
CNiTicks3D( CWTicks3D_CI* pCustom, CNiInterface::ThreadAccess option ) |
Constructor that attaches to the specified CWTicks3D_CI pointer. | |
![]() |
CNiTicks3D( const CNiTicks3D& 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 CNiTicks3D & | Assignment operator. |
Example
// Changes the number of major divisions on the x axis of a 3D graph // control.
CNiGraph3D graph; CNiTicks ticks = graph.Axes.Item("XAxis").Ticks; ticks.MajorDivisions = 20;