|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.DataRenderer
visad.java3d.RendererJ3D
visad.java3d.DefaultRendererJ3D
visad.bom.TextureFillRendererJ3D
TextureFillRendererJ3D is the VisAD class for rendering Sets (usually Irregular2DSets) filled with a cross hatch pattern via texture mapping
| Field Summary |
| Fields inherited from class visad.java3d.DefaultRendererJ3D |
|
| Fields inherited from class visad.java3d.RendererJ3D |
|
| Fields inherited from class visad.DataRenderer |
enabled, pickCrawlToCursor |
| Constructor Summary | |
TextureFillRendererJ3D()
|
|
| Method Summary | |
Object |
clone()
|
javax.media.j3d.BranchGroup |
doTransform()
create a BranchGroup scene graph for Data in links[0] |
float |
getScale()
|
boolean |
getSmooth()
|
int[] |
getTexture()
|
int |
getTextureHeight()
|
int |
getTextureWidth()
|
static boolean |
isRendererUsable(MathType type,
ScalarMap[] maps)
determine whether the given MathType and collection of ScalarMaps meets the criteria to use TextureFillRendererJ3D. |
static boolean |
isSetType(MathType type)
determine whether the given MathType is usable with TextureFillRendererJ3D |
static void |
main(String[] args)
run 'java visad.bom.TextureFillRendererJ3D smooth' |
ShadowType |
makeShadowSetType(SetType type,
DataDisplayLink link,
ShadowType parent)
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowSetType; ShadowType trees are constructed that 'shadow' the MathType trees of Data to be depicted, via recursive calls to buildShadowType() methods of MathType sub-classes, to DataRenderer.makeShadow*Type() methods, to Shadow*Type constructors, then back to buildShadowType() methods; the recursive call chain is initiated by DataDisplayLink.prepareData() calls to buildShadowType() methods of MathType sub-classes; |
void |
setScale(float s)
texture pattern will repreat 2 * s times across box |
void |
setSmooth(boolean s)
set s = true to smooth texture |
void |
setTexture(int w,
int h,
int[] t)
define texture pattern as a w * h rectangle of ints (RGB values); note w and h must be powers of 2, and t.length must be w * h |
| Methods inherited from class visad.java3d.DefaultRendererJ3D |
addSwitch, clearScene, getLink, setLinks |
| Methods inherited from class visad.java3d.RendererJ3D |
clearBranch, doAction, flush, getBranch, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowTextType, makeShadowTupleType, setBranchEarly, toggle |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TextureFillRendererJ3D()
| Method Detail |
public void setScale(float s)
public float getScale()
public void setTexture(int w,
int h,
int[] t)
throws VisADException
VisADExceptionpublic int getTextureWidth()
public int getTextureHeight()
public int[] getTexture()
public void setSmooth(boolean s)
public boolean getSmooth()
public static boolean isSetType(MathType type)
public static boolean isRendererUsable(MathType type,
ScalarMap[] maps)
throws VisADException
VisADException
public ShadowType makeShadowSetType(SetType type,
DataDisplayLink link,
ShadowType parent)
throws VisADException,
RemoteException
DataRenderer
makeShadowSetType in class RendererJ3DVisADException
RemoteException
public javax.media.j3d.BranchGroup doTransform()
throws VisADException,
RemoteException
DefaultRendererJ3D
doTransform in class DefaultRendererJ3DVisADException
RemoteExceptionpublic Object clone()
clone in class DefaultRendererJ3D
public static void main(String[] args)
throws VisADException,
RemoteException,
IOException
VisADException
RemoteException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||