|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.DataRenderer visad.java2d.RendererJ2D visad.java2d.DirectManipulationRendererJ2D visad.bom.BarbManipulationRendererJ2D
public class BarbManipulationRendererJ2D
BarbManipulationRendererJ2D is the VisAD class for direct manipulation rendering of wind barbs under Java2D
Field Summary |
---|
Fields inherited from class visad.DataRenderer |
---|
enabled, pickCrawlToCursor |
Constructor Summary | |
---|---|
BarbManipulationRendererJ2D()
this DataRenderer supports direct manipulation for Tuple representations of wind barbs; two of the Tuple's Real components must be mapped to Flow1X and Flow1Y, or Flow2X and Flow2Y |
Method Summary | |
---|---|
void |
addPoint(float[] x)
add point for temporary rendering; intended to be over-ridden by graphics-API-specific extensions of DataRenderer |
float |
checkClose(double[] origin,
double[] direction)
find minimum distance from ray to barb tail |
void |
checkDirect()
set isDirectManipulation = true if this DataRenderer supports direct manipulation for the MathType of its linked Data, and for its ScalarMaps; intended to be over-ridden by extensions of DataRenderer |
Object |
clone()
|
void |
drag_direct(VisADRay ray,
boolean first,
int mouseModifiers)
modify Data values based on direct manipulation mouse actions |
boolean |
getKnotsConvert()
|
String |
getWhyNotDirect()
|
static void |
main(String[] args)
test BarbManipulationRendererJ2D |
ShadowType |
makeShadowFunctionType(FunctionType type,
DataDisplayLink link,
ShadowType parent)
factory method for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowFunctionType; 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; |
ShadowType |
makeShadowRealTupleType(RealTupleType type,
DataDisplayLink link,
ShadowType parent)
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealTupleType; 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; |
ShadowType |
makeShadowRealType(RealType type,
DataDisplayLink link,
ShadowType parent)
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowRealType; 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; |
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; |
ShadowType |
makeShadowTupleType(TupleType type,
DataDisplayLink link,
ShadowType parent)
factory for constructing a subclass of ShadowType appropriate for the graphics API, that also adapts ShadowTupleType; 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; |
float[] |
makeVector(boolean south,
float x,
float y,
float z,
float scale,
float pt_size,
float f0,
float f1,
float[] vx,
float[] vy,
float[] vz,
int[] numv,
float[] tx,
float[] ty,
float[] tz,
int[] numt)
dummy for BarbRenderer |
void |
release_direct()
mouse button released, ending direct manipulation |
void |
setKnotsConvert(boolean enable)
|
void |
setSpatialValues(float[][] spatial_values)
set spatialValues from ShadowType.doTransform |
void |
setVectorSpatialValues(float[] mbarb,
int which)
|
void |
stop_direct()
discontinue manipulating Data values for current mouse drag; (this only applies to the current mouse drag and is not a general disable) |
Methods inherited from class visad.java2d.DirectManipulationRendererJ2D |
---|
doTransform, getExtraBranch, isLegalTextureMap, setLinks |
Methods inherited from class visad.java2d.RendererJ2D |
---|
clearBranch, clearScene, doAction, makeShadowTextType, toggle |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BarbManipulationRendererJ2D()
Method Detail |
---|
public ShadowType makeShadowFunctionType(FunctionType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
DataRenderer
makeShadowFunctionType
in class RendererJ2D
type
- FunctionType that returned ShadowType will shadowlink
- DataDisplayLink linking Data to be depictedparent
- parent in ShadowType tree structure
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic ShadowType makeShadowRealTupleType(RealTupleType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
DataRenderer
makeShadowRealTupleType
in class RendererJ2D
type
- FunctionType that returned ShadowType will shadowlink
- DataDisplayLink linking Data to be depictedparent
- parent in ShadowType tree structure
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic ShadowType makeShadowRealType(RealType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
DataRenderer
makeShadowRealType
in class RendererJ2D
type
- FunctionType that returned ShadowType will shadowlink
- DataDisplayLink linking Data to be depictedparent
- parent in ShadowType tree structure
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic ShadowType makeShadowSetType(SetType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
DataRenderer
makeShadowSetType
in class RendererJ2D
type
- FunctionType that returned ShadowType will shadowlink
- DataDisplayLink linking Data to be depictedparent
- parent in ShadowType tree structure
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic ShadowType makeShadowTupleType(TupleType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
DataRenderer
makeShadowTupleType
in class RendererJ2D
type
- FunctionType that returned ShadowType will shadowlink
- DataDisplayLink linking Data to be depictedparent
- parent in ShadowType tree structure
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic float[] makeVector(boolean south, float x, float y, float z, float scale, float pt_size, float f0, float f1, float[] vx, float[] vy, float[] vz, int[] numv, float[] tx, float[] ty, float[] tz, int[] numt)
makeVector
in interface BarbRenderer
public void setKnotsConvert(boolean enable)
setKnotsConvert
in interface BarbRenderer
public boolean getKnotsConvert()
getKnotsConvert
in interface BarbRenderer
public String getWhyNotDirect()
getWhyNotDirect
in class DataRenderer
public void checkDirect() throws VisADException, RemoteException
DataRenderer
checkDirect
in class DirectManipulationRendererJ2D
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void addPoint(float[] x) throws VisADException
DataRenderer
addPoint
in class DirectManipulationRendererJ2D
x
- 3-D graphics coordinates of point to render
VisADException
- a VisAD error occurredpublic void setVectorSpatialValues(float[] mbarb, int which)
public void setSpatialValues(float[][] spatial_values)
setSpatialValues
in class DataRenderer
spatial_values
- float[3][number_of_points] of 3-D locations
of depiction pointspublic float checkClose(double[] origin, double[] direction)
checkClose
in class DataRenderer
origin
- 3-D origin of raydirection
- 3-D direction of ray
public void release_direct()
release_direct
in class DataRenderer
public void stop_direct()
DataRenderer
stop_direct
in class DataRenderer
public void drag_direct(VisADRay ray, boolean first, int mouseModifiers)
DataRenderer
drag_direct
in class DataRenderer
ray
- 3-D graphics coordinates of ray corresponding to
mouse screen locationfirst
- flag if this is first call (for MouseEvent.MOUSE_PRESSED,
not for MouseEvent.MOUSE_DRAGGED)mouseModifiers
- value of InputEvent.getModifiers() from
most recent direct manipulation mouse clickpublic Object clone()
clone
in class DirectManipulationRendererJ2D
public static void main(String[] args) throws VisADException, RemoteException
VisADException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |