|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget
org.xith3d.ui.hud.widgets.Widget3D
public class Widget3D
The Widget3D is connected to a RenderPass and controls its
Viewport, so that it always covers the Widgets (inner) area.
Note, that it doesn't care about the z-order (z-index). The RenderPass
is rendered in the order, that is defined by the RenderPasses' list.
If you're using a FirstPersonInputHandler, you should apply
a view-transform (see RenderPassConfig.setViewTransform(org.xith3d.scenegraph.Transform3D))
to the RenderPassConfig, so that the FirstPersonInputHandler doesn't
affect the "nested" RenderPass.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.Widget |
|---|
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD |
| Constructor Summary | |
|---|---|
Widget3D(float width,
float height,
RenderPassConfig rpConfig)
Creates a new Widget3D. |
|
| Method Summary | |
|---|---|
protected void |
applyLocationToRenderPass(float x,
float y)
|
protected void |
applySizeToRenderPass(float w,
float h)
|
protected void |
drawWidget(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
boolean drawsSelf)
|
RenderPassConfig |
getRenderPassConfig()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
protected void |
onAttachedToHUD(HUD hud)
This event is fired, when this Widget is added to the HUD live Widget hierarchy. |
protected void |
onDetachedFromHUD(HUD hud)
This event is fired, when this Widget is removed from the HUD live Widget hierarchy. |
protected void |
onLocationChanged(float oldLeft,
float oldTop,
float newLeft,
float newTop)
|
protected void |
onSizeChanged(float oldWidth,
float oldHeight,
float newWidth,
float newHeight)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Widget3D(float width,
float height,
RenderPassConfig rpConfig)
width - height - rpConfig - | Method Detail |
|---|
public final RenderPassConfig getRenderPassConfig()
RenderPassConfig.
protected void applyLocationToRenderPass(float x,
float y)
protected void applySizeToRenderPass(float w,
float h)
protected void onAttachedToHUD(HUD hud)
onAttachedToHUD in class Widgethud - the HUD, the Widget is added toprotected void onDetachedFromHUD(HUD hud)
onDetachedFromHUD in class Widgethud - the HUD, the Widget is removed from
protected void onLocationChanged(float oldLeft,
float oldTop,
float newLeft,
float newTop)
onLocationChanged in class Widget
protected void onSizeChanged(float oldWidth,
float oldHeight,
float newWidth,
float newHeight)
onSizeChanged in class Widget
protected void drawWidget(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
boolean drawsSelf)
drawWidget in class Widgetprotected void init()
init in class Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||