Class SurfaceTool
java.lang.Object
org.openscience.jmol.app.surfacetool.SurfaceTool
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float
private int
private String[]
private float
private final javajs.util.V3
private boolean
private final javajs.util.P3
(package private) static final int
(package private) static final int
private boolean
(package private) static final int
private SurfaceToolGUI
private boolean
private final javajs.util.P3
private final javajs.util.P3
private float
private float
(package private) static final int
private boolean
private Slice
private final List
<SurfaceStatus> private float
private float
(package private) static final int
(package private) boolean
private boolean
private boolean
protected JmolViewer
-
Constructor Summary
ConstructorsConstructorDescriptionSurfaceTool
(JmolViewer vwr, HistoryFile hfile, String winName, boolean useGUI) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
(package private) BoxInfo
checkMeshBB
(Shape[] shapes, int kind, BoxInfo box) private void
private void
drawSlicePlane
(javajs.util.SB cmd, int side, boolean on) (package private) float
(package private) int
(package private) String[]
(package private) javajs.util.V3
(package private) boolean
getCapOn()
(package private) javajs.util.P3
(package private) boolean
(package private) javajs.util.P3
(package private) javajs.util.P3
(package private) float
(package private) float
(package private) javajs.util.P4
(package private) float
(package private) float
(package private) float
(package private) boolean
private void
(package private) void
setAngleUnits
(int units) (package private) void
setCapOn
(boolean b) (package private) void
setGhostOn
(boolean b) (package private) void
setSlice
(float angleXY, float anglefromZ, float position, float thickness) Defines a slice within which isosurfaces (and in future? atoms) are displayed.(package private) void
setSliceAnglefromZ
(float angle) (package private) void
setSliceAngleXY
(float angle) (package private) void
setSlicePosition
(float where) (package private) void
setSliceThickness
(float width) (package private) void
private void
(package private) void
setUseMolecular
(boolean on) (package private) void
showSliceBoundaryPlanes
(boolean onOrOff) (package private) void
sliceObject
(String objectName, int kind) private void
syncDone()
void
toFront()
(package private) void
private void
updateMeshInfo
(Shape[] shapes, int kind) (package private) void
private void
-
Field Details
-
gui
-
useGUI
boolean useGUI -
vwr
-
negCorner
private final javajs.util.P3 negCorner -
posCorner
private final javajs.util.P3 posCorner -
center
private final javajs.util.P3 center -
boxVec
private final javajs.util.V3 boxVec -
surfaces
-
DEGREES
static final int DEGREES- See Also:
-
RADIANS
static final int RADIANS- See Also:
-
GRADIANS
static final int GRADIANS- See Also:
-
CIRCLE_FRACTION
static final int CIRCLE_FRACTION- See Also:
-
UNITS_PI
static final int UNITS_PI- See Also:
-
angleUnits
private int angleUnits -
angleUnitsList
-
angleXY
private float angleXY -
anglefromZ
private float anglefromZ -
positionMin
private float positionMin -
position
private float position -
thickness
private float thickness -
thicknessMax
private float thicknessMax -
slice
-
leftOn
private boolean leftOn -
rightOn
private boolean rightOn -
ghostOn
private boolean ghostOn -
capOn
private boolean capOn -
useMolecular
private boolean useMolecular -
usePercent
private boolean usePercent
-
-
Constructor Details
-
SurfaceTool
-
-
Method Details
-
toFront
public void toFront() -
toFrontOrGotFocus
void toFrontOrGotFocus() -
chooseBestBoundBox
private void chooseBestBoundBox() -
checkMeshBB
-
setSurfaceToolParam
void setSurfaceToolParam() -
updateSurfaceInfo
private void updateSurfaceInfo() -
setSyncStarting
private void setSyncStarting() -
syncDone
private void syncDone() -
updateMeshInfo
-
checkMesh
-
setAngleUnits
void setAngleUnits(int units) -
getNegCorner
javajs.util.P3 getNegCorner() -
getPosCorner
javajs.util.P3 getPosCorner() -
initSlice
private void initSlice() -
showSliceBoundaryPlanes
void showSliceBoundaryPlanes(boolean onOrOff) -
setSlice
void setSlice(float angleXY, float anglefromZ, float position, float thickness) Defines a slice within which isosurfaces (and in future? atoms) are displayed.- Parameters:
angleXY
- (float)angle in radians from X-axis to projection in XY planeanglefromZ
- (float)angle in radians from z-axis to vectorposition
- (float) position along direction vector in absolute unitsthickness
- (float) thickness of slice in absolute units
-
setSliceAngleXY
void setSliceAngleXY(float angle) - Parameters:
angle
- (float) angle from X-axis of projection on XY plane in radians.
-
getSliceAngleXY
float getSliceAngleXY() -
setSliceAnglefromZ
void setSliceAnglefromZ(float angle) - Parameters:
angle
- (float) angle of vector from Z axis in radians.
-
getAnglefromZ
float getAnglefromZ() -
setSlicePosition
void setSlicePosition(float where) - Parameters:
where
- (float) position of slice center along direction vector.
-
getSlicePosition
float getSlicePosition() -
setSliceThickness
void setSliceThickness(float width) - Parameters:
width
- (float) thickness of slice.
-
getSliceThickness
float getSliceThickness() -
updateSlices
void updateSlices() -
sliceObject
-
drawSlicePlane
private void drawSlicePlane(javajs.util.SB cmd, int side, boolean on) -
getAngleUnits
int getAngleUnits()- Returns:
- (int) possible values: SurfaceTool.RADIANS, SurfaceTool.DEGREES, SurfaceTool.GRADIANS, SurfaceTool.CIRCLE_FRACTION, SurfaceTool.UNITS_PI.
-
getGhostOn
boolean getGhostOn()- Returns:
- (boolean) true = ghost showing; false = ghost hiding.
-
setGhostOn
void setGhostOn(boolean b) - Parameters:
b
- (boolean) true for ghost on.
-
getUseMolecular
boolean getUseMolecular()- Returns:
- (boolean) true = using molecular coordinates; false = using boundbox coordinates.
-
setUseMolecular
void setUseMolecular(boolean on) -
getPositionMin
float getPositionMin() -
getThicknessMax
float getThicknessMax() -
getCenter
javajs.util.P3 getCenter() -
getBoxVec
javajs.util.V3 getBoxVec() -
getSliceMiddle
javajs.util.P4 getSliceMiddle() -
getAngleUnitsList
String[] getAngleUnitsList() -
getCapOn
boolean getCapOn() -
setCapOn
void setCapOn(boolean b) -
getSurfaces
-