|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.WidgetBase
org.xith3d.ui.hud.base.RectangularWidget
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 interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
Widget3D(float width,
float height,
RenderPassConfig rpConfig)
Creates a new Widget3D. |
|
| Method Summary | |
|---|---|
Border |
getBorder()
|
RenderPassConfig |
getRenderPassConfig()
|
float |
getTransparency()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
void |
setBorder(Border.Description borderDesc)
Creates a new Border from the given Border.Desctiption and invokes setBorder(Border). |
void |
setBorder(Border border)
Sets the Border to use for this BorderSettable Widget. |
boolean |
setLocation(float locX,
float locY,
boolean forced)
|
boolean |
setSize(float width,
float height,
boolean forced)
|
| Methods inherited from class org.xith3d.ui.hud.base.RectangularWidget |
|---|
getPickHeight, getPickSGZPosition, getPickWidth, pick |
| 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.public final float getTransparency()
getTransparency in interface Widgetpublic void setBorder(Border border)
setBorder in interface BorderSettableborder - the new Border (null for no border)public void setBorder(Border.Description borderDesc)
setBorder in interface BorderSettableborderDesc - the Border.Description to create the new Border from (null for no border)BorderSettable.setBorder(Border)public final Border getBorder()
getBorder in interface BorderSettable
public boolean setLocation(float locX,
float locY,
boolean forced)
setLocation in class WidgetBase
public boolean setSize(float width,
float height,
boolean forced)
setSize in class WidgetBaseprotected void init()
init in class WidgetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||