org.opensourcephysics.displayejs
Class InteractiveSurface

java.lang.Object
  extended by org.opensourcephysics.displayejs.AbstractInteractiveElement
      extended by org.opensourcephysics.displayejs.AbstractInteractiveTile
          extended by org.opensourcephysics.displayejs.InteractiveSurface
All Implemented Interfaces:
Drawable, Interactive, Measurable, Body, Drawable3D, HasDataObjectInterface, InteractionSource, InteractiveElement, Measurable3D

public class InteractiveSurface
extends AbstractInteractiveTile

This class implements a general 3D surface. The surface can be repositioned but cannot be resized.


Field Summary
 
Fields inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement
SENSIBILITY
 
Fields inherited from interface org.opensourcephysics.displayejs.InteractiveElement
TARGET_POSITION, TARGET_SIZE
 
Constructor Summary
InteractiveSurface()
          Default constructor
 
Method Summary
 void copyFrom(InteractiveElement _element)
           
 Interactive findInteractive(DrawingPanel _panel, int _xpix, int _ypix)
           
 void setData(double[][][] dataArray)
          Sets the data of the surface.
 
Methods inherited from class org.opensourcephysics.displayejs.AbstractInteractiveTile
draw, draw, drawQuickly, GetDisplacementFactor, getObjects3D, getXMax, getXMin, getYMax, getYMin, getZMax, getZMin, setColorBelowWhenEqual, setColorOriginAndDirection, setColorRegions, setDisplacementFactor, setDrawQuickInterior, setOrigin, setTransformation, toBodyFrame, toSpaceFrame
 
Methods inherited from class org.opensourcephysics.displayejs.AbstractInteractiveElement
addListener, canBeMeasured, getControl, getDataObject, getGroup, getResolution, getSensitivity, getSet, getSetIndex, getSizeX, getSizeY, getSizeZ, getStyle, getX, getY, getZ, initializeMemberOfSet, invokeActions, isEnabled, isEnabled, isGroupEnabled, isGroupEnabled, isMeasured, isVisible, needsToProject, removeAllListeners, removeListener, setControl, setDataObject, setEnabled, setEnabled, setGroup, setGroupEnabled, setGroupEnabled, setResolution, setSensitivity, setSet, setSizeX, setSizeXY, setSizeXYZ, setSizeY, setSizeZ, setVisible, setX, setXY, setXYZ, setY, setZ, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractiveSurface

public InteractiveSurface()
Default constructor

Method Detail

copyFrom

public void copyFrom(InteractiveElement _element)
Specified by:
copyFrom in interface InteractiveElement
Overrides:
copyFrom in class AbstractInteractiveTile

setData

public void setData(double[][][] dataArray)
Sets the data of the surface.

Parameters:
dataArray - the double[nu][nv][3] array of coordinates for the surface.

findInteractive

public Interactive findInteractive(DrawingPanel _panel,
                                   int _xpix,
                                   int _ypix)
Specified by:
findInteractive in interface Interactive
Overrides:
findInteractive in class AbstractInteractiveTile