/Source Code/ExperimentalProjection/ProjectorFactory.vb
Visual Basic | 28 lines | 10 code | 5 blank | 13 comment | 0 complexity | 13d48476b6b8d827a28e09893ad98bf3 MD5 | raw file
- ''' <summary>
- ''' Contains methods for instantiating projectors.
- ''' </summary>
- Public NotInheritable Class ProjectorFactory
-
- Private Sub New()
-
- End Sub
-
- ''' <summary>
- ''' Creates a new instance of a GDI projector.
- ''' </summary>
- ''' <param name="surfaceControl">The surface control to use in rendering the projection.</param>
- ''' <returns>A new instance of a GDI projector.</returns>
- Public Shared Function CreateGdiProjector(ByVal surfaceControl As Control) As GdiProjector
- Return New GdiProjector(surfaceControl)
- End Function
-
- ''' <summary>
- ''' Creates a new instance of a WPF projector.
- ''' </summary>
- ''' <param name="surfaceControl">The surface control to use in rendering the projection.</param>
- ''' <returns>A new instance of a WPF projector.</returns>
- Public Shared Function CreateWpfProjector(ByVal surfaceControl As System.Windows.Controls.Grid) As WpfProjector
- Return New WpfProjector(surfaceControl)
- End Function
-
- End Class