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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.pqt.autorib.instr.InstrRequest
      extended byorg.pqt.autorib.instr.InstrAppendNumber

public class InstrAppendNumber
extends InstrRequest

class to handle instruction to append a parameter to a shader. It also contains a number of static utility functions which are called by the various map creating instructions (e.g shadowdist) to append map names etc to objects


Field Summary
private  java.lang.String name
          name of the parameter to replace
private  java.lang.String shaderType
           
 
Fields inherited from class org.pqt.autorib.instr.InstrRequest
requestID, requestName
 
Constructor Summary
InstrAppendNumber()
           
InstrAppendNumber(InstrWReader in)
           
 
Method Summary
 void doAppend(org.pqt.autorib.rib.RIBObjectGroup object, java.lang.String shaderType, java.lang.String paramName, int number)
          do the append to an object shader nb.
 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 object)
          Apply this instruction to an object group
 void read(InstrWReader in)
          read in the append request in the form Append type name
 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
 

Field Detail

shaderType

private java.lang.String shaderType

name

private java.lang.String name
name of the parameter to replace

Constructor Detail

InstrAppendNumber

public InstrAppendNumber()

InstrAppendNumber

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

read

public void read(InstrWReader in)
          throws java.io.IOException,
                 org.pqt.autorib.tokenizer.FormatException
read in the append request in the form Append type name

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

doAppend

public void doAppend(org.pqt.autorib.rib.RIBObjectGroup object,
                     java.lang.String shaderType,
                     java.lang.String paramName,
                     int number)
do the append to an object shader nb. static


process

public void process(InstrWReader rw,
                    org.pqt.autorib.rib.RIBLight light)
Description copied from class: InstrRequest
Apply this instruction to the given light

Overrides:
process in class InstrRequest

process

public void process(InstrWReader rw,
                    org.pqt.autorib.rib.RIBObjectGroup object)
Description copied from class: InstrRequest
Apply this instruction to an object group

Overrides:
process in class InstrRequest