|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ManualObject
public class ManualObject
| Nested Class Summary | |
|---|---|
static class |
ManualObject.ManualObjectSection
|
static class |
ManualObject.ManualObjectSectionShadowRenderable
|
static class |
ManualObject.SectionList
|
protected static class |
ManualObject.TempVertex
|
| Nested classes/interfaces inherited from interface org.ogre4j.IManualObject |
|---|
IManualObject.IManualObjectSection, IManualObject.IManualObjectSectionShadowRenderable, IManualObject.ISectionList, IManualObject.ITempVertex |
| Nested classes/interfaces inherited from interface org.ogre4j.IMovableObject |
|---|
IMovableObject.IListener |
| Nested classes/interfaces inherited from interface org.ogre4j.IShadowCaster |
|---|
IShadowCaster.IShadowRenderableList, IShadowCaster.IShadowRenderableListIterator |
| Nested classes/interfaces inherited from interface org.ogre4j.IAnimableObject |
|---|
IAnimableObject.IAnimableDictionaryMap |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
ManualObject(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ManualObject(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ManualObject(java.lang.String name)
|
|
ManualObject(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
IMovableObjectFactory |
_getCreator()
Get the creator of this object, if any (internal use only) |
ILightList |
_getLightList()
Returns a pointer to the current list of lights for this object. |
ISceneManager |
_getManager()
Get the manager of this object, if any (internal use only) |
IMatrix4 |
_getParentNodeFullTransform()
|
void |
_notifyAttached(INode parent,
boolean isTagPoint)
Internal method called to notify the object that it has been attached to a node. |
void |
_notifyCreator(IMovableObjectFactory fact)
Notify the object of it's creator (internal use only) |
void |
_notifyCurrentCamera(ICamera cam)
Internal method to notify the object of the camera to be used for the next rendering operation. |
void |
_notifyManager(ISceneManager man)
Notify the object of it's manager (internal use only) |
void |
_notifyMoved()
Internal method called to notify the object that it has been moved. |
void |
_updateRenderQueue(IRenderQueue queue)
. |
void |
addQueryFlags(long flags)
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. |
void |
addVisibilityFlags(long flags)
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. |
void |
begin(java.lang.String materialName,
RenderOperation.OperationType opType)
Start defining a part of the object. |
void |
beginUpdate(int sectionIndex)
Start the definition of an update to a part of the object. |
void |
clear()
Completely clear the contents of the object. |
void |
colour(float r,
float g,
float b,
float a)
Add a vertex colour to a vertex. |
void |
colour(IColourValue col)
Add a vertex colour to a vertex. |
void |
convertToMesh(IMeshPtr returnValue,
java.lang.String meshName,
java.lang.String groupName)
Convert this object to a . |
void |
createAnimableValue(IAnimableValuePtr returnValue,
java.lang.String valueName)
Create a reference-counted AnimableValuePtr for the named value. |
void |
delete()
Deletes the corresponding C++ object. |
void |
detatchFromParent()
Detaches an object from a parent or , if attached. |
IManualObject.IManualObjectSection |
end()
Finish defining the object and compile the final renderable version. |
void |
estimateIndexCount(int icount)
Estimate the number of indices ahead of time. |
void |
estimateVertexCount(int vcount)
Estimate the number of vertices ahead of time. |
static void |
extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer,
int originalVertexCount,
IVector4 lightPos,
float extrudeDist)
Utility method for extruding vertices based on a light. |
void |
finalize()
|
IStringVector |
getAnimableValueNames()
Gets a list of animable value names for this object. |
IAxisAlignedBox |
getBoundingBox()
. |
float |
getBoundingRadius()
. |
boolean |
getCastShadows()
Returns whether shadow casting is enabled for this object. |
IAxisAlignedBox |
getDarkCapBounds(ILight light,
float dirLightExtrusionDist)
Overridden member from . |
static long |
getDefaultQueryFlags()
Get the default query flags for all future instances. |
static long |
getDefaultVisibilityFlags()
Get the default visibility flags for all future instances. |
boolean |
getDynamic()
Gets whether this object is marked as dynamic |
IEdgeData |
getEdgeList()
Implement this method to enable stencil shadows. |
boolean |
getKeepDeclarationOrder()
Gets whether or not the declaration order is to be kept or not. |
IAxisAlignedBox |
getLightCapBounds()
Overridden member from . |
IMovableObject.IListener |
getListener()
Gets the current listener for this object. |
java.lang.String |
getMovableType()
. |
java.lang.String |
getName()
Returns the name of this object. |
long |
getNumSections()
Retrieves the number of objects making up this . |
INode |
getParentNode()
Returns the node to which this object is attached. |
ISceneNode |
getParentSceneNode()
Returns the scene node to which this object is attached. |
float |
getPointExtrusionDistance(ILight l)
Get the distance to extrude for a point/spot light |
long |
getQueryFlags()
|
float |
getRenderingDistance()
Gets the distance at which batches are no longer rendered. |
short |
getRenderQueueGroup()
Gets the queue group for this entity, see setRenderQueueGroup for full details. |
IManualObject.IManualObjectSection |
getSection(long index)
Gets a pointer to a , i.e. a part of a . |
void |
getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
ShadowTechnique shadowTechnique,
ILight light,
IHardwareIndexBufferSharedPtr indexBuffer,
boolean extrudeVertices,
float extrusionDist,
long flags)
Implement this method to enable stencil shadows. |
long |
getTypeFlags()
Get the 'type flags' for this . |
boolean |
getUseIdentityProjection()
Returns whether or not to use an 'identity' projection. |
boolean |
getUseIdentityView()
Returns whether or not to use an 'identity' view. |
IAny |
getUserAny()
Retrieves the custom user value associated with this object. |
IUserDefinedObject |
getUserObject()
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject. |
long |
getVisibilityFlags()
|
boolean |
getVisible()
Gets this object whether to be visible or not, if it has a renderable component. |
IAxisAlignedBox |
getWorldBoundingBox(boolean derive)
Retrieves the axis-aligned bounding box for this object in world coordinates. |
ISphere |
getWorldBoundingSphere(boolean derive)
Retrieves the worldspace bounding sphere for this object. |
boolean |
hasEdgeList()
Overridden member from . |
void |
index(long idx)
Add a vertex index to construct faces / lines / points via indexing rather than just by a simple list of vertices. |
boolean |
isAttached()
Returns true if this object is attached to a or . |
boolean |
isDebugDisplayEnabled()
|
boolean |
isInScene()
Returns true if this object is attached to a or , and this / is currently in an active part of the scene graph. |
boolean |
isVisible()
Returns whether or not this object is supposed to be visible or not. |
void |
normal(float x,
float y,
float z)
|
void |
normal(IVector3 norm)
Add a vertex normal to the current vertex. |
void |
position(float x,
float y,
float z)
|
void |
position(IVector3 pos)
Add a vertex position, starting a new vertex at the same time. |
void |
quad(long i1,
long i2,
long i3,
long i4)
Add a set of 4 vertex indices to construct a quad (out of 2 triangles); this is a shortcut to calling 6 times, or twice. |
ILightList |
queryLights()
Gets a list of lights, ordered relative to how close they are to this movable object. |
void |
removeQueryFlags(long flags)
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. |
void |
removeVisibilityFlags(long flags)
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. |
void |
setBoundingBox(IAxisAlignedBox box)
Sets the bounding box. |
void |
setCastShadows(boolean enabled)
Sets whether or not this object will cast shadows. |
void |
setDebugDisplayEnabled(boolean enabled)
Sets whether or not the debug display of this object is enabled. |
static void |
setDefaultQueryFlags(long flags)
Set the default query flags for all future instances. |
static void |
setDefaultVisibilityFlags(long flags)
Set the default visibility flags for all future instances. |
void |
setDynamic(boolean dyn)
Use before defining geometry to indicate that you intend to update the geometry regularly and want the internal structure to reflect that. |
void |
setKeepDeclarationOrder(boolean keepOrder)
Sets whether or not to keep the original declaration order when queuing the renderables. |
void |
setListener(IMovableObject.IListener listener)
Sets a listener for this object. |
void |
setMaterialName(int subindex,
java.lang.String name)
Alter the material for a subsection of this object after it has been specified. |
void |
setQueryFlags(long flags)
Sets the query flags for this object. |
void |
setRenderingDistance(float dist)
Sets the distance at which the object is no longer rendered. |
void |
setRenderQueueGroup(short queueID)
Sets the render queue group this entity will be rendered through. |
void |
setUseIdentityProjection(boolean useIdentityProjection)
Sets whether or not to use an 'identity' projection. |
void |
setUseIdentityView(boolean useIdentityView)
Sets whether or not to use an 'identity' view. |
void |
setUserAny(IAny anything)
Sets any kind of user value on this object. |
void |
setUserObject(IUserDefinedObject obj)
Call this to associate your own custom user object instance with this . |
void |
setVisibilityFlags(long flags)
Sets the visiblity flags for this object. |
void |
setVisible(boolean visible)
Tells this object whether to be visible or not, if it has a renderable component. |
void |
textureCoord(float u)
Add a texture coordinate to the current vertex. |
void |
textureCoord(float u,
float v)
|
void |
textureCoord(float u,
float v,
float w)
|
void |
textureCoord(float x,
float y,
float z,
float w)
|
void |
textureCoord(IVector2 uv)
|
void |
textureCoord(IVector3 uvw)
|
void |
textureCoord(IVector4 xyzw)
|
void |
triangle(long i1,
long i2,
long i3)
Add a set of 3 vertex indices to construct a triangle; this is a shortcut to calling 3 times. |
void |
visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any. |
| 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 ManualObject(InstancePointer p)
protected ManualObject(InstancePointer p,
boolean remote)
public ManualObject(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public ManualObject(java.lang.String name)
| 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 clear()
clear in interface IManualObjectpublic void estimateVertexCount(int vcount)
estimateVertexCount in interface IManualObjectpublic void estimateIndexCount(int icount)
estimateIndexCount in interface IManualObject
public void begin(java.lang.String materialName,
RenderOperation.OperationType opType)
begin in interface IManualObjectpublic void setDynamic(boolean dyn)
setDynamic in interface IManualObjectpublic boolean getDynamic()
getDynamic in interface IManualObjectpublic void beginUpdate(int sectionIndex)
beginUpdate in interface IManualObjectpublic void position(IVector3 pos)
position in interface IManualObject
public void position(float x,
float y,
float z)
position in interface IManualObjectpublic void normal(IVector3 norm)
normal in interface IManualObject
public void normal(float x,
float y,
float z)
normal in interface IManualObjectpublic void textureCoord(float u)
textureCoord in interface IManualObject
public void textureCoord(float u,
float v)
textureCoord in interface IManualObject
public void textureCoord(float u,
float v,
float w)
textureCoord in interface IManualObject
public void textureCoord(float x,
float y,
float z,
float w)
textureCoord in interface IManualObjectpublic void textureCoord(IVector2 uv)
textureCoord in interface IManualObjectpublic void textureCoord(IVector3 uvw)
textureCoord in interface IManualObjectpublic void textureCoord(IVector4 xyzw)
textureCoord in interface IManualObjectpublic void colour(IColourValue col)
colour in interface IManualObject
public void colour(float r,
float g,
float b,
float a)
colour in interface IManualObjectpublic void index(long idx)
index in interface IManualObject
public void triangle(long i1,
long i2,
long i3)
triangle in interface IManualObject
public void quad(long i1,
long i2,
long i3,
long i4)
quad in interface IManualObjectpublic IManualObject.IManualObjectSection end()
end in interface IManualObject
public void setMaterialName(int subindex,
java.lang.String name)
setMaterialName in interface IManualObject
public void convertToMesh(IMeshPtr returnValue,
java.lang.String meshName,
java.lang.String groupName)
convertToMesh in interface IManualObjectpublic void setUseIdentityProjection(boolean useIdentityProjection)
setUseIdentityProjection in interface IManualObjectpublic boolean getUseIdentityProjection()
getUseIdentityProjection in interface IManualObjectpublic void setUseIdentityView(boolean useIdentityView)
setUseIdentityView in interface IManualObjectpublic boolean getUseIdentityView()
getUseIdentityView in interface IManualObjectpublic void setBoundingBox(IAxisAlignedBox box)
setBoundingBox in interface IManualObjectpublic IManualObject.IManualObjectSection getSection(long index)
getSection in interface IManualObjectpublic long getNumSections()
getNumSections in interface IManualObjectpublic void setKeepDeclarationOrder(boolean keepOrder)
setKeepDeclarationOrder in interface IManualObjectpublic boolean getKeepDeclarationOrder()
getKeepDeclarationOrder in interface IManualObjectpublic java.lang.String getMovableType()
getMovableType in interface IManualObjectgetMovableType in interface IMovableObjectpublic IAxisAlignedBox getBoundingBox()
getBoundingBox in interface IManualObjectgetBoundingBox in interface IMovableObjectpublic float getBoundingRadius()
getBoundingRadius in interface IManualObjectgetBoundingRadius in interface IMovableObjectpublic void _updateRenderQueue(IRenderQueue queue)
_updateRenderQueue in interface IManualObject_updateRenderQueue in interface IMovableObjectpublic IEdgeData getEdgeList()
getEdgeList in interface IManualObjectgetEdgeList in interface IMovableObjectgetEdgeList in interface IShadowCasterpublic boolean hasEdgeList()
hasEdgeList in interface IManualObjecthasEdgeList in interface IMovableObjecthasEdgeList in interface IShadowCaster
public void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
ShadowTechnique shadowTechnique,
ILight light,
IHardwareIndexBufferSharedPtr indexBuffer,
boolean extrudeVertices,
float extrusionDist,
long flags)
getShadowVolumeRenderableIterator in interface IManualObjectgetShadowVolumeRenderableIterator in interface IMovableObjectgetShadowVolumeRenderableIterator in interface IShadowCaster
public void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
IMovableObject
visitRenderables in interface IManualObjectvisitRenderables in interface IMovableObjectpublic void _notifyCreator(IMovableObjectFactory fact)
_notifyCreator in interface IMovableObjectpublic IMovableObjectFactory _getCreator()
_getCreator in interface IMovableObjectpublic void _notifyManager(ISceneManager man)
_notifyManager in interface IMovableObjectpublic ISceneManager _getManager()
_getManager in interface IMovableObjectpublic java.lang.String getName()
getName in interface IMovableObjectpublic INode getParentNode()
getParentNode in interface IMovableObjectpublic ISceneNode getParentSceneNode()
getParentSceneNode in interface IMovableObject
public void _notifyAttached(INode parent,
boolean isTagPoint)
_notifyAttached in interface IMovableObjectpublic boolean isAttached()
isAttached in interface IMovableObjectpublic void detatchFromParent()
detatchFromParent in interface IMovableObjectpublic boolean isInScene()
isInScene in interface IMovableObjectpublic void _notifyMoved()
_notifyMoved in interface IMovableObjectpublic void _notifyCurrentCamera(ICamera cam)
_notifyCurrentCamera in interface IMovableObjectpublic IAxisAlignedBox getWorldBoundingBox(boolean derive)
getWorldBoundingBox in interface IMovableObjectgetWorldBoundingBox in interface IShadowCasterpublic ISphere getWorldBoundingSphere(boolean derive)
getWorldBoundingSphere in interface IMovableObjectpublic void setVisible(boolean visible)
setVisible in interface IMovableObjectpublic boolean getVisible()
getVisible in interface IMovableObjectpublic boolean isVisible()
isVisible in interface IMovableObjectpublic void setRenderingDistance(float dist)
setRenderingDistance in interface IMovableObjectpublic float getRenderingDistance()
getRenderingDistance in interface IMovableObjectpublic void setUserObject(IUserDefinedObject obj)
setUserObject in interface IMovableObjectpublic IUserDefinedObject getUserObject()
getUserObject in interface IMovableObjectpublic void setUserAny(IAny anything)
setUserAny in interface IMovableObjectpublic IAny getUserAny()
getUserAny in interface IMovableObjectpublic void setRenderQueueGroup(short queueID)
setRenderQueueGroup in interface IMovableObjectpublic short getRenderQueueGroup()
getRenderQueueGroup in interface IMovableObjectpublic IMatrix4 _getParentNodeFullTransform()
_getParentNodeFullTransform in interface IMovableObjectpublic void setQueryFlags(long flags)
setQueryFlags in interface IMovableObjectpublic void addQueryFlags(long flags)
addQueryFlags in interface IMovableObjectpublic void removeQueryFlags(long flags)
removeQueryFlags in interface IMovableObjectpublic long getQueryFlags()
getQueryFlags in interface IMovableObjectpublic void setVisibilityFlags(long flags)
setVisibilityFlags in interface IMovableObjectpublic void addVisibilityFlags(long flags)
addVisibilityFlags in interface IMovableObjectpublic void removeVisibilityFlags(long flags)
removeVisibilityFlags in interface IMovableObjectpublic long getVisibilityFlags()
getVisibilityFlags in interface IMovableObjectpublic void setListener(IMovableObject.IListener listener)
setListener in interface IMovableObjectpublic IMovableObject.IListener getListener()
getListener in interface IMovableObjectpublic ILightList queryLights()
queryLights in interface IMovableObjectpublic ILightList _getLightList()
_getLightList in interface IMovableObjectpublic IAxisAlignedBox getLightCapBounds()
getLightCapBounds in interface IMovableObjectgetLightCapBounds in interface IShadowCaster
public IAxisAlignedBox getDarkCapBounds(ILight light,
float dirLightExtrusionDist)
getDarkCapBounds in interface IMovableObjectgetDarkCapBounds in interface IShadowCasterpublic void setCastShadows(boolean enabled)
setCastShadows in interface IMovableObjectpublic boolean getCastShadows()
getCastShadows in interface IMovableObjectgetCastShadows in interface IShadowCasterpublic float getPointExtrusionDistance(ILight l)
getPointExtrusionDistance in interface IMovableObjectgetPointExtrusionDistance in interface IShadowCasterpublic long getTypeFlags()
getTypeFlags in interface IMovableObjectpublic void setDebugDisplayEnabled(boolean enabled)
setDebugDisplayEnabled in interface IMovableObjectpublic boolean isDebugDisplayEnabled()
isDebugDisplayEnabled in interface IMovableObjectpublic static void setDefaultQueryFlags(long flags)
public static long getDefaultQueryFlags()
public static void setDefaultVisibilityFlags(long flags)
public static long getDefaultVisibilityFlags()
public static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer,
int originalVertexCount,
IVector4 lightPos,
float extrudeDist)
public IStringVector getAnimableValueNames()
getAnimableValueNames in interface IAnimableObject
public void createAnimableValue(IAnimableValuePtr returnValue,
java.lang.String valueName)
createAnimableValue in interface IAnimableObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||