org.ogre4j
Class VertexData

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.VertexData
All Implemented Interfaces:
IAllocatedObject<IGeometryAllocPolicy>, IGeometryAllocatedObject, IVertexData, INativeObject

public class VertexData
extends NativeObject
implements IVertexData


Nested Class Summary
static class VertexData.HardwareAnimationData
           
static class VertexData.HardwareAnimationDataList
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IVertexData
IVertexData.IHardwareAnimationData, IVertexData.IHardwareAnimationDataList
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  VertexData()
           
  VertexData(InstancePointer p)
          This constructor is public for internal useage only!
protected VertexData(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  VertexData(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void allocateHardwareAnimationElements(int count)
          Allocate elements to serve a holder of morph / pose target data for hardware morphing / pose blending.
 IVertexData clone(boolean copyData)
          Clones this vertex data, potentially including replicating any vertex buffers.
 void closeGapsInBindings()
          Remove any gaps in the vertex buffer bindings.
 void convertPackedColour(VertexElementType srcType, VertexElementType destType)
          Convert all packed colour values (VET_COLOUR_*) in buffers used to another type.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 void gethardwareShadowVolWBuffer(IHardwareVertexBufferSharedPtr returnValue)
           
 void gethwAnimationDataList(IVertexData.IHardwareAnimationDataList returnValue)
           
 int gethwAnimDataItemsUsed()
           
 IVertexBufferBinding getvertexBufferBinding()
           
 int getvertexCount()
           
 IVertexDeclaration getvertexDeclaration()
           
 int getvertexStart()
           
 void prepareForShadowVolume()
          Modifies the vertex data to be suitable for use for rendering shadow geometry.
 void removeUnusedBuffers()
          Remove all vertex buffers that never used by the vertex declaration.
 void reorganiseBuffers(IVertexDeclaration newDeclaration)
          Reorganises the data in the vertex buffers according to the new vertex declaration passed in.
 void reorganiseBuffers(IVertexDeclaration newDeclaration, IBufferUsageList bufferUsage)
          Reorganises the data in the vertex buffers according to the new vertex declaration passed in.
 void sethardwareShadowVolWBuffer(IHardwareVertexBufferSharedPtr _jni_value_)
           
 void sethwAnimationDataList(IVertexData.IHardwareAnimationDataList _jni_value_)
           
 void sethwAnimDataItemsUsed(int _jni_value_)
           
 void setvertexBufferBinding(IVertexBufferBinding _jni_value_)
           
 void setvertexCount(int _jni_value_)
           
 void setvertexDeclaration(IVertexDeclaration _jni_value_)
           
 void setvertexStart(int _jni_value_)
           
 
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

VertexData

public VertexData(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


VertexData

protected VertexData(InstancePointer p,
                     boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


VertexData

public VertexData(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

VertexData

public VertexData()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

clone

public IVertexData clone(boolean copyData)
Clones this vertex data, potentially including replicating any vertex buffers.

Specified by:
clone in interface IVertexData

prepareForShadowVolume

public void prepareForShadowVolume()
Modifies the vertex data to be suitable for use for rendering shadow geometry.

Specified by:
prepareForShadowVolume in interface IVertexData

reorganiseBuffers

public void reorganiseBuffers(IVertexDeclaration newDeclaration,
                              IBufferUsageList bufferUsage)
Reorganises the data in the vertex buffers according to the new vertex declaration passed in. Note that new vertex buffers are created and written to, so if the buffers being referenced by this vertex data object are also used by others, then the original buffers will not be damaged by this operation. Once this operation has completed, the new declaration passed in will overwrite the current one.

Specified by:
reorganiseBuffers in interface IVertexData

reorganiseBuffers

public void reorganiseBuffers(IVertexDeclaration newDeclaration)
Reorganises the data in the vertex buffers according to the new vertex declaration passed in. Note that new vertex buffers are created and written to, so if the buffers being referenced by this vertex data object are also used by others, then the original buffers will not be damaged by this operation. Once this operation has completed, the new declaration passed in will overwrite the current one. This version of the method derives the buffer usages from the existing buffers, by using the 'most flexible' usage from the equivalent sources.

Specified by:
reorganiseBuffers in interface IVertexData

closeGapsInBindings

public void closeGapsInBindings()
Remove any gaps in the vertex buffer bindings.

Specified by:
closeGapsInBindings in interface IVertexData

removeUnusedBuffers

public void removeUnusedBuffers()
Remove all vertex buffers that never used by the vertex declaration.

Specified by:
removeUnusedBuffers in interface IVertexData

convertPackedColour

public void convertPackedColour(VertexElementType srcType,
                                VertexElementType destType)
Convert all packed colour values (VET_COLOUR_*) in buffers used to another type.

Specified by:
convertPackedColour in interface IVertexData

allocateHardwareAnimationElements

public void allocateHardwareAnimationElements(int count)
Allocate elements to serve a holder of morph / pose target data for hardware morphing / pose blending.

Specified by:
allocateHardwareAnimationElements in interface IVertexData

getvertexDeclaration

public IVertexDeclaration getvertexDeclaration()
Specified by:
getvertexDeclaration in interface IVertexData

setvertexDeclaration

public void setvertexDeclaration(IVertexDeclaration _jni_value_)
Specified by:
setvertexDeclaration in interface IVertexData

getvertexBufferBinding

public IVertexBufferBinding getvertexBufferBinding()
Specified by:
getvertexBufferBinding in interface IVertexData

setvertexBufferBinding

public void setvertexBufferBinding(IVertexBufferBinding _jni_value_)
Specified by:
setvertexBufferBinding in interface IVertexData

getvertexStart

public int getvertexStart()
Specified by:
getvertexStart in interface IVertexData

setvertexStart

public void setvertexStart(int _jni_value_)
Specified by:
setvertexStart in interface IVertexData

getvertexCount

public int getvertexCount()
Specified by:
getvertexCount in interface IVertexData

setvertexCount

public void setvertexCount(int _jni_value_)
Specified by:
setvertexCount in interface IVertexData

gethwAnimationDataList

public void gethwAnimationDataList(IVertexData.IHardwareAnimationDataList returnValue)
Specified by:
gethwAnimationDataList in interface IVertexData

sethwAnimationDataList

public void sethwAnimationDataList(IVertexData.IHardwareAnimationDataList _jni_value_)
Specified by:
sethwAnimationDataList in interface IVertexData

gethwAnimDataItemsUsed

public int gethwAnimDataItemsUsed()
Specified by:
gethwAnimDataItemsUsed in interface IVertexData

sethwAnimDataItemsUsed

public void sethwAnimDataItemsUsed(int _jni_value_)
Specified by:
sethwAnimDataItemsUsed in interface IVertexData

gethardwareShadowVolWBuffer

public void gethardwareShadowVolWBuffer(IHardwareVertexBufferSharedPtr returnValue)
Specified by:
gethardwareShadowVolWBuffer in interface IVertexData

sethardwareShadowVolWBuffer

public void sethardwareShadowVolWBuffer(IHardwareVertexBufferSharedPtr _jni_value_)
Specified by:
sethardwareShadowVolWBuffer in interface IVertexData


Copyright © 2007 netAllied GmbH. All Rights Reserved.