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

java.lang.Objectorg.pqt.autorib.rib.RIBGlobals
- public class RIBGlobals
- extends java.lang.Object
This class contains various globally needed definitions used to parse RIB in particular various arrays define valid requests, and identify which of these are options, attributes transforms and objects. To ensure AutoRIB recognises a new RIB request you must add it to the requests array. You must also define an integer constant corresponding to its position in the array. You should also include it in the arrays options, attributes, objects depending on which category the request is. Doing this will ensure that the request is recognised. For more sophisticated handling you will need to create a subclass of RIBRequest and edit the RIBReadRequest to ensure it is recognised. Note that should you need to define a new transform you will need to rewrite RIBWReader and Matrix to account for it.
| Field Summary | |
static int |
AREALIGHTSOURCE
|
static int |
ATMOSPHERE
|
static int |
ATTRIBUTE
|
static int |
ATTRIBUTEBEGIN
|
static int |
ATTRIBUTEEND
|
static int[] |
attributes
This contains an entry for every attribute |
static int |
BASIS
|
static int |
BLOBBY
|
static int |
BOUND
|
static int |
CLIPPING
|
static int |
CLIPPINGPLANE
|
static int |
COLOR
|
static int |
COLORSAMPLES
|
static int |
CONCATTRANSFORM
|
static int |
CONE
|
static int |
COORDINATESYSTEM
|
static int |
COORDSYSTRANSFORM
|
static int |
CROPWINDOW
|
static int |
CURVES
|
static int |
CYLINDER
|
static boolean |
DEBUGBOUNDINGBOX
a debug flag - if true substitute bounding boxes for primitives |
static boolean |
DEBUGOBJECTBOUNDINGBOX
a debug flag - if true substitute bounding boxes at the object level |
static boolean |
DEBUGOBJECTBOUNDINGWORLD
a debugflag - if true write object bounding boxes in world space |
static int |
DECLARE
|
static int |
DEFORMATION
|
static int |
DELAYEDREADARCHIVE
|
static int |
DEPTHOFFIELD
|
static int |
DETAIL
|
static int |
DETAILRANGE
|
static int |
DISK
|
static int |
DISPLACEMENT
|
static int |
DISPLAY
|
static int[] |
excludeinShadows
contains those requests that need not be output in shadow maps |
static int |
EXPOSURE
|
static int |
EXTERIOR
|
static int |
FORMAT
|
static int |
FRAMEASPECTRATIO
|
static int |
FRAMEBEGIN
|
static int |
FRAMEEND
|
static int |
GENERALPOLYGON
|
static int |
GEOMETRICAPPROXIMATION
|
static int |
HIDER
|
static int |
HYPERBOLOID
|
static int |
IDENTITY
|
static int |
ILLUMINATE
|
static int |
IMAGER
|
static int |
INTERIOR
|
static int |
LIGHTSOURCE
|
static int |
MAKEBUMP
|
static int |
MAKECUBEFACEENVIRONMENT
|
static int |
MAKELATLONGENVIRONMENT
|
static int |
MAKESHADOW
|
static int |
MAKETEXTURE
|
static java.util.HashMap |
map
used to spead searching requests array |
static int |
MATTE
|
static int |
MOTIONBEGIN
|
static int |
MOTIONEND
|
static int |
NUPATCH
|
static int |
OBJECTBEGIN
|
static int |
OBJECTEND
|
static int |
OBJECTINSTANCE
|
static int[] |
objects
This contains all items that are primitives |
static int |
OPACITY
|
static int |
OPTION
|
static int[] |
options
contains an entry for every option |
static int |
ORIENTATION
|
static int |
PARABOLOID
|
static int |
PATCH
|
static int |
PATCHMESH
|
static int |
PERSPECTIVE
|
static int |
PIXELFILTER
|
static int |
PIXELSAMPLES
|
static int |
PIXELVARIANCE
|
static int |
POINTS
|
static int |
POINTSGENERALPOLYGONS
|
static int |
POINTSPOLYGONS
|
static int |
POLYGON
|
static int |
PROCEDURAL
|
static int |
PROJECTION
|
static int |
QUANTIZE
|
static int |
READARCHIVE
|
static int |
RELATIVEDETAIL
|
static java.lang.String[] |
requests
|
static int |
REVERSEORIENTATION
|
static int |
ROTATE
|
static int |
SCALE
|
static int |
SCREENWINDOW
|
static int |
SHADINGINTERPOLATION
|
static int |
SHADINGRATE
|
static int |
SHUTTER
|
static int |
SIDES
|
static int |
SKEW
|
static int |
SOLIDBEGIN
|
static int |
SOLIDEND
|
static int |
SPHERE
|
static int |
SUBDIVISIONMESH
|
static int |
SURFACE
|
static int |
TEXTURECOORDINATES
|
static int |
TORUS
|
static int |
TRANSFORM
|
static int |
TRANSFORMBEGIN
|
static int |
TRANSFORMEND
|
static int |
TRANSFORMPOINTS
|
static int[] |
transforms
contains all valid transforms |
static int |
TRANSLATE
|
static int |
TRIMCURVE
|
static int |
VERSION
|
static int |
WORLDBEGIN
|
static int |
WORLDEND
|
| Constructor Summary | |
RIBGlobals()
|
|
| Method Summary | |
static boolean |
arraySearch(int requestID,
int[] list)
Check to see if a particular requestID is in an array |
static boolean[] |
createFilter(int[] fill,
boolean setTo)
This function creates a boolean array with one entry for every valid RIB request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
requests
public static final java.lang.String[] requests
AREALIGHTSOURCE
public static final int AREALIGHTSOURCE
- See Also:
- Constant Field Values
ATMOSPHERE
public static final int ATMOSPHERE
- See Also:
- Constant Field Values
ATTRIBUTE
public static final int ATTRIBUTE
- See Also:
- Constant Field Values
ATTRIBUTEBEGIN
public static final int ATTRIBUTEBEGIN
- See Also:
- Constant Field Values
ATTRIBUTEEND
public static final int ATTRIBUTEEND
- See Also:
- Constant Field Values
BASIS
public static final int BASIS
- See Also:
- Constant Field Values
BOUND
public static final int BOUND
- See Also:
- Constant Field Values
CLIPPING
public static final int CLIPPING
- See Also:
- Constant Field Values
COLOR
public static final int COLOR
- See Also:
- Constant Field Values
COLORSAMPLES
public static final int COLORSAMPLES
- See Also:
- Constant Field Values
CONCATTRANSFORM
public static final int CONCATTRANSFORM
- See Also:
- Constant Field Values
CONE
public static final int CONE
- See Also:
- Constant Field Values
COORDINATESYSTEM
public static final int COORDINATESYSTEM
- See Also:
- Constant Field Values
CROPWINDOW
public static final int CROPWINDOW
- See Also:
- Constant Field Values
CYLINDER
public static final int CYLINDER
- See Also:
- Constant Field Values
DECLARE
public static final int DECLARE
- See Also:
- Constant Field Values
DEFORMATION
public static final int DEFORMATION
- See Also:
- Constant Field Values
DEPTHOFFIELD
public static final int DEPTHOFFIELD
- See Also:
- Constant Field Values
DETAIL
public static final int DETAIL
- See Also:
- Constant Field Values
DETAILRANGE
public static final int DETAILRANGE
- See Also:
- Constant Field Values
DISK
public static final int DISK
- See Also:
- Constant Field Values
DISPLACEMENT
public static final int DISPLACEMENT
- See Also:
- Constant Field Values
DISPLAY
public static final int DISPLAY
- See Also:
- Constant Field Values
EXPOSURE
public static final int EXPOSURE
- See Also:
- Constant Field Values
EXTERIOR
public static final int EXTERIOR
- See Also:
- Constant Field Values
FORMAT
public static final int FORMAT
- See Also:
- Constant Field Values
FRAMEASPECTRATIO
public static final int FRAMEASPECTRATIO
- See Also:
- Constant Field Values
FRAMEBEGIN
public static final int FRAMEBEGIN
- See Also:
- Constant Field Values
FRAMEEND
public static final int FRAMEEND
- See Also:
- Constant Field Values
GENERALPOLYGON
public static final int GENERALPOLYGON
- See Also:
- Constant Field Values
GEOMETRICAPPROXIMATION
public static final int GEOMETRICAPPROXIMATION
- See Also:
- Constant Field Values
HIDER
public static final int HIDER
- See Also:
- Constant Field Values
HYPERBOLOID
public static final int HYPERBOLOID
- See Also:
- Constant Field Values
IDENTITY
public static final int IDENTITY
- See Also:
- Constant Field Values
ILLUMINATE
public static final int ILLUMINATE
- See Also:
- Constant Field Values
IMAGER
public static final int IMAGER
- See Also:
- Constant Field Values
INTERIOR
public static final int INTERIOR
- See Also:
- Constant Field Values
LIGHTSOURCE
public static final int LIGHTSOURCE
- See Also:
- Constant Field Values
MAKEBUMP
public static final int MAKEBUMP
- See Also:
- Constant Field Values
MAKECUBEFACEENVIRONMENT
public static final int MAKECUBEFACEENVIRONMENT
- See Also:
- Constant Field Values
MAKELATLONGENVIRONMENT
public static final int MAKELATLONGENVIRONMENT
- See Also:
- Constant Field Values
MAKESHADOW
public static final int MAKESHADOW
- See Also:
- Constant Field Values
MAKETEXTURE
public static final int MAKETEXTURE
- See Also:
- Constant Field Values
MATTE
public static final int MATTE
- See Also:
- Constant Field Values
MOTIONBEGIN
public static final int MOTIONBEGIN
- See Also:
- Constant Field Values
MOTIONEND
public static final int MOTIONEND
- See Also:
- Constant Field Values
NUPATCH
public static final int NUPATCH
- See Also:
- Constant Field Values
OBJECTBEGIN
public static final int OBJECTBEGIN
- See Also:
- Constant Field Values
OBJECTEND
public static final int OBJECTEND
- See Also:
- Constant Field Values
OBJECTINSTANCE
public static final int OBJECTINSTANCE
- See Also:
- Constant Field Values
OPACITY
public static final int OPACITY
- See Also:
- Constant Field Values
OPTION
public static final int OPTION
- See Also:
- Constant Field Values
ORIENTATION
public static final int ORIENTATION
- See Also:
- Constant Field Values
PARABOLOID
public static final int PARABOLOID
- See Also:
- Constant Field Values
PATCH
public static final int PATCH
- See Also:
- Constant Field Values
PATCHMESH
public static final int PATCHMESH
- See Also:
- Constant Field Values
PERSPECTIVE
public static final int PERSPECTIVE
- See Also:
- Constant Field Values
PIXELFILTER
public static final int PIXELFILTER
- See Also:
- Constant Field Values
PIXELSAMPLES
public static final int PIXELSAMPLES
- See Also:
- Constant Field Values
PIXELVARIANCE
public static final int PIXELVARIANCE
- See Also:
- Constant Field Values
POINTSGENERALPOLYGONS
public static final int POINTSGENERALPOLYGONS
- See Also:
- Constant Field Values
POINTSPOLYGONS
public static final int POINTSPOLYGONS
- See Also:
- Constant Field Values
POLYGON
public static final int POLYGON
- See Also:
- Constant Field Values
PROCEDURAL
public static final int PROCEDURAL
- See Also:
- Constant Field Values
PROJECTION
public static final int PROJECTION
- See Also:
- Constant Field Values
QUANTIZE
public static final int QUANTIZE
- See Also:
- Constant Field Values
RELATIVEDETAIL
public static final int RELATIVEDETAIL
- See Also:
- Constant Field Values
REVERSEORIENTATION
public static final int REVERSEORIENTATION
- See Also:
- Constant Field Values
ROTATE
public static final int ROTATE
- See Also:
- Constant Field Values
SCREENWINDOW
public static final int SCREENWINDOW
- See Also:
- Constant Field Values
SHADINGINTERPOLATION
public static final int SHADINGINTERPOLATION
- See Also:
- Constant Field Values
SHADINGRATE
public static final int SHADINGRATE
- See Also:
- Constant Field Values
SHUTTER
public static final int SHUTTER
- See Also:
- Constant Field Values
SIDES
public static final int SIDES
- See Also:
- Constant Field Values
SOLIDBEGIN
public static final int SOLIDBEGIN
- See Also:
- Constant Field Values
SOLIDEND
public static final int SOLIDEND
- See Also:
- Constant Field Values
SPHERE
public static final int SPHERE
- See Also:
- Constant Field Values
SURFACE
public static final int SURFACE
- See Also:
- Constant Field Values
TEXTURECOORDINATES
public static final int TEXTURECOORDINATES
- See Also:
- Constant Field Values
TORUS
public static final int TORUS
- See Also:
- Constant Field Values
TRANSFORM
public static final int TRANSFORM
- See Also:
- Constant Field Values
TRANSFORMPOINTS
public static final int TRANSFORMPOINTS
- See Also:
- Constant Field Values
TRANSLATE
public static final int TRANSLATE
- See Also:
- Constant Field Values
TRIMCURVE
public static final int TRIMCURVE
- See Also:
- Constant Field Values
WORLDBEGIN
public static final int WORLDBEGIN
- See Also:
- Constant Field Values
WORLDEND
public static final int WORLDEND
- See Also:
- Constant Field Values
READARCHIVE
public static final int READARCHIVE
- See Also:
- Constant Field Values
COORDSYSTRANSFORM
public static final int COORDSYSTRANSFORM
- See Also:
- Constant Field Values
CURVES
public static final int CURVES
- See Also:
- Constant Field Values
POINTS
public static final int POINTS
- See Also:
- Constant Field Values
SUBDIVISIONMESH
public static final int SUBDIVISIONMESH
- See Also:
- Constant Field Values
BLOBBY
public static final int BLOBBY
- See Also:
- Constant Field Values
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
SCALE
public static final int SCALE
- See Also:
- Constant Field Values
SKEW
public static final int SKEW
- See Also:
- Constant Field Values
TRANSFORMBEGIN
public static final int TRANSFORMBEGIN
- See Also:
- Constant Field Values
TRANSFORMEND
public static final int TRANSFORMEND
- See Also:
- Constant Field Values
CLIPPINGPLANE
public static final int CLIPPINGPLANE
- See Also:
- Constant Field Values
DELAYEDREADARCHIVE
public static final int DELAYEDREADARCHIVE
- See Also:
- Constant Field Values
options
public static final int[] options
- contains an entry for every option
attributes
public static int[] attributes
- This contains an entry for every attribute
excludeinShadows
public static int[] excludeinShadows
- contains those requests that need not be output in shadow maps
transforms
public static int[] transforms
- contains all valid transforms
objects
public static int[] objects
- This contains all items that are primitives
map
public static java.util.HashMap map
- used to spead searching requests array
DEBUGBOUNDINGBOX
public static final boolean DEBUGBOUNDINGBOX
- a debug flag - if true substitute bounding boxes for primitives
- See Also:
- Constant Field Values
DEBUGOBJECTBOUNDINGBOX
public static final boolean DEBUGOBJECTBOUNDINGBOX
- a debug flag - if true substitute bounding boxes at the object level
- See Also:
- Constant Field Values
DEBUGOBJECTBOUNDINGWORLD
public static final boolean DEBUGOBJECTBOUNDINGWORLD
- a debugflag - if true write object bounding boxes in world space
- See Also:
- Constant Field Values
| Constructor Detail |
RIBGlobals
public RIBGlobals()
| Method Detail |
createFilter
public static boolean[] createFilter(int[] fill,
boolean setTo)
- This function creates a boolean array with one entry for every valid
RIB request. The array is populated by looking at the parameter fill. For
each request in fill the corresponding member of the boolean array is set
to the value of setTo, other members of the boolean array are set to !setTo.
arraySearch
public static boolean arraySearch(int requestID,
int[] list)
- Check to see if a particular requestID is in an array
|
|||||||||
| Home >> All >> org >> pqt >> autorib >> [ rib overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.pqt.autorib.rib.RIBGlobals