XJRT Rendering Toolkit 1.0b06

org.autochthonous.graphics.rt.objects
Class TriangleStrip

java.lang.Object
  extended byorg.autochthonous.graphics.rt.Renderable
      extended byorg.autochthonous.graphics.rt.Bounded
          extended byorg.autochthonous.graphics.rt.objects.IndexedMesh
              extended byorg.autochthonous.graphics.rt.objects.TriangleStrip
All Implemented Interfaces:
java.lang.Cloneable, ColorCalculator, Partitionable, TextureMapper, Traceable

public class TriangleStrip
extends IndexedMesh

a triangle strip.

Example:

    <TriangleStrip color="1.000,0.000,0.000">
        <Vertices>
            0.000, 1.000, 0.000,
            1.000, 1.000, 0.000,
            0.000, 0.000, 0.000,
            1.000, 0.000, 0.000
        </Vertices>
    </TriangleStrip>
 

Document Type Definition:

     <!ENTITY %Color3f "CDATA">
     <!ENTITY %Boolean "(true|false)">

     <!ELEMENT TriangleStrip (Vertices, Normals?, Colors?)>
     <!ATTLIST TriangleStrip
         color  %Color3f; "1, 1, 1"
         smooth %Float;   "false">
 


Field Summary
 
Fields inherited from class org.autochthonous.graphics.rt.Bounded
bBox
 
Fields inherited from class org.autochthonous.graphics.rt.Renderable
color, objToRay, rayToObj, selfShadowing, shader
 
Fields inherited from interface org.autochthonous.graphics.rt.TextureMapper
S, T
 
Constructor Summary
TriangleStrip(Point3f[] vertices, boolean smooth)
           
TriangleStrip(Point3f[] vertices, Vector3f[] normals, boolean smooth)
           
TriangleStrip(Point3f[] vertices, Vector3f[] normals, Color3f[] colors, boolean smooth)
           
 
Method Summary
static TriangleStrip getInstance(RMLReader in)
           
protected  void init(Point3f[] vertices, boolean smooth)
           
protected  void processObject(java.lang.Object obj)
           
 
Methods inherited from class org.autochthonous.graphics.rt.objects.IndexedMesh
getST, hasShader, init, init, intersections, isIntersected, isShadowing, processParameters, setColors, setShader, setShader, setVertexColors, setVertexNormals, setVertexTextureCoordinates, vertexIndexes
 
Methods inherited from class org.autochthonous.graphics.rt.Bounded
bBox, setBBox, setBBox, transform
 
Methods inherited from class org.autochthonous.graphics.rt.Renderable
clone, createObjectSpaceRay, getColor, getColor, getShader, isSelfShadowing, readObject, setColor, setColor, setSelfShadowing, toObjectSpace, toObjectSpace, transformNormal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.autochthonous.graphics.rt.Traceable
clone
 

Constructor Detail

TriangleStrip

public TriangleStrip(Point3f[] vertices,
                     boolean smooth)

TriangleStrip

public TriangleStrip(Point3f[] vertices,
                     Vector3f[] normals,
                     boolean smooth)

TriangleStrip

public TriangleStrip(Point3f[] vertices,
                     Vector3f[] normals,
                     Color3f[] colors,
                     boolean smooth)
Method Detail

getInstance

public static TriangleStrip getInstance(RMLReader in)
                                 throws java.io.IOException
Throws:
java.io.IOException

processObject

protected void processObject(java.lang.Object obj)
Overrides:
processObject in class Renderable

init

protected final void init(Point3f[] vertices,
                          boolean smooth)

XJRT Rendering Toolkit 1.0b06