Class Panel
Definition
- Assembly:
- Tizen.NUI.Scene3D.dll
Panel is a control to show 2D UI on 3D Scene. 2D UI contents set on this Panel are rendered on a screen panel that is placed on 3D scene. Each Panel has a single plane with defined resolution. The plane is always placed at center to fit within the boundaries of the panel while maintaining the aspect ratio of the resolution.
public class Panel : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
-
System.IDisposable
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
Examples
View contentRoot = CreateUIContent(); // Create 2D UI Scene
Panel panel = new Panel()
{
Size = new Size(width, height),
};
panel.PanelResolution = new Vector2(resolutionWidth, resolutionHeight));
panel.Content = contentRoot;
Constructors
View SourcePanel()
Create an initialized Panel.
Declaration
public Panel()
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
Properties
View SourceBackFacePlaneColor
Color of back face plane. Default color is white.
Declaration
public Color BackFacePlaneColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Remarks
Because back face plane is always opaque, alpha channel is ignored.
Content
Root View of 2D UI content. The content is rendered on the plane of the Panel by using off screen rendering.
Declaration
public View Content { get; set; }
Property Value
| Type | Description |
|---|---|
| View |
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
DoubleSided
Whether the content is rendered as double sided or not. Default value is false.
Declaration
public bool DoubleSided { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
PanelResolution
Resolution of the Panel. The resolution is independent from the Panel size property. The resolution defines a plane that the 2D UI scene will be rendered. And the shape of the panel plane is defined by aspect ratio of the input resolution. The plane is cleared by white color.
Declaration
public Vector2 PanelResolution { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
ShadowCast
Whether this Panel casts shadow or not by directional light. If it is true, this panel is drawn on Shadow Map. Default value is true.
Declaration
public bool ShadowCast { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
ShadowReceive
Whether this Panel receives shadow or not by directional light. If it is true, shadows are drawn on this panel. Default value is true.
Declaration
public bool ShadowReceive { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
Transparent
Whether Transparent background is used or not. Default value is false
Declaration
public bool Transparent { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
UsingBackFacePlane
Whether to use back face plane or not. If this property is true, an opaque plane will be displayed when viewed from behind the Panel. Default value is true. Default back face plane color is white.
Declaration
public bool UsingBackFacePlane { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
Methods
View SourceDispose(DisposeTypes)
To make transitionSet instance be disposed.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type |
Overrides
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.
ReleaseSwigCPtr(HandleRef)
Release swigCPtr.
Declaration
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.InteropServices.HandleRef | swigCPtr |
Remarks
2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.