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

Quick Search    Search Deep

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

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

public class RIBDefaultPrimitive
extends RIBPrimitive

this handles all the primitives that do not have their own separate class, it handles everything correctly for primitives that obey the following rules: they are defined by "P" or "Pw" control points, their parameters may start with a string (such as subdivision mesh) but must contain no other strings as part of the main arguments (though arrays of strings are allowed and, of course, the general parameters contain strings as parameter names).


Field Summary
private  java.util.Vector content
          used for other parameters other than the general parameters
private  boolean hasInitialStringParam
          true if this primitive has an initial string parameter
private  java.lang.String type
          used for the initial string parameter if there is one
 
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
(package private) RIBDefaultPrimitive()
           
(package private) RIBDefaultPrimitive(org.pqt.autorib.tokenizer.Tokenizer in)
           
(package private) RIBDefaultPrimitive(org.pqt.autorib.tokenizer.Tokenizer in, boolean hasInitialStringParam)
          Usual constructor
 
Method Summary
 org.pqt.autorib.util.Bounds3D getLocalBounds()
          Calculate the bounding box for this primitive, or return one previously calculated, in object space
 void read(org.pqt.autorib.tokenizer.Tokenizer in)
          read an RIB call and store it
 void write(java.io.Writer out)
          Write the contents of the RIBCall to a stream
 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

type

private java.lang.String type
used for the initial string parameter if there is one


hasInitialStringParam

private boolean hasInitialStringParam
true if this primitive has an initial string parameter


content

private java.util.Vector content
used for other parameters other than the general parameters

Constructor Detail

RIBDefaultPrimitive

RIBDefaultPrimitive()

RIBDefaultPrimitive

RIBDefaultPrimitive(org.pqt.autorib.tokenizer.Tokenizer in,
                    boolean hasInitialStringParam)
              throws org.pqt.autorib.tokenizer.FormatException,
                     java.io.IOException
Usual constructor


RIBDefaultPrimitive

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

write

public void write(java.io.Writer out)
           throws java.io.IOException
Write the contents of the RIBCall to a stream

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

read

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

Specified by:
read in class RIBRequest

getLocalBounds

public org.pqt.autorib.util.Bounds3D getLocalBounds()
Description copied from class: RIBPrimitive
Calculate the bounding box for this primitive, or return one previously calculated, in object space

Specified by:
getLocalBounds in class RIBPrimitive