|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Viewport
public class Viewport
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Viewport(ICamera camera,
IRenderTarget target,
float left,
float top,
float width,
float height,
int ZOrder)
The usual constructor. |
|
Viewport(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Viewport(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Viewport(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_clearUpdatedFlag()
|
long |
_getNumRenderedBatches()
Gets the number of rendered batches in the last update. |
long |
_getNumRenderedFaces()
Gets the number of rendered faces in the last update. |
IRenderQueueInvocationSequence |
_getRenderQueueInvocationSequence()
|
boolean |
_isUpdated()
|
void |
_updateDimensions()
Notifies the viewport of a possible change in dimensions. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
void |
getActualDimensions(IntegerPointer left,
IntegerPointer top,
IntegerPointer width,
IntegerPointer height)
Access to actual dimensions (based on target size). |
int |
getActualHeight()
Gets one of the actual dimensions of the viewport, a value in pixels. |
int |
getActualLeft()
Gets one of the actual dimensions of the viewport, a value in pixels. |
int |
getActualTop()
Gets one of the actual dimensions of the viewport, a value in pixels. |
int |
getActualWidth()
Gets one of the actual dimensions of the viewport, a value in pixels. |
IColourValue |
getBackgroundColour()
Gets the background colour. |
ICamera |
getCamera()
Retrieves a pointer to the camera for this viewport. |
long |
getClearBuffers()
Gets which buffers are to be cleared each frame. |
boolean |
getClearEveryFrame()
Determines if the viewport is cleared before every frame. |
float |
getHeight()
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. |
float |
getLeft()
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. |
java.lang.String |
getMaterialScheme()
Get the material scheme which the viewport should use. |
boolean |
getOverlaysEnabled()
Returns whether or not objects (created in the ) are displayed in this viewport. |
java.lang.String |
getRenderQueueInvocationSequenceName()
Gets the name of the render queue invocation sequence for this target. |
boolean |
getShadowsEnabled()
Returns whether or not shadows (defined in the ) are displayed in this viewport. |
boolean |
getSkiesEnabled()
Returns whether or not skies (created in the ) are displayed in this viewport. |
IRenderTarget |
getTarget()
Retrieves a pointer to the render target for this viewport. |
float |
getTop()
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. |
long |
getVisibilityMask()
Gets a per-viewport visibility mask. |
float |
getWidth()
Gets one of the relative dimensions of the viewport, a value between 0.0 and 1.0. |
int |
getZOrder()
Gets the Z-Order of this viewport. |
void |
setBackgroundColour(IColourValue colour)
Sets the initial background colour of the viewport (before rendering). |
void |
setCamera(ICamera cam)
Sets the camera to use for rendering to this viewport. |
void |
setClearEveryFrame(boolean clear,
long buffers)
Determines whether to clear the viewport before rendering. |
void |
setDimensions(float left,
float top,
float width,
float height)
Sets the dimensions (after creation). |
void |
setMaterialScheme(java.lang.String schemeName)
Set the material scheme which the viewport should use. |
void |
setOverlaysEnabled(boolean enabled)
Tells this viewport whether it should display objects. |
void |
setRenderQueueInvocationSequenceName(java.lang.String sequenceName)
Sets the use of a custom for rendering this target. |
void |
setShadowsEnabled(boolean enabled)
Tells this viewport whether it should display shadows. |
void |
setSkiesEnabled(boolean enabled)
Tells this viewport whether it should display skies. |
void |
setVisibilityMask(long mask)
Sets a per-viewport visibility mask. |
void |
update()
Instructs the viewport to updates its contents. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public Viewport(InstancePointer p)
protected Viewport(InstancePointer p,
boolean remote)
public Viewport(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public Viewport(ICamera camera,
IRenderTarget target,
float left,
float top,
float width,
float height,
int ZOrder)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic void _updateDimensions()
_updateDimensions in interface IViewportpublic void update()
update in interface IViewportpublic IRenderTarget getTarget()
getTarget in interface IViewportpublic ICamera getCamera()
getCamera in interface IViewportpublic void setCamera(ICamera cam)
setCamera in interface IViewportpublic int getZOrder()
getZOrder in interface IViewportpublic float getLeft()
getLeft in interface IViewportpublic float getTop()
getTop in interface IViewportpublic float getWidth()
getWidth in interface IViewportpublic float getHeight()
getHeight in interface IViewportpublic int getActualLeft()
getActualLeft in interface IViewportpublic int getActualTop()
getActualTop in interface IViewportpublic int getActualWidth()
getActualWidth in interface IViewportpublic int getActualHeight()
getActualHeight in interface IViewport
public void setDimensions(float left,
float top,
float width,
float height)
setDimensions in interface IViewportpublic void setBackgroundColour(IColourValue colour)
setBackgroundColour in interface IViewportpublic IColourValue getBackgroundColour()
getBackgroundColour in interface IViewport
public void setClearEveryFrame(boolean clear,
long buffers)
setClearEveryFrame in interface IViewportpublic boolean getClearEveryFrame()
getClearEveryFrame in interface IViewportpublic long getClearBuffers()
getClearBuffers in interface IViewportpublic void setMaterialScheme(java.lang.String schemeName)
setMaterialScheme in interface IViewportpublic java.lang.String getMaterialScheme()
getMaterialScheme in interface IViewport
public void getActualDimensions(IntegerPointer left,
IntegerPointer top,
IntegerPointer width,
IntegerPointer height)
getActualDimensions in interface IViewportpublic boolean _isUpdated()
_isUpdated in interface IViewportpublic void _clearUpdatedFlag()
_clearUpdatedFlag in interface IViewportpublic long _getNumRenderedFaces()
_getNumRenderedFaces in interface IViewportpublic long _getNumRenderedBatches()
_getNumRenderedBatches in interface IViewportpublic void setOverlaysEnabled(boolean enabled)
setOverlaysEnabled in interface IViewportpublic boolean getOverlaysEnabled()
getOverlaysEnabled in interface IViewportpublic void setSkiesEnabled(boolean enabled)
setSkiesEnabled in interface IViewportpublic boolean getSkiesEnabled()
getSkiesEnabled in interface IViewportpublic void setShadowsEnabled(boolean enabled)
setShadowsEnabled in interface IViewportpublic boolean getShadowsEnabled()
getShadowsEnabled in interface IViewportpublic void setVisibilityMask(long mask)
setVisibilityMask in interface IViewportpublic long getVisibilityMask()
getVisibilityMask in interface IViewportpublic void setRenderQueueInvocationSequenceName(java.lang.String sequenceName)
setRenderQueueInvocationSequenceName in interface IViewportpublic java.lang.String getRenderQueueInvocationSequenceName()
getRenderQueueInvocationSequenceName in interface IViewportpublic IRenderQueueInvocationSequence _getRenderQueueInvocationSequence()
_getRenderQueueInvocationSequence in interface IViewport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||