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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.pqt.autorib.instr.InstrRequest
      extended byorg.pqt.autorib.instr.InstrBlockRequest
Direct Known Subclasses:
InstrAddRIB, InstrForRequest, InstrLights, InstrObjects, InstrRIB

public abstract class InstrBlockRequest
extends InstrRequest

This class is the superclass of all block style requests, extending InstrRequest. It includes methods to process lights and objects ( which check if the block is applies to the given light or object and if so iterate through the instructions in the block) and filter (which is called by process and returns true if the block should be executed for the given light or object)

Note that the read method of this class reads and stores all the instructions in the block


Field Summary
protected  java.util.Vector content
          Stores the instructions in the block
 
Fields inherited from class org.pqt.autorib.instr.InstrRequest
requestID, requestName
 
Constructor Summary
InstrBlockRequest()
           
 
Method Summary
protected  boolean filter(org.pqt.autorib.rib.RIBLight light)
          return true if the instructions in the block should be executed for the given light - return false by default - subclasses should override this if they handle lights
protected  boolean filter(org.pqt.autorib.rib.RIBObjectGroup object)
          return true if the instructions in the block should be executed for the given object - return false by default - subclasses should override if they handle objects
 void process(InstrWReader rw, org.pqt.autorib.rib.RIBLight light)
          execute the instructions in the block if the current light passes the filter (if any)
 void process(InstrWReader rw, org.pqt.autorib.rib.RIBObjectGroup object)
          execute the instructions in the block if appropriate
 
Methods inherited from class org.pqt.autorib.instr.InstrRequest
checkShaderType, read, readRequestName, write, writeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected java.util.Vector content
Stores the instructions in the block

Constructor Detail

InstrBlockRequest

public InstrBlockRequest()
Method Detail

process

public void process(InstrWReader rw,
                    org.pqt.autorib.rib.RIBLight light)
             throws org.pqt.autorib.tokenizer.FormatException,
                    java.io.IOException
execute the instructions in the block if the current light passes the filter (if any)

Overrides:
process in class InstrRequest

process

public void process(InstrWReader rw,
                    org.pqt.autorib.rib.RIBObjectGroup object)
             throws org.pqt.autorib.tokenizer.FormatException,
                    java.io.IOException
execute the instructions in the block if appropriate

Overrides:
process in class InstrRequest

filter

protected boolean filter(org.pqt.autorib.rib.RIBLight light)
                  throws org.pqt.autorib.tokenizer.FormatException
return true if the instructions in the block should be executed for the given light - return false by default - subclasses should override this if they handle lights


filter

protected boolean filter(org.pqt.autorib.rib.RIBObjectGroup object)
return true if the instructions in the block should be executed for the given object - return false by default - subclasses should override if they handle objects