|
DXView Properties |
The DXView type exposes the following members.
Properties | Name | Description |
---|
| BackgroundColor |
Gets or sets a background color for DXView (this color is used to clear the DirectX back buffer). Default color is Transparent.
|
| ChildDXViews |
When this DXView is a master DXView (some other DXView objects were created by passing this DXView in a constructor), then the method returns a list of child DXView objects.
Otherwise null is returned.
|
| D3DHost |
Gets D3DHost control (set only when DirectXOverlay PresentationType is used)
|
| Disposables |
Disposables can be used to simply add IDisposable objects to a list that is automatically disposed when this object is disposed.
|
| DpiScaleX |
Gets or sets a double that represents a DPI scale factor in X direction: 1 means 96 DPI, 1.5 means 144 DPI, etc.
(double.NaN is default value and means system default DPI setting - on loaded the double.NaN value is replaced by the system default DPI value).
|
| DpiScaleY |
Gets or sets a double that represents a DPI scale factor in Y direction: 1 means 96 DPI, 1.5 means 144 DPI, etc.
(double.NaN is default value and means system default DPI setting - on loaded the double.NaN value is replaced by the system default DPI value).
|
| DXFinalPixelSize |
Gets size of shown rendering area in pixels (DXRenderSize is multiplied by DpiScale). In case of super-sampling this value is smaller than DXRenderPixelSize.
|
| DXImage |
Gets used DXImage control (set only when DirectXImage PresentationType is used)
|
| DXRenderPixelSize |
Gets size in pixels of back buffer that is used to render the 3D scene (DXRenderSize is multiplied by DpiScale and with SupersamplingFactor).
To get size of shown rendering area in pixels (this size multiplied by dpi scale) see DXFinalPixelSize.
|
| DXRenderSize |
Gets size of shown rendering area in WPF units.
To get size of shown rendering area in pixels (this size multiplied by dpi scale) see DXFinalPixelSize.
To get size of back buffer that is used by rendering (this size multiplied by dpi scale and super-sampling factor, see the DXRenderPixelSize |
| DXScene |
Gets used DXScene that contains the WPF scene converted into DXSceneNode objects
|
| GraphicsProfiles |
Gets or sets an array of GraphicsProfile objects that specify graphics settings that are supported by this DXView.
|
| Id |
Gets a unique id of this component
|
| IsAutomaticallyUpdatingDXScene |
Gets or sets a Boolean that specifies if DXView is calling DXScene's Update (checking for changed in all SceneNodes) on every WPF's rendering event.
When IsAutomaticallyUpdatingDXScene is set to false, this can improve performance but you need to manually call Update method after each change of the objects.
Default value is true.
|
| IsDisposed |
Gets a Boolean that specifies if this resource has been disposed.
|
| IsSceneInitialized |
Gets a Boolean that specifies if the DXView has been initialized by InitializeScene method where DXScene was initialized with the UsedGraphicsProfile (also creates DXScene, DXDevice and other related objects).
|
| IsTransparencySortingEnabled |
Gets or sets a Boolean that specifies if sorting transparent objects by their distance to the camera is enabled.
This property sets the DXScene.IsTransparencySortingEnabled property.
Default value is false.
See remarks for more info.
|
| IsWaitingInBackgroundUntilRendered |
Gets or sets a Boolean value that is used only when PresentationType is set to DirectXImage.
In DirectXImage presentation type the DXEngine needs to wait until graphics card finish rendering the scene.
Then the engine can inform (invalidate) the WPF's D3DImage that the shared texture is prepared.
When IsWaitingInBackgroundUntilRendered property is true (by default) then the CompleteRenderingStep is not waiting on the main thread.
Instead the waiting is done on the background thread and when it is completed then the invalidation is done on the main thread.
When IsWaitingInBackgroundUntilRendered is false, then the waiting is done on the main thread.
|
| MasterDXView |
When MasterDXView is set, then this DXView is a child DXView and renders the 3D scene defined in the masterDXView.DXScene.
|
| PresentationType |
Gets or sets an enum that specifies how the 3D scene is presented to the WPF rendering engine. Default value is DirectXImage.
|
| UsedGraphicsProfile |
Gets a GraphicsProfile that is used by DXView.
|
TopSee Also