Package uk.ac.starlink.ttools.plot2.geom
Class NavDecorations3D
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.geom.NavDecorations3D
-
public class NavDecorations3D extends java.lang.ObjectUtility class supplying visual feedback decorations for three-dimensional plot navigation.- Since:
- 24 Feb 2014
- Author:
- Mark Taylor
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Decorationcreate2dPanDecoration(CubeSurface csurf, java.awt.Point pos)Returns a decoration suitable for a drag pan operation in the two facing directions.static Decorationcreate2dZoomDecoration(CubeSurface csurf, java.awt.Point pos, double xf, double yf)Returns a decoration suitable for a drag zoom in the two facing directions.static DecorationcreateCenterDragDecoration(CubeSurface csurf, double zoomFactor, boolean[] useFlags)Returns a decoration suitable for a 3d drag zoom centered on the cube center.static DecorationcreateCenterWheelDecoration(CubeSurface csurf, double zoomFactor, boolean[] useFlags)Returns a decoration suitable for a wheel zoom centered on the cube center.static DecorationcreateRecenterDecoration(CubeSurface csurf, java.awt.Point pos)Returns a decoration to indicated recentering from a given screen position to the surface center.
-
-
-
Method Detail
-
createCenterDragDecoration
public static Decoration createCenterDragDecoration(CubeSurface csurf, double zoomFactor, boolean[] useFlags)
Returns a decoration suitable for a 3d drag zoom centered on the cube center.- Parameters:
csurf- plotting surfacezoomFactor- zoom factoruseFlags- 3-element array indicating if X,Y,Z directions are zoomed- Returns:
- decoration
-
createCenterWheelDecoration
public static Decoration createCenterWheelDecoration(CubeSurface csurf, double zoomFactor, boolean[] useFlags)
Returns a decoration suitable for a wheel zoom centered on the cube center.- Parameters:
csurf- plotting surfacezoomFactor- zoom factoruseFlags- 3-element array indicating if X,Y,Z directions are zoomed- Returns:
- decoration
-
create2dZoomDecoration
public static Decoration create2dZoomDecoration(CubeSurface csurf, java.awt.Point pos, double xf, double yf)
Returns a decoration suitable for a drag zoom in the two facing directions. The zoom directions are determined by logic in the supplied cube surface.- Parameters:
csurf- plotting surfacepos- screen position around which surface is zoomedxf- zoom factor in mostly-horizontal directionyf- zoom factor in mostly-vertical direction- Returns:
- decoration
-
create2dPanDecoration
public static Decoration create2dPanDecoration(CubeSurface csurf, java.awt.Point pos)
Returns a decoration suitable for a drag pan operation in the two facing directions. The pan directions are determined by logic in the supplied cube surface.- Parameters:
csurf- plotting surfacepos- reference position for drag
-
createRecenterDecoration
public static Decoration createRecenterDecoration(CubeSurface csurf, java.awt.Point pos)
Returns a decoration to indicated recentering from a given screen position to the surface center.- Parameters:
csurf- plotting surfacepos- reference position for new center
-
-