java.lang.Object
org.pqt.autorib.rib.RIBRequest
org.pqt.autorib.rib.RIBPrimitive
org.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).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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