September 2018
Intermediate to advanced
328 pages
10h 46m
English
When the main form initially loads, this is when our main initialization process begins. Let's walk through this method and talk about what exactly happens. In this method we are concerned with three-dimensional chart initialization.
First, we establish some general parameters for the chart:
// setup chart general parametersNChart m_Chart = nChartControl2.Charts[0];m_Chart.Enable3D = true;m_Chart.Width = 60;m_Chart.Height = 25;m_Chart.Depth = 45;m_Chart.Projection.Type = ProjectionType.Perspective;m_Chart.Projection.Elevation = 28;m_Chart.Projection.Rotation = -17;m_Chart.LightModel.SetPredefinedLightModel(PredefinedLightModel.GlitterLeft);
Next, we handle showing our interlaced strip on the back-left wall:
// ...
Read now
Unlock full access