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


In This Topic
    ViewerRotation Property
    In This Topic
    The rotation (or tilting) of the camera.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("The rotation (or tilting) of the camera.")>
    <System.ComponentModel.DefaultValueAttribute(0)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property ViewerRotation As System.Single
    'Usage
     
    
    Dim instance As NProjection
    Dim value As System.Single
     
    instance.ViewerRotation = value
     
    value = instance.ViewerRotation
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("The rotation (or tilting) of the camera.")]
    [System.ComponentModel.DefaultValue(0)]
    [System.Xml.Serialization.XmlAttribute()]
    public System.float ViewerRotation {get; set;}
    Remarks
    The ViewerRotation specifies the rotation around the axis defined by the chart center point (0, 0, 0) and the camera coordinates defined by the Elevation, Rotation and Distance(not exposed because it is computed dynamically) properties. You may need to modify the ViewerRotation when you want to display horizontal or top to bottom charts. However for such purposes it is recommended to use the PredefinedChartStyle property of the NChart object, because it also changes the chart axis label positioning and others.
    Example
    The following example modifies the ViewerRotation applied on the chart camera to display a left to right horizontal chart.
    Dim chartView As NView = (CType(NChartControl.Charts(0), NChart)).View 
    xchartView.Projection = ProjectionType.Perspective
    chartView.ViewerRotation = 270
    NView chartView = ((NChart)NChartControl.Charts[0]).View;
    chartView.Projection = ProjectionType.Perspective;
    chartView.ViewerRotation = 270;
    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