org.ogre4j
Interface IManualObject

All Superinterfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IAnimableObject, IMovableObject, INativeObject, ISceneObjAllocatedObject, IShadowCaster
All Known Implementing Classes:
ManualObject

public interface IManualObject
extends INativeObject, IMovableObject


Nested Class Summary
static interface IManualObject.IManualObjectSection
           
static interface IManualObject.IManualObjectSectionShadowRenderable
           
static interface IManualObject.ISectionList
           
static interface 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
 
Method Summary
 void _updateRenderQueue(IRenderQueue queue)
          .
 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 .
 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.
 IAxisAlignedBox getBoundingBox()
          .
 float getBoundingRadius()
          .
 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.
 java.lang.String getMovableType()
          .
 long getNumSections()
          Retrieves the number of objects making up this .
 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.
 boolean getUseIdentityProjection()
          Returns whether or not to use an 'identity' projection.
 boolean getUseIdentityView()
          Returns whether or not to use an 'identity' view.
 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.
 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.
 void setBoundingBox(IAxisAlignedBox box)
          Sets the bounding box.
 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 setMaterialName(int subindex, java.lang.String name)
          Alter the material for a subsection of this object after it has been specified.
 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 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 interface org.ogre4j.IMovableObject
_getCreator, _getLightList, _getManager, _getParentNodeFullTransform, _notifyAttached, _notifyCreator, _notifyCurrentCamera, _notifyManager, _notifyMoved, addQueryFlags, addVisibilityFlags, detatchFromParent, getCastShadows, getDarkCapBounds, getLightCapBounds, getListener, getName, getParentNode, getParentSceneNode, getPointExtrusionDistance, getQueryFlags, getRenderingDistance, getRenderQueueGroup, getTypeFlags, getUserAny, getUserObject, getVisibilityFlags, getVisible, getWorldBoundingBox, getWorldBoundingSphere, isAttached, isDebugDisplayEnabled, isInScene, isVisible, queryLights, removeQueryFlags, removeVisibilityFlags, setCastShadows, setDebugDisplayEnabled, setListener, setQueryFlags, setRenderingDistance, setRenderQueueGroup, setUserAny, setUserObject, setVisibilityFlags, setVisible
 
Methods inherited from interface org.ogre4j.IAnimableObject
createAnimableValue, getAnimableValueNames
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

clear

void clear()
Completely clear the contents of the object.


estimateVertexCount

void estimateVertexCount(int vcount)
Estimate the number of vertices ahead of time.


estimateIndexCount

void estimateIndexCount(int icount)
Estimate the number of indices ahead of time.


begin

void begin(java.lang.String materialName,
           RenderOperation.OperationType opType)
Start defining a part of the object.


setDynamic

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.


getDynamic

boolean getDynamic()
Gets whether this object is marked as dynamic


beginUpdate

void beginUpdate(int sectionIndex)
Start the definition of an update to a part of the object.


position

void position(IVector3 pos)
Add a vertex position, starting a new vertex at the same time.


position

void position(float x,
              float y,
              float z)

normal

void normal(IVector3 norm)
Add a vertex normal to the current vertex.


normal

void normal(float x,
            float y,
            float z)

textureCoord

void textureCoord(float u)
Add a texture coordinate to the current vertex.


textureCoord

void textureCoord(float u,
                  float v)

textureCoord

void textureCoord(float u,
                  float v,
                  float w)

textureCoord

void textureCoord(float x,
                  float y,
                  float z,
                  float w)

textureCoord

void textureCoord(IVector2 uv)

textureCoord

void textureCoord(IVector3 uvw)

textureCoord

void textureCoord(IVector4 xyzw)

colour

void colour(IColourValue col)
Add a vertex colour to a vertex.


colour

void colour(float r,
            float g,
            float b,
            float a)
Add a vertex colour to a vertex.


index

void index(long idx)
Add a vertex index to construct faces / lines / points via indexing rather than just by a simple list of vertices.


triangle

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. It is only valid for triangle lists.


quad

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. It's only valid for triangle list operations.


end

IManualObject.IManualObjectSection end()
Finish defining the object and compile the final renderable version.


setMaterialName

void setMaterialName(int subindex,
                     java.lang.String name)
Alter the material for a subsection of this object after it has been specified.


convertToMesh

void convertToMesh(IMeshPtr returnValue,
                   java.lang.String meshName,
                   java.lang.String groupName)
Convert this object to a .


setUseIdentityProjection

void setUseIdentityProjection(boolean useIdentityProjection)
Sets whether or not to use an 'identity' projection.


getUseIdentityProjection

boolean getUseIdentityProjection()
Returns whether or not to use an 'identity' projection.


setUseIdentityView

void setUseIdentityView(boolean useIdentityView)
Sets whether or not to use an 'identity' view.


getUseIdentityView

boolean getUseIdentityView()
Returns whether or not to use an 'identity' view.


setBoundingBox

void setBoundingBox(IAxisAlignedBox box)
Sets the bounding box.


getSection

IManualObject.IManualObjectSection getSection(long index)
Gets a pointer to a , i.e. a part of a .


getNumSections

long getNumSections()
Retrieves the number of objects making up this .


setKeepDeclarationOrder

void setKeepDeclarationOrder(boolean keepOrder)
Sets whether or not to keep the original declaration order when queuing the renderables.


getKeepDeclarationOrder

boolean getKeepDeclarationOrder()
Gets whether or not the declaration order is to be kept or not.


getMovableType

java.lang.String getMovableType()
.

Specified by:
getMovableType in interface IMovableObject

getBoundingBox

IAxisAlignedBox getBoundingBox()
.

Specified by:
getBoundingBox in interface IMovableObject

getBoundingRadius

float getBoundingRadius()
.

Specified by:
getBoundingRadius in interface IMovableObject

_updateRenderQueue

void _updateRenderQueue(IRenderQueue queue)
.

Specified by:
_updateRenderQueue in interface IMovableObject

getEdgeList

IEdgeData getEdgeList()
Implement this method to enable stencil shadows.

Specified by:
getEdgeList in interface IMovableObject
Specified by:
getEdgeList in interface IShadowCaster

hasEdgeList

boolean hasEdgeList()
Overridden member from .

Specified by:
hasEdgeList in interface IMovableObject
Specified by:
hasEdgeList in interface IShadowCaster

getShadowVolumeRenderableIterator

void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
                                       ShadowTechnique shadowTechnique,
                                       ILight light,
                                       IHardwareIndexBufferSharedPtr indexBuffer,
                                       boolean extrudeVertices,
                                       float extrusionDist,
                                       long flags)
Implement this method to enable stencil shadows.

Specified by:
getShadowVolumeRenderableIterator in interface IMovableObject
Specified by:
getShadowVolumeRenderableIterator in interface IShadowCaster

visitRenderables

void visitRenderables(IRenderable.IVisitor visitor,
                      boolean debugRenderables)
Description copied from interface: IMovableObject
Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any.

Specified by:
visitRenderables in interface IMovableObject


Copyright © 2007 netAllied GmbH. All Rights Reserved.