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

Quick Search    Search Deep

org.pqt.autorib.instr
Class InstrRequest  view InstrRequest download InstrRequest.java

java.lang.Object
  extended byorg.pqt.autorib.instr.InstrRequest
Direct Known Subclasses:
InstrAppendNumber, InstrAppendParam, InstrAppendPrimParam, InstrBlockRequest, InstrBrace, InstrCleanPoly, InstrCombinePolys, InstrDefaultConeAngle, InstrDeletePrims, InstrEnvMap, InstrEnvMapAuto, InstrGroupEnvMap, InstrLightDome, InstrMapDisplay, InstrMapFilter, InstrMapFormat, InstrMapFormatMult, InstrMapSamples, InstrNumberGroup, InstrOmit, InstrOption, InstrOrthoMap, InstrPerspMap, InstrReflMap, InstrReflMapAuto, InstrRemoveParam, InstrRemoveShader, InstrRenameParam, InstrRenameShader, InstrSavePref, InstrShader, InstrShadowDist, InstrShadowDistAuto, InstrShadowPoint, InstrShadowSpot, InstrSixSnaps, InstrSoftShadowSpot, InstrTightClipping, InstrToSubdivision

public abstract class InstrRequest
extends java.lang.Object

This class is the superclass of all classes that handle instructions. Most of the subclasses do little more than override the basic methods defined here for reading in the instruction, writing it out (used only for debugging) and processing objects and/or lights with it.

Note the similarity to the RIBRequest class.


Field Summary
 int requestID
          the id of the request, as defined in InstrGlobals.
 java.lang.String requestName
          The Name of the RIB Call
 
Constructor Summary
InstrRequest()
           
 
Method Summary
 boolean checkShaderType(java.lang.String s)
          Checks to see if a string is a valid shader type ("Surface","Displacement" etc).
 void process(InstrWReader rw, org.pqt.autorib.rib.RIBLight light)
          Apply this instruction to the given light
 void process(InstrWReader rw, org.pqt.autorib.rib.RIBObjectGroup group)
          Apply this instruction to an object group
abstract  void read(InstrWReader in)
          read the instruction call and store it
 void readRequestName(InstrWReader in)
          used internally to read in the request name only
abstract  void write(java.io.Writer out)
          write out this instruction and its parameters - used for debugging only
 void writeRequest(java.io.Writer out)
          write out just the request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestName

public java.lang.String requestName
The Name of the RIB Call


requestID

public int requestID
the id of the request, as defined in InstrGlobals.

Constructor Detail

InstrRequest

public InstrRequest()
Method Detail

read

public abstract void read(InstrWReader in)
                   throws java.io.IOException,
                          org.pqt.autorib.tokenizer.FormatException
read the instruction call and store it


readRequestName

public void readRequestName(InstrWReader in)
                     throws java.io.IOException,
                            org.pqt.autorib.tokenizer.FormatException
used internally to read in the request name only


write

public abstract void write(java.io.Writer out)
                    throws java.io.IOException
write out this instruction and its parameters - used for debugging only


writeRequest

public void writeRequest(java.io.Writer out)
                  throws java.io.IOException
write out just the request


process

public void process(InstrWReader rw,
                    org.pqt.autorib.rib.RIBLight light)
             throws java.io.IOException,
                    org.pqt.autorib.tokenizer.FormatException
Apply this instruction to the given light


process

public void process(InstrWReader rw,
                    org.pqt.autorib.rib.RIBObjectGroup group)
             throws java.io.IOException,
                    org.pqt.autorib.tokenizer.FormatException
Apply this instruction to an object group


checkShaderType

public boolean checkShaderType(java.lang.String s)
Checks to see if a string is a valid shader type ("Surface","Displacement" etc).