|
||||||||||
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.CurveManipulationRendererJ2D
public class CurveManipulationRendererJ2D
CurveManipulationRendererJ2D is the VisAD class for direct manipulation rendering of curves under Java2D, where curves are represented by UnionSets of Gridded2DSets with manifold dimension = 2
Field Summary |
---|
Fields inherited from class visad.DataRenderer |
---|
enabled, pickCrawlToCursor |
Constructor Summary | |
---|---|
CurveManipulationRendererJ2D()
Construct a DataRenderer that supports direct manipulation of representations of curves by UnionSets of Gridded2DSets with manifold dimension = 2; the Set's domain RealTypes must be mapped to (XAxis, YAxis); |
|
CurveManipulationRendererJ2D(int mmm,
int mmv)
Construct a DataRenderer that supports direct manipulation of representations of curves by UnionSets of Gridded2DSets with manifold dimension = 2; the Set's domain RealTypes must be mapped to (XAxis, YAxis). |
|
CurveManipulationRendererJ2D(int mmm,
int mmv,
boolean oo)
Construct a DataRenderer that supports direct manipulation of representations of curves by UnionSets of Gridded2DSets with manifold dimension = 2; the Set's domain RealTypes must be mapped to (XAxis, YAxis). |
Method Summary | |
---|---|
void |
addPoint(float[] x)
Add a point to the data. |
float |
checkClose(double[] origin,
double[] direction)
Find minimum distance from ray to spatialValues |
void |
checkDirect()
Check whether direct manipulation is possible for this Renderer. |
Object |
clone()
Clone this renderer. |
void |
drag_direct(VisADRay ray,
boolean first,
int mouseModifiers)
This method is called when direct manipulation is occuring. |
String |
getWhyNotDirect()
Get the error messages on why direct manipulation is not possible. |
static void |
main(String[] args)
test CurveManipulationRendererJ2D |
ShadowType |
makeShadowSetType(SetType type,
DataDisplayLink link,
ShadowType parent)
Create a ShadowType based on the SetType |
void |
release_direct()
Mouse button released, ending direct manipulation. |
void |
setSpatialValues(float[][] spatial_values)
Set spatialValues from ShadowType.doTransform |
void |
stop_direct()
Stop direct manipulation. |
Methods inherited from class visad.java2d.DirectManipulationRendererJ2D |
---|
doTransform, getExtraBranch, isLegalTextureMap, setLinks |
Methods inherited from class visad.java2d.RendererJ2D |
---|
clearBranch, clearScene, doAction, makeShadowFunctionType, makeShadowRealTupleType, makeShadowRealType, makeShadowTextType, makeShadowTupleType, toggle |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurveManipulationRendererJ2D()
public CurveManipulationRendererJ2D(int mmm, int mmv)
mmm
- mouse modifiersmmv
- mouse mask to check.public CurveManipulationRendererJ2D(int mmm, int mmv, boolean oo)
mmm
- mouse modifiersmmv
- mouse mask to check.oo
- if true, only one curve should exist at any one time.Method Detail |
---|
public ShadowType makeShadowSetType(SetType type, DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
makeShadowSetType
in class RendererJ2D
type
- SetType of UnionSet.link
- DataDisplayLink for DataReferenceparent
- Parent ShadowType
VisADException
- problem creating a VisAD object
RemoteException
- problem creating a remote objectpublic void checkDirect() throws VisADException, RemoteException
checkDirect
in class DirectManipulationRendererJ2D
VisADException
- problem accessing information
RemoteException
- problem accessing information for remote objectspublic String getWhyNotDirect()
getWhyNotDirect
in class DataRenderer
public void addPoint(float[] x) throws VisADException
addPoint
in class DirectManipulationRendererJ2D
x
- point to add.
VisADException
- error occured.public void setSpatialValues(float[][] spatial_values)
setSpatialValues
in class DataRenderer
spatial_values
- spatial values.public float checkClose(double[] origin, double[] direction)
checkClose
in class DataRenderer
origin
- origin of raydirection
- direction of the ray
public void release_direct()
release_direct
in class DataRenderer
public void stop_direct()
stop_direct
in class DataRenderer
public void drag_direct(VisADRay ray, boolean first, int mouseModifiers)
drag_direct
in class DataRenderer
ray
- ray to dragging point of mousefirst
- true if this is the first point.mouseModifiers
- modifiers used with mouse click.public 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 |