Nevron .NET Vision
Nevron.GraphicsCore Namespace / NProjection Class / SetPredefinedProjection Method
Example


In This Topic
    SetPredefinedProjection Method (NProjection)
    In This Topic
    Sets a predefined projection to the camera.
    Syntax
    'Declaration
     
    
    Public Sub SetPredefinedProjection( _
       ByVal predefinedProjection As PredefinedProjection _
    ) 
    'Usage
     
    
    Dim instance As NProjection
    Dim predefinedProjection As PredefinedProjection
     
    instance.SetPredefinedProjection(predefinedProjection)
    public void SetPredefinedProjection( 
       PredefinedProjection predefinedProjection
    )

    Parameters

    predefinedProjection
    Remarks
    Sometimes modifying the properties of the NView object can be a tedious job, especially when you have to switch from one projection type to another. This is why Nevron has created a set of 14 predefined projections which you can use in order to speed up your development. When you load a predefined projection the control will modify all the properties relevant to the projection type (Perspective or Orthogonal) so you do not need to worry about the previous values of the these properties.
    Example
    The following C# example changes the projection using the SetPredefinedProjection method:
    Dim chartView As NView = (CType(NChartControl.Charts(0), NChart)).View 
    chartView.SetPredefinedProjection(PredefinedProjection.OrthogonalHorizontalLeft)
    NView chartView = ((NChart)NChartControl.Charts[0]).View;
    chartView.SetPredefinedProjection(PredefinedProjection.OrthogonalHorizontalLeft);
    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