|
|||||||||
| Home >> All >> org >> pqt >> autorib >> [ instr overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.pqt.autorib.instr
Class InstrState

java.lang.Objectorg.pqt.autorib.instr.InstrState
- All Implemented Interfaces:
- java.lang.Cloneable
- public class InstrState
- extends java.lang.Object
- implements java.lang.Cloneable
- extends java.lang.Object
A class for storing state information for an instructions file, such as map format and the current list of objects to omit from maps. State information is local to a block, and so is maintained by the InstrWReader as a stack of instances of InstrState
| Field Summary | |
double |
defaultConeAngle
the default cone angle to use for calculating spotlight shadow maps |
java.lang.String |
mapDisplayName
use this name, rather than the default map name, for the map if not blank |
java.lang.String |
mapDisplayType
used in the Display rib call in generating the map |
java.lang.String |
mapFilter
the filter to use in generating the map |
int |
mapFilterx
filter width x |
int |
mapFiltery
filter width y |
int |
mapFormatx
the x size of the map to be generated |
int |
mapFormaty
the y size of the map to be generated |
float |
mapMult
if not -1 this specifies the map format as a proportion of the image format specified in the rib |
int |
mapSamplesx
number of samples to use in map generation |
int |
mapSamplesy
the number of samples in the y direction |
java.util.Vector |
omitNames
the list of object names to be omitted from the map render |
| Constructor Summary | |
InstrState()
|
|
| Method Summary | |
void |
calcFormat(int x,
int y)
calculate the format leaving the result in mapFormatx, mapFormaty that is to say find the square map, whose dimensions are a power of two which is the smallest to be as large as the given dimensions. |
java.lang.Object |
clone()
standard clone method |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
mapFormatx
public int mapFormatx
- the x size of the map to be generated
mapFormaty
public int mapFormaty
- the y size of the map to be generated
mapMult
public float mapMult
- if not -1 this specifies the map format as a proportion of the
image format specified in the rib
defaultConeAngle
public double defaultConeAngle
- the default cone angle to use for calculating spotlight shadow maps
omitNames
public java.util.Vector omitNames
- the list of object names to be omitted from the map render
mapFilter
public java.lang.String mapFilter
- the filter to use in generating the map
mapFilterx
public int mapFilterx
- filter width x
mapFiltery
public int mapFiltery
- filter width y
mapSamplesx
public int mapSamplesx
- number of samples to use in map generation
mapSamplesy
public int mapSamplesy
- the number of samples in the y direction
mapDisplayType
public java.lang.String mapDisplayType
- used in the Display rib call in generating the map
mapDisplayName
public java.lang.String mapDisplayName
- use this name, rather than the default map name, for the map
if not blank
| Constructor Detail |
InstrState
public InstrState()
| Method Detail |
clone
public java.lang.Object clone()
- standard clone method
calcFormat
public void calcFormat(int x,
int y)
- calculate the format leaving the result in mapFormatx, mapFormaty
that is to say find the square map, whose dimensions are a power
of two which is the smallest to be as large as the given
dimensions. This is needed because for most Renderman renderers
maps must be square, and have dimensions that are a factor of two
|
|||||||||
| Home >> All >> org >> pqt >> autorib >> [ instr overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.pqt.autorib.instr.InstrState