Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.pqt.autorib.rib
Class RIBParametric  view RIBParametric download RIBParametric.java

java.lang.Object
  extended byorg.pqt.autorib.rib.RIBRequest
      extended byorg.pqt.autorib.rib.RIBPrimitive
          extended byorg.pqt.autorib.rib.RIBParametric
All Implemented Interfaces:
java.lang.Cloneable

public class RIBParametric
extends RIBPrimitive

Implements the Renderman parametric surfaces Sphere, Cylinder, Cone, Parabaloid, Hyperboloid, Disk and Torus


Field Summary
 float height
          height
 float majorradius
          majorradius for a torus
 float minorradius
          majorradius for a torus
 float phimax
          torus parameters phimin, phimax
 float phimin
          torus parameters phimin, phimax
 org.pqt.autorib.util.Point point1
          hyperboloid parameters point1, point2
 org.pqt.autorib.util.Point point2
          hyperboloid parameters point1, point2
 float radius
          the radius parameter
 float sweepangle
          sweepangle
 float topradius
          topradius for a paraboloid
 float zmax
          zmax
 float zmin
          zmin, doubles as height for cone and disk
 
Fields inherited from class org.pqt.autorib.rib.RIBPrimitive
bounds, params
 
Fields inherited from class org.pqt.autorib.rib.RIBRequest
deleted, preContent, requestID, requestName
 
Constructor Summary
RIBParametric()
          Creates a new instance of RIBParametric
RIBParametric(org.pqt.autorib.tokenizer.Tokenizer in)
           
 
Method Summary
 org.pqt.autorib.util.Bounds3D getLocalBounds()
          calculate the bounds in local object space and place the result in the bounds field
 void read(org.pqt.autorib.tokenizer.Tokenizer in)
          read an RIB call and store it
 void write(java.io.Writer out)
          write out this RIBRequest, together with any other requests that have been added to it
 void writeOther(java.io.Writer out)
          This method is overridden by subclasses to allow them to actually do the writing out of the Request and associated parameters etc.
 
Methods inherited from class org.pqt.autorib.rib.RIBPrimitive
calculateLocalPPwBounds, getTransformedBounds
 
Methods inherited from class org.pqt.autorib.rib.RIBRequest
filteredWrite, filteredWritePreContent, prepend, prepend, readRequestName, writePreContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

radius

public float radius
the radius parameter


majorradius

public float majorradius
majorradius for a torus


minorradius

public float minorradius
majorradius for a torus


topradius

public float topradius
topradius for a paraboloid


zmin

public float zmin
zmin, doubles as height for cone and disk


zmax

public float zmax
zmax


height

public float height
height


sweepangle

public float sweepangle
sweepangle


phimin

public float phimin
torus parameters phimin, phimax


phimax

public float phimax
torus parameters phimin, phimax


point1

public org.pqt.autorib.util.Point point1
hyperboloid parameters point1, point2


point2

public org.pqt.autorib.util.Point point2
hyperboloid parameters point1, point2

Constructor Detail

RIBParametric

public RIBParametric()
Creates a new instance of RIBParametric


RIBParametric

public RIBParametric(org.pqt.autorib.tokenizer.Tokenizer in)
              throws java.io.IOException,
                     org.pqt.autorib.tokenizer.FormatException
Method Detail

read

public void read(org.pqt.autorib.tokenizer.Tokenizer in)
          throws java.io.IOException,
                 org.pqt.autorib.tokenizer.FormatException
Description copied from class: RIBRequest
read an RIB call and store it

Specified by:
read in class RIBRequest

write

public void write(java.io.Writer out)
           throws java.io.IOException
Description copied from class: RIBRequest
write out this RIBRequest, together with any other requests that have been added to it

Overrides:
write in class RIBRequest

writeOther

public void writeOther(java.io.Writer out)
                throws java.io.IOException
Description copied from class: RIBRequest
This method is overridden by subclasses to allow them to actually do the writing out of the Request and associated parameters etc. It is called whenever any of the Write methods above are called.

Specified by:
writeOther in class RIBRequest

getLocalBounds

public org.pqt.autorib.util.Bounds3D getLocalBounds()
calculate the bounds in local object space and place the result in the bounds field

Specified by:
getLocalBounds in class RIBPrimitive