jhplot.v3d
Class Object3d

java.lang.Object
  extended by jhplot.v3d.Position
      extended by jhplot.v3d.Object3d
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Cube, Prism, Pyramid, Sphere

public class Object3d
extends Position
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Object3d(Model3d md, int nvert, int nface)
           
Object3d(java.lang.String name, Model3d md, int nvert, int nface)
           
 
Method Summary
 int addFace(int nvert)
           
 int addFace(int nvert, java.awt.Color c)
           
 int addFace(int nvert, int red, int green, int blue)
           
 int addVertex(float x, float y, float z)
           
 int addVertex(Vector3d v)
           
 void setColor(java.awt.Color c)
           
 void setColor(int red, int green, int blue)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class jhplot.v3d.Position
copyPos, incRot, incScale, incTrans, setRot, setScale, setTrans
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Object3d

public Object3d(Model3d md,
                int nvert,
                int nface)

Object3d

public Object3d(java.lang.String name,
                Model3d md,
                int nvert,
                int nface)
Method Detail

addVertex

public int addVertex(Vector3d v)

addVertex

public int addVertex(float x,
                     float y,
                     float z)

addFace

public int addFace(int nvert,
                   java.awt.Color c)

addFace

public int addFace(int nvert,
                   int red,
                   int green,
                   int blue)

addFace

public int addFace(int nvert)

setName

public void setName(java.lang.String name)

setColor

public void setColor(java.awt.Color c)

setColor

public void setColor(int red,
                     int green,
                     int blue)


jHepWork 1.7 (C) Chekanov