Nevron .NET Vision
Nevron.GraphicsCore Namespace / NProjection Class / Type Property
Example


In This Topic
    Type Property (NProjection)
    In This Topic
    Controls the projection type of the camera. Can be ProjectionType.Orthogonal or ProjectionType.Perspective.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("Controls the projection type of the camera. Can be ProjectionType.Orthogonal or ProjectionType.Perspective.")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property Type As ProjectionType
    'Usage
     
    
    Dim instance As NProjection
    Dim value As ProjectionType
     
    instance.Type = value
     
    value = instance.Type
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("Controls the projection type of the camera. Can be ProjectionType.Orthogonal or ProjectionType.Perspective.")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    [System.Xml.Serialization.XmlAttribute()]
    public ProjectionType Type {get; set;}
    Remarks
    Perspective projection is more suitable for 3D charts, because it gives you a perception of depth. In this mode you can also control the PerspectiveAngle parameter. If you want to display 2D charts you must switch to orthogonal projection which is better for analytical charts like stock for example. In Orthogonal projection you can modify the XDepth and YDepth parameters that allow you to achieve two and a half projection, which is also widely used.
    Example
    The following example modifies the projection applied on the chart camera:
    Dim chartView As NView = (CType(NChartControl.Charts(0), NChart)).View 
    chartView.Projection = ProjectionType.Orthogonal
    chartView.XDepth = 0.4f
    chartView.YDepth = 0.4f
    NView chartView = ((NChart)NChartControl.Charts[0]).View;
    chartView.Projection = ProjectionType.Orthogonal;
    chartView.XDepth = 0.4f;
    chartView.YDepth = 0.4f;
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also