Class NoesisFramebufferPanel
NoesisGUI integration panel.
Inheritance
Implements
Inherited Members
Namespace: Evergine.NoesisGUI
Assembly: Evergine.NoesisGUI.dll
Syntax
public class NoesisFramebufferPanel : NoesisPanel, IDependencyObject
Fields
transform
Owner Transform 3D component.
Declaration
[BindComponent(true, true, BindComponentSource.Owner, null, true)]
protected Transform3D transform
Field Value
Type | Description |
---|---|
Transform3D |
Properties
ContinuousRendering
Gets or sets a value indicating whether this panel will be rendered even if there are no changes.
Declaration
public bool ContinuousRendering { get; set; }
Property Value
Type | Description |
---|---|
bool |
FrameBuffer
Gets or sets the framebuffer.
Declaration
public FrameBuffer FrameBuffer { get; set; }
Property Value
Type | Description |
---|---|
FrameBuffer |
MaxRayDistance
Gets or sets the maximum distance to test the ray.
Declaration
public float MaxRayDistance { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
ObtainsDisplay()
Gets the current display.
Declaration
protected override Display ObtainsDisplay()
Returns
Type | Description |
---|---|
Display | The current display. |
Overrides
ObtainsViewSize(out uint, out uint)
Obtains the size of the view.
Declaration
protected override void ObtainsViewSize(out uint width, out uint height)
Parameters
Type | Name | Description |
---|---|---|
uint | width | The width. |
uint | height | The height. |
Overrides
OnActivated()
Invoked when the object is activated once is attached.
Declaration
protected override void OnActivated()
Overrides
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if all is OK. |
Overrides
OnDeactivated()
Invoked when the object is deactivated.
Declaration
protected override void OnDeactivated()
Overrides
ProjectPointer(Point, out Point)
Get the projected position of a mouse or touch input.
Declaration
public override bool ProjectPointer(Point screen, out Point projected)
Parameters
Type | Name | Description |
---|---|---|
Point | screen | Input x. |
Point | projected | Projected x. |
Returns
Type | Description |
---|---|
bool | Whether the pointer intersected the plane. |
Overrides
ProjectPointer(Ray, float, out Point, out float)
Get the projected position of a 3D ray.
Declaration
public bool ProjectPointer(Ray ray, float maxRayDistance, out Point projected, out float distance)
Parameters
Type | Name | Description |
---|---|---|
Ray | ray | The ray to project. |
float | maxRayDistance | The ray distance to test. |
Point | projected | Projected point on the noesis surface. |
float | distance | The distance. |
Returns
Type | Description |
---|---|
bool | Whether the ray intersected the plane. |
RegisterRenderEvents()
Register to the necessary events to perform the render cycle.
Declaration
protected override void RegisterRenderEvents()
Overrides
UnregisterRenderEvents()
Unregister to the necessary events to perform the render cycle.
Declaration
protected override void UnregisterRenderEvents()
Overrides
UpdateMouseEventByHit(ref HitResult3D, ButtonState, MouseButtons, int)
Updates noesis panel using a HitResult from mouse.
Declaration
public bool UpdateMouseEventByHit(ref HitResult3D hit, ButtonState buttonState, MouseButtons button, int scrollWheel = 0)
Parameters
Type | Name | Description |
---|---|---|
HitResult3D | hit | the HitResult3D object. |
ButtonState | buttonState | Current button state. |
MouseButtons | button | Button from mouse we want to emulate. |
int | scrollWheel | Scroll wheel displacement value. |
Returns
Type | Description |
---|---|
bool | True when HitResult3D object settings hits the panel. |
UpdateTouchEvent(ref Ray, float, ButtonState, long, out float)
Updates the panel.
Declaration
public bool UpdateTouchEvent(ref Ray ray, float maxRayDistance, ButtonState touchState, long touchId, out float distance)
Parameters
Type | Name | Description |
---|---|---|
Ray | ray | The triggered ray. |
float | maxRayDistance | The maximum distance allow to hit. |
ButtonState | touchState | Touch state. |
long | touchId | Touch id. |
float | distance | Hit distance output parameter. |
Returns
Type | Description |
---|---|
bool | True when ray hits the panel in the provided distance. |
UpdateTouchEventByHit(ref HitResult3D, ButtonState, long)
Updates the panel using a HitResult object.
Declaration
public bool UpdateTouchEventByHit(ref HitResult3D hit, ButtonState touchState, long touchId)
Parameters
Type | Name | Description |
---|---|---|
HitResult3D | hit | the HitResult3D object. |
ButtonState | touchState | Current touch state. |
long | touchId | Current touch id. |
Returns
Type | Description |
---|---|
bool | True when HitResult3D object settings hits the panel. |