com.sygem.jazz3d3.primitive
Class Quad3d

java.lang.Object
  extended bycom.sygem.jazz3d3.Object3d
      extended bycom.sygem.jazz3d3.primitive.Quad3d

public class Quad3d
extends Object3d

A simple quadrilateral (4-sided) primitive. This object consists of just one face.

Version:
3.0a
See Also:
Object3d

Field Summary
 
Fields inherited from class com.sygem.jazz3d3.Object3d
USE_ONE_RENDERER, WRAP_FRONT, WRAP_TOP
 
Constructor Summary
Quad3d(double x, double y, double z)
          Default constructor.
 
Method Summary
 void setVertex1(double x, double y, double z)
          Sets the co-ordinates of the first vertex of the quad.
 void setVertex2(double x, double y, double z)
          Sets the co-ordinates of the second vertex of the quad.
 void setVertex3(double x, double y, double z)
          Sets the co-ordinates of the third vertex of the quad.
 void setVertex4(double x, double y, double z)
          Sets the co-ordinates of the fourth vertex of the quad.
 
Methods inherited from class com.sygem.jazz3d3.Object3d
addChild, addQuad, addTriangle, addVertex, applyFaceChanges, cleanUp, culled, getCenter, getChildObjects, getCollidable, getCulling, getFace, getFaceColour, getID, getName, getNumberOfFaces, getNumberOfSubFaces, getNumberOfSubVertices, getNumberOfVertices, getOrientationMatrix, getRenderer, getRotationMatrix, getShapeArray, getUseVertexUVCoords, getVertex, getVertexArray, getVisible, getWorldVertex, init, pick, pickClosest, pickFace, prepForDisplay, recreateVertexNormals, rotateLocal, rotateLocal, rotateWorld, rotateWorld, scaleObject, setAllTextures, setAmbientColour, setCollidable, setColour, setCulling, setFaceColour, setFaceColourQuick, setID, setName, setPosition, setRenderer, setShapeArray, setTexture, setTexture, setUseVertexUVCoords, setVertexArray, setVertexTexture, setVisible, toString, translateLocal, translateWorld, visible, wrapUV
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Quad3d

public Quad3d(double x,
              double y,
              double z)
Default constructor.

Parameters:
x - The x coordinate of the center point of the object
y - The y coordinate of the center point of the object
z - The z coordinate of the center point of the object
Method Detail

setVertex1

public final void setVertex1(double x,
                             double y,
                             double z)
Sets the co-ordinates of the first vertex of the quad.

Parameters:
x - The new x position of the vertex
y - The new y position of the vertex
z - The new z position of the vertex

setVertex2

public final void setVertex2(double x,
                             double y,
                             double z)
Sets the co-ordinates of the second vertex of the quad.

Parameters:
x - The new x position of the vertex
y - The new y position of the vertex
z - The new z position of the vertex

setVertex3

public final void setVertex3(double x,
                             double y,
                             double z)
Sets the co-ordinates of the third vertex of the quad.

Parameters:
x - The new x position of the vertex
y - The new y position of the vertex
z - The new z position of the vertex

setVertex4

public final void setVertex4(double x,
                             double y,
                             double z)
Sets the co-ordinates of the fourth vertex of the quad.

Parameters:
x - The new x position of the vertex
y - The new y position of the vertex
z - The new z position of the vertex


Copyright © 1999-2006 SyGem Software. All Rights Reserved.