Click or drag to resize
Ab4d.SharpEngine logo

SharpEngineSceneView Methods

The SharpEngineSceneView type exposes the following members.

Methods
 NameDescription
Protected methodArrangeOverrideArranges and sizes the child Image control.
(Overrides FrameworkElementArrangeOverride(Size))
Public methodDispose Disposes all resources that were created by this SharpEngineSceneView.
Protected methodDispose(Boolean) 
Protected methodFinalize Destructor
(Overrides ObjectFinalize)
Protected methodGetVisualChildReturns the child Image control.
(Overrides FrameworkElementGetVisualChild(Int32))
Public methodInitialize Initialize method initializes the engine by using the CreateOptions from this SharpEngineSceneView.
Public methodInitialize(ActionEngineCreateOptions) Initialize method initializes the engine by using EngineCreateOptions that are defined by the provided configureAction.
Public methodInitialize(EngineCreateOptions) Initialize method initializes the engine by using the specified EngineCreateOptions.
Public methodInitialize(VulkanDevice) Initialize method initializes the engine by using the specified VulkanDevice object.
Protected methodIsDesignTime Returns if the control is running in design time.
Public methodStatic memberIsPresentationTypePossible Returns true when the specified presentationType may be supported by this SharpEngineSceneView control. To check if the presentationType is possible on the current or specific GpuDevice call the IsPresentationTypeSupported(PresentationTypes) or IsPresentationTypeSupported(PresentationTypes, String) or IsPresentationTypeSupported(PresentationTypes, VulkanDevice, String) methods.
Public methodIsPresentationTypeSupported(PresentationTypes) Returns true when the specified presentationType is supported on the current GpuDevice. This method must not be called before the GpuDevice is created (before SharpEngineSceneView is initialized).
Public methodIsPresentationTypeSupported(PresentationTypes, String) Returns true when the specified presentationType is supported on the current GpuDevice. When presentation type is not supported, a string with additional information is set to the additionalInfo parameter. This method must not be called before the GpuDevice is created (before SharpEngineSceneView is initialized).
Public methodIsPresentationTypeSupported(PresentationTypes, VulkanDevice, String) Returns true when the specified presentationType is supported on the specified GpuDevice. When presentation type is not supported, a string with additional information is set to the additionalInfo parameter.
Protected methodMeasureOverride Updates the UIElement.DesiredSize of the child Image control.
(Overrides FrameworkElementMeasureOverride(Size))
Protected methodOnDisposed OnDisposed
Protected methodOnDisposing OnDisposing
Protected methodOnGpuDeviceCreated OnGpuDeviceCreated
Protected methodOnGpuDeviceCreationFailed OnGpuDeviceCreationFailed
Protected methodOnPresentationTypeChanged OnPresentationTypeChanged
Protected methodOnRenderSizeChanged OnRenderSizeChanged
(Overrides FrameworkElementOnRenderSizeChanged(SizeChangedInfo))
Protected methodOnSceneRendered OnSceneRendered
Protected methodOnSceneUpdating OnSceneUpdating
Protected methodOnSceneViewInitialized OnSceneViewInitialized
Protected methodOnViewSizeChanged OnViewSizeChanged
Public methodRenderScene RenderScene renders the scene. The method first calls the SceneUpdating event. If forceRender is false then the scene is rendered only if there are any changes in the Scene or SceneView. If forceUpdate is true then the RenderingLayers are always regenerated (otherwise RenderingLayers are regenerated only when this is required because the changes require that).
Public methodRenderToBitmap(Boolean) RenderToBitmap method renders the current scene to a new WPF's WriteableBitmap. To reuse the WriteableBitmap, call the method that takes the WriteableBitmap by ref. See also the RenderToXXXX methods in the SceneView object.
Public methodRenderToBitmap(WriteableBitmap, Boolean) RenderToBitmap method renders the current scene to the specified WPF's WriteableBitmap. If the WriteableBitmap is null of its size is not the same as the size of the SceneView, then the WriteableBitmap is resized. See also the RenderToXXXX methods in the SceneView object.
Top
See Also