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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.pqt.autorib.instr.InstrRequest
      extended byorg.pqt.autorib.instr.InstrBlockRequest
          extended byorg.pqt.autorib.instr.InstrAddRIB

public class InstrAddRIB
extends InstrBlockRequest

Add RIB to an existing object or light


Field Summary
 
Fields inherited from class org.pqt.autorib.instr.InstrBlockRequest
content
 
Fields inherited from class org.pqt.autorib.instr.InstrRequest
requestID, requestName
 
Constructor Summary
InstrAddRIB(InstrWReader in)
           
 
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)
          add RIB to a light
 void process(InstrWReader rw, org.pqt.autorib.rib.RIBObjectGroup object)
          add RIB that will be output before the beginning of the object, checking first that it is not an attribute ('Color' 'Opacity' etc) in which case it overrides the existing attribute
 void read(InstrWReader in)
          read the instruction call and store it
 void write(java.io.Writer out)
          write out this instruction and its parameters - used for debugging only
 
Methods inherited from class org.pqt.autorib.instr.InstrRequest
checkShaderType, readRequestName, writeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrAddRIB

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

read

public final void read(InstrWReader in)
                throws java.io.IOException,
                       org.pqt.autorib.tokenizer.FormatException
Description copied from class: InstrRequest
read the instruction call and store it

Specified by:
read in class InstrRequest

write

public void write(java.io.Writer out)
           throws java.io.IOException
Description copied from class: InstrRequest
write out this instruction and its parameters - used for debugging only

Specified by:
write in class InstrRequest

process

public void process(InstrWReader rw,
                    org.pqt.autorib.rib.RIBLight light)
             throws org.pqt.autorib.tokenizer.FormatException,
                    java.io.IOException
add RIB to a light

Overrides:
process in class InstrBlockRequest

process

public void process(InstrWReader rw,
                    org.pqt.autorib.rib.RIBObjectGroup object)
add RIB that will be output before the beginning of the object, checking first that it is not an attribute ('Color' 'Opacity' etc) in which case it overrides the existing attribute

Overrides:
process in class InstrBlockRequest

filter

protected boolean filter(org.pqt.autorib.rib.RIBLight light)
                  throws org.pqt.autorib.tokenizer.FormatException
Description copied from class: InstrBlockRequest
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

Overrides:
filter in class InstrBlockRequest

filter

protected boolean filter(org.pqt.autorib.rib.RIBObjectGroup object)
Description copied from class: InstrBlockRequest
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

Overrides:
filter in class InstrBlockRequest