Свойство | Тип | Описание | |
---|---|---|---|
elementList | List |
||
elementLookup | OverlayElementContainer>.Dictionary | ||
isInitialised | bool | ||
isTransformOutOfDate | bool | ||
isTransformUpdated | bool | ||
isVisible | bool | ||
origin | string | ||
rootNode | |||
rotate | float | ||
scaleX | float | ||
scrollX | float | ||
transform | |||
xform | Axiom.Math.Matrix4[] | ||
zOrder | int |
Метод | Описание | |
---|---|---|
AddElement ( |
Adds a 2d element to this overlay. Containers are created and managed using the OverlayManager. A container could be as simple as a square panel, or something more complex like a grid or tree view. Containers group collections of other elements, giving them a relative coordinate space and a common z-order. If you want to attach a gui widget to an overlay, you have to do it via a container. |
|
AddElement ( |
Adds a node capable of holding 3D objects to the overlay. Although overlays are traditionally associated with 2D elements, there are reasons why you might want to attach 3D elements to the overlay too. For example, if you wanted to have a 3D cockpit, which was overlaid with a HUD, then you would create 2 overlays, one with a 3D object attached for the cockpit, and one with the HUD elements attached (the zorder of the HUD overlay would be higher than the cockpit to ensure it was always on top). A SceneNode can have any number of 3D objects attached to it. SceneNodes are created using SceneManager.CreateSceneNode, and are normally attached (directly or indirectly) to the root node of the scene. By attaching them to an overlay, you indicate that:
|
|
Clear ( ) : void |
Clears the overlay of all attached items.
|
|
FindElementAt ( float x, float y ) : |
This returns a OverlayElement at position x,y.
|
|
FindVisibleObjects ( |
Internal method to put the overlay contents onto the render queue.
|
|
GetChild ( string name ) : |
Gets a child container of this overlay by name.
|
|
GetWorldOrientation ( ) : |
||
GetWorldPosition ( ) : Vector3 | ||
GetWorldTransforms ( |
Used to transform the overlay when scrolling, scaling etc.
|
|
Hide ( ) : void |
Hides this overlay if it is currently being displayed.
|
|
RemoveElement ( |
Removes a 2D container from the overlay. Consider using |
|
RemoveElement ( |
Removes a 3D element from the overlay.
|
|
RemoveElement ( string name ) : void |
Removes a 2D container from the overlay. Consider using |
|
Rotate ( float degrees ) : void |
Adds the passed in angle to the rotation applied to this overlay.
|
|
Scroll ( float xOffset, float yOffset ) : void |
Scrolls the overlay by the offsets provided. This method moves the overlay by the amounts provided. As with other methods on this object, a full screen width / height is represented by the value 1.0. |
|
SetScale ( float x, float y ) : void |
Sets the scaling factor of this overlay. You can use this to set an scale factor to be used to zoom an overlay. |
|
SetScroll ( float x, float y ) : void |
Sets the scrolling factor of this overlay. You can use this to set an offset to be used to scroll an overlay around the screen. |
|
Show ( ) : void |
Shows this overlay if it is not already visible.
|
Метод | Описание | |
---|---|---|
AssignZOrders ( ) : void |
Updates container elements' Z-ordering
|
|
Initialize ( ) : void | ||
UpdateTransforms ( ) : void |
Internal lazy update method.
|
|
load ( ) : void |
|
|
unload ( ) : void |
|
Метод | Описание | |
---|---|---|
Overlay ( string name ) : System |
Constructor: do not call direct, use SceneManager.CreateOverlay
|
public AddElement ( |
||
element | ||
Результат | void |
public AddElement ( |
||
node | ||
Результат | void |
public FindElementAt ( float x, float y ) : |
||
x | float | |
y | float | |
Результат |
public FindVisibleObjects ( |
||
camera | Current camera being used in the render loop. | |
queue | Current render queue. | |
Результат | void |
public GetChild ( string name ) : |
||
name | string | |
Результат |
public GetWorldOrientation ( ) : |
||
Результат |
public GetWorldTransforms ( |
||
xform | Array of Matrix4s to populate with the world /// transforms of this overlay. /// | |
Результат | void |
public RemoveElement ( |
||
element | ||
Результат | void |
public RemoveElement ( |
||
node | ||
Результат | void |
public RemoveElement ( string name ) : void | ||
name | string | |
Результат | void |
public Scroll ( float xOffset, float yOffset ) : void | ||
xOffset | float | |
yOffset | float | |
Результат | void |
public SetScale ( float x, float y ) : void | ||
x | float | Horizontal scale value, where 1.0 = normal, 0.5 = half size etc |
y | float | Vertical scale value, where 1.0 = normal, 0.5 = half size etc |
Результат | void |
public SetScroll ( float x, float y ) : void | ||
x | float | /// Horizontal scroll value, where 0 = normal, -0.5 = scroll so that only /// the right half the screen is visible etc /// |
y | float | /// Vertical scroll value, where 0 = normal, 0.5 = scroll down by half /// a screen etc. /// |
Результат | void |
protected Dictionary |
||
Результат | OverlayElementContainer>.Dictionary |