org.ogre4j
Class TangentSpaceCalc

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

public class TangentSpaceCalc
extends NativeObject
implements ITangentSpaceCalc


Nested Class Summary
protected static class TangentSpaceCalc.IndexDataList
           
static class TangentSpaceCalc.IndexRemap
           
static class TangentSpaceCalc.IndexRemapList
           
protected static class TangentSpaceCalc.OpTypeList
           
static class TangentSpaceCalc.Result
           
protected static class TangentSpaceCalc.VertexInfo
           
protected static class TangentSpaceCalc.VertexInfoArray
           
static class TangentSpaceCalc.VertexSplit
           
static class TangentSpaceCalc.VertexSplits
           
 
Nested classes/interfaces inherited from interface org.ogre4j.ITangentSpaceCalc
ITangentSpaceCalc.IIndexDataList, ITangentSpaceCalc.IIndexRemap, ITangentSpaceCalc.IIndexRemapList, ITangentSpaceCalc.IOpTypeList, ITangentSpaceCalc.IResult, ITangentSpaceCalc.IVertexInfo, ITangentSpaceCalc.IVertexInfoArray, ITangentSpaceCalc.IVertexSplit, ITangentSpaceCalc.IVertexSplits
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  TangentSpaceCalc()
           
  TangentSpaceCalc(InstancePointer p)
          This constructor is public for internal useage only!
protected TangentSpaceCalc(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  TangentSpaceCalc(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void addIndexData(IIndexData i_in, RenderOperation.OperationType opType)
          Add a set of index data that references the vertex data.
 void build(ITangentSpaceCalc.IResult returnValue, VertexElementSemantic targetSemantic, int sourceTexCoordSet, int index)
          Build a tangent space basis from the provided data.
 void clear()
           
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 boolean getSplitMirrored()
          Gets whether or not to split vertices when a mirrored tangent space transition is detected.
 boolean getSplitRotated()
          Sets whether or not to split vertices when tangent space rotates more than 90 degrees around a vertex.
 boolean getStoreParityInW()
          Gets whether to store tangent space parity in the W of a 4-component tangent or not.
 void setSplitMirrored(boolean split)
          Sets whether or not to split vertices when a mirrored tangent space transition is detected (matrix parity differs).
 void setSplitRotated(boolean split)
          Sets whether or not to split vertices when tangent space rotates more than 90 degrees around a vertex.
 void setStoreParityInW(boolean enabled)
          Sets whether to store tangent space parity in the W of a 4-component tangent or not.
 void setVertexData(IVertexData v_in)
          Set the incoming vertex data (which will be modified)
 
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

TangentSpaceCalc

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


TangentSpaceCalc

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


TangentSpaceCalc

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

TangentSpaceCalc

public TangentSpaceCalc()
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

clear

public void clear()
Specified by:
clear in interface ITangentSpaceCalc

setVertexData

public void setVertexData(IVertexData v_in)
Set the incoming vertex data (which will be modified)

Specified by:
setVertexData in interface ITangentSpaceCalc

addIndexData

public void addIndexData(IIndexData i_in,
                         RenderOperation.OperationType opType)
Add a set of index data that references the vertex data. This might be modified if there are vertex splits.

Specified by:
addIndexData in interface ITangentSpaceCalc

setStoreParityInW

public void setStoreParityInW(boolean enabled)
Sets whether to store tangent space parity in the W of a 4-component tangent or not.

Specified by:
setStoreParityInW in interface ITangentSpaceCalc

getStoreParityInW

public boolean getStoreParityInW()
Gets whether to store tangent space parity in the W of a 4-component tangent or not.

Specified by:
getStoreParityInW in interface ITangentSpaceCalc

setSplitMirrored

public void setSplitMirrored(boolean split)
Sets whether or not to split vertices when a mirrored tangent space transition is detected (matrix parity differs).

Specified by:
setSplitMirrored in interface ITangentSpaceCalc

getSplitMirrored

public boolean getSplitMirrored()
Gets whether or not to split vertices when a mirrored tangent space transition is detected.

Specified by:
getSplitMirrored in interface ITangentSpaceCalc

setSplitRotated

public void setSplitRotated(boolean split)
Sets whether or not to split vertices when tangent space rotates more than 90 degrees around a vertex.

Specified by:
setSplitRotated in interface ITangentSpaceCalc

getSplitRotated

public boolean getSplitRotated()
Sets whether or not to split vertices when tangent space rotates more than 90 degrees around a vertex.

Specified by:
getSplitRotated in interface ITangentSpaceCalc

build

public void build(ITangentSpaceCalc.IResult returnValue,
                  VertexElementSemantic targetSemantic,
                  int sourceTexCoordSet,
                  int index)
Build a tangent space basis from the provided data.

Specified by:
build in interface ITangentSpaceCalc


Copyright © 2007 netAllied GmbH. All Rights Reserved.