org.ogre4j
Class OptimisedUtil

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.OptimisedUtil
All Implemented Interfaces:
IOptimisedUtil, INativeObject

public class OptimisedUtil
extends NativeObject
implements IOptimisedUtil


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  OptimisedUtil(InstancePointer p)
          This constructor is public for internal useage only!
protected OptimisedUtil(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  OptimisedUtil(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void calculateFaceNormals(FloatPointer positions, IEdgeData.ITriangle triangles, IVector4 faceNormals, int numTriangles)
          Calculate the face normals for the triangles based on position information.
 void calculateLightFacing(IVector4 lightPos, IVector4 faceNormals, BytePointer lightFacings, int numFaces)
          Calculate the light facing state of the triangle's face normals
 void concatenateAffineMatrices(IMatrix4 baseMatrix, IMatrix4 srcMatrices, IMatrix4 dstMatrices, int numMatrices)
          Concatenate an affine matrix to an array of affine matrices.
 void delete()
          Deletes the corresponding C++ object.
 void extrudeVertices(IVector4 lightPos, float extrudeDist, FloatPointer srcPositions, FloatPointer destPositions, int numVertices)
          Extruding vertices by a fixed distance based on light position.
 void finalize()
           
static IOptimisedUtil getImplementation()
          Gets the implementation of this class.
 void softwareVertexMorph(float t, FloatPointer srcPos1, FloatPointer srcPos2, FloatPointer dstPos, int numVertices)
          Performs a software vertex morph, of the kind used for morph animation although it can be used for other purposes.
 void softwareVertexSkinning(FloatPointer srcPosPtr, FloatPointer destPosPtr, FloatPointer srcNormPtr, FloatPointer destNormPtr, FloatPointer blendWeightPtr, ShortPointer blendIndexPtr, NativeObjectPointer<IMatrix4> blendMatrices, int srcPosStride, int destPosStride, int srcNormStride, int destNormStride, int blendWeightStride, int blendIndexStride, int numWeightsPerVertex, int numVertices)
          Performs software vertex skinning.
 
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

OptimisedUtil

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


OptimisedUtil

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


OptimisedUtil

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()
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

softwareVertexSkinning

public void softwareVertexSkinning(FloatPointer srcPosPtr,
                                   FloatPointer destPosPtr,
                                   FloatPointer srcNormPtr,
                                   FloatPointer destNormPtr,
                                   FloatPointer blendWeightPtr,
                                   ShortPointer blendIndexPtr,
                                   NativeObjectPointer<IMatrix4> blendMatrices,
                                   int srcPosStride,
                                   int destPosStride,
                                   int srcNormStride,
                                   int destNormStride,
                                   int blendWeightStride,
                                   int blendIndexStride,
                                   int numWeightsPerVertex,
                                   int numVertices)
Performs software vertex skinning.

Specified by:
softwareVertexSkinning in interface IOptimisedUtil

softwareVertexMorph

public void softwareVertexMorph(float t,
                                FloatPointer srcPos1,
                                FloatPointer srcPos2,
                                FloatPointer dstPos,
                                int numVertices)
Performs a software vertex morph, of the kind used for morph animation although it can be used for other purposes.

Specified by:
softwareVertexMorph in interface IOptimisedUtil

concatenateAffineMatrices

public void concatenateAffineMatrices(IMatrix4 baseMatrix,
                                      IMatrix4 srcMatrices,
                                      IMatrix4 dstMatrices,
                                      int numMatrices)
Concatenate an affine matrix to an array of affine matrices.

Specified by:
concatenateAffineMatrices in interface IOptimisedUtil

calculateFaceNormals

public void calculateFaceNormals(FloatPointer positions,
                                 IEdgeData.ITriangle triangles,
                                 IVector4 faceNormals,
                                 int numTriangles)
Calculate the face normals for the triangles based on position information.

Specified by:
calculateFaceNormals in interface IOptimisedUtil

calculateLightFacing

public void calculateLightFacing(IVector4 lightPos,
                                 IVector4 faceNormals,
                                 BytePointer lightFacings,
                                 int numFaces)
Calculate the light facing state of the triangle's face normals

Specified by:
calculateLightFacing in interface IOptimisedUtil

extrudeVertices

public void extrudeVertices(IVector4 lightPos,
                            float extrudeDist,
                            FloatPointer srcPositions,
                            FloatPointer destPositions,
                            int numVertices)
Extruding vertices by a fixed distance based on light position.

Specified by:
extrudeVertices in interface IOptimisedUtil

getImplementation

public static IOptimisedUtil getImplementation()
Gets the implementation of this class.



Copyright © 2007 netAllied GmbH. All Rights Reserved.