|
||||||||||
| 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.DirectManipulationRendererJ3D
visad.bom.CurveManipulationRendererJ3D
CurveManipulationRendererJ3D 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 | |
(package private) float[] |
default_values
|
(package private) DisplayTupleType |
tuple
spatial DisplayTupleType other than DisplaySpatialCartesianTuple |
(package private) int |
which_point
|
(package private) int |
which_set
|
| Fields inherited from class visad.java3d.DirectManipulationRendererJ3D |
|
| Fields inherited from class visad.java3d.RendererJ3D |
|
| Fields inherited from class visad.DataRenderer |
enabled, pickCrawlToCursor |
| Constructor Summary | |
CurveManipulationRendererJ3D()
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 two of (XAxis, YAxis, ZAxis). |
|
CurveManipulationRendererJ3D(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 two of (XAxis, YAxis, ZAxis). |
|
CurveManipulationRendererJ3D(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 two of (XAxis, YAxis, ZAxis). |
|
| 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 CurveManipulationRendererJ3D |
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.java3d.DirectManipulationRendererJ3D |
clearScene, doTransform, isLegalTextureMap, setBranch, 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 |
| Field Detail |
float[] default_values
DisplayTupleType tuple
int which_set
int which_point
| Constructor Detail |
public CurveManipulationRendererJ3D()
public CurveManipulationRendererJ3D(int mmm,
int mmv)
mmm - mouse modifiersmmv - mouse mask to check.
public CurveManipulationRendererJ3D(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 RendererJ3Dtype - SetType of UnionSet.link - DataDisplayLink for DataReferenceparent - Parent ShadowType
VisADException - problem creating a VisAD object
RemoteException - problem creating a remote object
public void checkDirect()
throws VisADException,
RemoteException
checkDirect in class DirectManipulationRendererJ3DVisADException - 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 DirectManipulationRendererJ3Dx - point to add.
VisADException - error occured.public void setSpatialValues(float[][] spatial_values)
setSpatialValues in class DataRendererspatial_values - spatial values.
public float checkClose(double[] origin,
double[] direction)
checkClose in class DataRendererorigin - origin of raydirection - direction of the ray
public void release_direct()
release_direct in class DataRendererpublic void stop_direct()
stop_direct in class DataRenderer
public void drag_direct(VisADRay ray,
boolean first,
int mouseModifiers)
drag_direct in class DataRendererray - 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 DirectManipulationRendererJ3D
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 | |||||||||