org.jagatoo.loaders.models._util
Interface NodeFactory


public interface NodeFactory

Insert type comment here.


Method Summary
 void addNodeToGroup(NamedObject node, NamedObject group)
           
 void applyAppearanceToShape(NamedObject appearance, NamedObject shape)
           
 void applyGeometryToShape(NamedObject geometry, NamedObject shape)
           
 NamedObject createAmbientLightNode(java.lang.String name)
           
 NamedObject createBSPTreeGroup(java.lang.String name, BSPVisibilityUpdater visUpdater, org.openmali.spatial.bounds.BoundsType boundsType)
           
 NamedObject createDummyNode()
           
 NamedObject createOcTreeGroup(java.lang.String name, float centerX, float centerY, float centerZ, float sizeX, float sizeY, float sizeZ)
           
 NamedObject createPointLightNode(java.lang.String name)
           
 NamedObject createQuadTreeGroup(java.lang.String name, float centerX, float centerY, float centerZ, org.openmali.spatial.PlaneIndicator plane, float width, float depth, float height)
           
 NamedObject createShape(java.lang.String name, NamedObject geometry, NamedObject appearance, org.openmali.spatial.bounds.BoundsType boundsType)
           
 NamedObject createSimpleGroup(java.lang.String name, org.openmali.spatial.bounds.BoundsType boundsType)
           
 java.lang.Object createSkyBox(AbstractTexture texFront, AbstractTexture texRight, AbstractTexture texBack, AbstractTexture texLeft, AbstractTexture texTop, AbstractTexture texBottom)
           
 NamedObject createSpotLightNode(java.lang.String name)
           
 NamedObject createTransformGroup(java.lang.String name, org.openmali.spatial.bounds.BoundsType boundsType)
           
 NamedObject createTransformGroup(java.lang.String name, org.openmali.vecmath2.Matrix4f transform, org.openmali.spatial.bounds.BoundsType boundsType)
           
 NamedObject getAppearanceFromShape(NamedObject shape)
           
 NamedObject getGeometryFromShape(NamedObject shape)
           
 NamedObject rotateShapeOrGeometry(NamedObject shapeOrGeom, org.openmali.vecmath2.Matrix3f rotation)
           
 NamedObject scaleShapeOrGeometry(NamedObject shapeOrGeom, org.openmali.vecmath2.Tuple3f scale)
           
 void setAmbientLightColor(NamedObject ambientLight, float r, float g, float b)
           
 void setBSPGroupVisibilityUpdater(NamedObject bspGroup, BSPVisibilityUpdater visUpdater)
           
 void setLightEnbaled(NamedObject light, boolean enabled)
           
 void setLightRadius(NamedObject light, float radius)
           
 void setPointLightAttenuation(NamedObject pointLight, float attConstant, float attLinear, float attQuadratic)
           
 void setPointLightColor(NamedObject pointLight, float r, float g, float b)
           
 void setPointLightLocation(NamedObject pointLight, float x, float y, float z)
           
 void setSpotLightAngle(NamedObject spotLight, float angle)
           
 void setSpotLightAttenuation(NamedObject spotLight, float attConstant, float attLinear, float attQuadratic)
           
 void setSpotLightColor(NamedObject spotLight, float r, float g, float b)
           
 void setSpotLightLocation(NamedObject spotLight, float x, float y, float z)
           
 void setTransformGroupRotation(NamedObject tg, float rx, float ry, float rz)
           
 void setTransformGroupRotation(NamedObject tg, float quatA, float quatB, float quatC, float quatD)
           
 void setTransformGroupRotation(NamedObject tg, org.openmali.vecmath2.Matrix3f rotation)
           
 void setTransformGroupScale(NamedObject tg, float sx, float sy, float sz)
           
 void setTransformGroupTransform(NamedObject tg, org.openmali.vecmath2.Matrix4f transform)
           
 void setTransformGroupTranslation(NamedObject tg, float tx, float ty, float tz)
           
 NamedObject transformShapeOrGeometry(NamedObject shapeOrGeom, org.openmali.vecmath2.Matrix4f transform)
           
 NamedObject transformShapeOrGeometry(NamedObject shapeOrGeom, org.openmali.vecmath2.Vector3f translation, org.openmali.vecmath2.AxisAngle3f rotation, org.openmali.vecmath2.Tuple3f scale)
           
 NamedObject transformShapeOrGeometry(NamedObject shapeOrGeom, org.openmali.vecmath2.Vector3f translation, org.openmali.vecmath2.Matrix3f rotation, org.openmali.vecmath2.Tuple3f scale)
           
 NamedObject transformShapeOrGeometry(NamedObject shapeOrGeom, org.openmali.vecmath2.Vector3f translation, org.openmali.vecmath2.Quaternion4f rotation, org.openmali.vecmath2.Tuple3f scale)
           
 NamedObject translateShapeOrGeometry(NamedObject shapeOrGeom, float translationX, float translationY, float translationZ)
           
 NamedObject translateShapeOrGeometry(NamedObject shapeOrGeom, org.openmali.vecmath2.Vector3f translation)
           
 

Method Detail

createDummyNode

NamedObject createDummyNode()

createSimpleGroup

NamedObject createSimpleGroup(java.lang.String name,
                              org.openmali.spatial.bounds.BoundsType boundsType)

createQuadTreeGroup

NamedObject createQuadTreeGroup(java.lang.String name,
                                float centerX,
                                float centerY,
                                float centerZ,
                                org.openmali.spatial.PlaneIndicator plane,
                                float width,
                                float depth,
                                float height)

createOcTreeGroup

NamedObject createOcTreeGroup(java.lang.String name,
                              float centerX,
                              float centerY,
                              float centerZ,
                              float sizeX,
                              float sizeY,
                              float sizeZ)

createBSPTreeGroup

NamedObject createBSPTreeGroup(java.lang.String name,
                               BSPVisibilityUpdater visUpdater,
                               org.openmali.spatial.bounds.BoundsType boundsType)

setBSPGroupVisibilityUpdater

void setBSPGroupVisibilityUpdater(NamedObject bspGroup,
                                  BSPVisibilityUpdater visUpdater)

createTransformGroup

NamedObject createTransformGroup(java.lang.String name,
                                 org.openmali.spatial.bounds.BoundsType boundsType)

createTransformGroup

NamedObject createTransformGroup(java.lang.String name,
                                 org.openmali.vecmath2.Matrix4f transform,
                                 org.openmali.spatial.bounds.BoundsType boundsType)

setTransformGroupTransform

void setTransformGroupTransform(NamedObject tg,
                                org.openmali.vecmath2.Matrix4f transform)

setTransformGroupRotation

void setTransformGroupRotation(NamedObject tg,
                               org.openmali.vecmath2.Matrix3f rotation)

setTransformGroupRotation

void setTransformGroupRotation(NamedObject tg,
                               float quatA,
                               float quatB,
                               float quatC,
                               float quatD)

setTransformGroupRotation

void setTransformGroupRotation(NamedObject tg,
                               float rx,
                               float ry,
                               float rz)

setTransformGroupScale

void setTransformGroupScale(NamedObject tg,
                            float sx,
                            float sy,
                            float sz)

setTransformGroupTranslation

void setTransformGroupTranslation(NamedObject tg,
                                  float tx,
                                  float ty,
                                  float tz)

createShape

NamedObject createShape(java.lang.String name,
                        NamedObject geometry,
                        NamedObject appearance,
                        org.openmali.spatial.bounds.BoundsType boundsType)

applyGeometryToShape

void applyGeometryToShape(NamedObject geometry,
                          NamedObject shape)

applyAppearanceToShape

void applyAppearanceToShape(NamedObject appearance,
                            NamedObject shape)

getGeometryFromShape

NamedObject getGeometryFromShape(NamedObject shape)

getAppearanceFromShape

NamedObject getAppearanceFromShape(NamedObject shape)

createAmbientLightNode

NamedObject createAmbientLightNode(java.lang.String name)

setAmbientLightColor

void setAmbientLightColor(NamedObject ambientLight,
                          float r,
                          float g,
                          float b)

createPointLightNode

NamedObject createPointLightNode(java.lang.String name)

setPointLightLocation

void setPointLightLocation(NamedObject pointLight,
                           float x,
                           float y,
                           float z)

setPointLightColor

void setPointLightColor(NamedObject pointLight,
                        float r,
                        float g,
                        float b)

setPointLightAttenuation

void setPointLightAttenuation(NamedObject pointLight,
                              float attConstant,
                              float attLinear,
                              float attQuadratic)

createSpotLightNode

NamedObject createSpotLightNode(java.lang.String name)

setSpotLightLocation

void setSpotLightLocation(NamedObject spotLight,
                          float x,
                          float y,
                          float z)

setSpotLightColor

void setSpotLightColor(NamedObject spotLight,
                       float r,
                       float g,
                       float b)

setSpotLightAngle

void setSpotLightAngle(NamedObject spotLight,
                       float angle)

setSpotLightAttenuation

void setSpotLightAttenuation(NamedObject spotLight,
                             float attConstant,
                             float attLinear,
                             float attQuadratic)

setLightRadius

void setLightRadius(NamedObject light,
                    float radius)

setLightEnbaled

void setLightEnbaled(NamedObject light,
                     boolean enabled)

addNodeToGroup

void addNodeToGroup(NamedObject node,
                    NamedObject group)

createSkyBox

java.lang.Object createSkyBox(AbstractTexture texFront,
                              AbstractTexture texRight,
                              AbstractTexture texBack,
                              AbstractTexture texLeft,
                              AbstractTexture texTop,
                              AbstractTexture texBottom)

transformShapeOrGeometry

NamedObject transformShapeOrGeometry(NamedObject shapeOrGeom,
                                     org.openmali.vecmath2.Matrix4f transform)

transformShapeOrGeometry

NamedObject transformShapeOrGeometry(NamedObject shapeOrGeom,
                                     org.openmali.vecmath2.Vector3f translation,
                                     org.openmali.vecmath2.Matrix3f rotation,
                                     org.openmali.vecmath2.Tuple3f scale)

transformShapeOrGeometry

NamedObject transformShapeOrGeometry(NamedObject shapeOrGeom,
                                     org.openmali.vecmath2.Vector3f translation,
                                     org.openmali.vecmath2.Quaternion4f rotation,
                                     org.openmali.vecmath2.Tuple3f scale)

transformShapeOrGeometry

NamedObject transformShapeOrGeometry(NamedObject shapeOrGeom,
                                     org.openmali.vecmath2.Vector3f translation,
                                     org.openmali.vecmath2.AxisAngle3f rotation,
                                     org.openmali.vecmath2.Tuple3f scale)

translateShapeOrGeometry

NamedObject translateShapeOrGeometry(NamedObject shapeOrGeom,
                                     org.openmali.vecmath2.Vector3f translation)

translateShapeOrGeometry

NamedObject translateShapeOrGeometry(NamedObject shapeOrGeom,
                                     float translationX,
                                     float translationY,
                                     float translationZ)

rotateShapeOrGeometry

NamedObject rotateShapeOrGeometry(NamedObject shapeOrGeom,
                                  org.openmali.vecmath2.Matrix3f rotation)

scaleShapeOrGeometry

NamedObject scaleShapeOrGeometry(NamedObject shapeOrGeom,
                                 org.openmali.vecmath2.Tuple3f scale)