org.ogre4j
Class IndexData

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

public class IndexData
extends NativeObject
implements IIndexData


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  IndexData()
           
  IndexData(InstancePointer p)
          This constructor is public for internal useage only!
protected IndexData(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  IndexData(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 IIndexData clone(boolean copyData)
          Clones this index data, potentially including replicating the index buffer.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 void getindexBuffer(IHardwareIndexBufferSharedPtr returnValue)
           
 int getindexCount()
           
 int getindexStart()
           
 void optimiseVertexCacheTriList()
          Re-order the indexes in this index data structure to be more vertex cache friendly; that is to re-use the same vertices as close together as possible.
 void setindexBuffer(IHardwareIndexBufferSharedPtr _jni_value_)
           
 void setindexCount(int _jni_value_)
           
 void setindexStart(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

IndexData

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


IndexData

protected IndexData(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.


IndexData

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

IndexData

public IndexData()
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 IIndexData clone(boolean copyData)
Clones this index data, potentially including replicating the index buffer.

Specified by:
clone in interface IIndexData

optimiseVertexCacheTriList

public void optimiseVertexCacheTriList()
Re-order the indexes in this index data structure to be more vertex cache friendly; that is to re-use the same vertices as close together as possible.

Specified by:
optimiseVertexCacheTriList in interface IIndexData

getindexBuffer

public void getindexBuffer(IHardwareIndexBufferSharedPtr returnValue)
Specified by:
getindexBuffer in interface IIndexData

setindexBuffer

public void setindexBuffer(IHardwareIndexBufferSharedPtr _jni_value_)
Specified by:
setindexBuffer in interface IIndexData

getindexStart

public int getindexStart()
Specified by:
getindexStart in interface IIndexData

setindexStart

public void setindexStart(int _jni_value_)
Specified by:
setindexStart in interface IIndexData

getindexCount

public int getindexCount()
Specified by:
getindexCount in interface IIndexData

setindexCount

public void setindexCount(int _jni_value_)
Specified by:
setindexCount in interface IIndexData


Copyright © 2007 netAllied GmbH. All Rights Reserved.