class Slice
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) float |
anglefromZ |
(package private) float |
angleXY |
(package private) javax.vecmath.Point3f |
boundBoxCenter |
(package private) javax.vecmath.Point3f |
boundBoxNegCorner |
(package private) javax.vecmath.Point3f |
boundBoxPosCorner |
(package private) float |
diagonal |
(package private) javax.vecmath.Point4f |
leftPlane |
(package private) javax.vecmath.Point4f |
middle |
(package private) float |
position |
(package private) javax.vecmath.Point4f |
rightPlane |
(package private) float |
thickness |
Constructor and Description |
---|
Slice() |
Modifier and Type | Method and Description |
---|---|
(package private) javax.vecmath.Point4f |
getMiddle() |
(package private) Slice |
getSlice() |
(package private) static void |
makePlane(float length,
float angleXY,
float anglefromZ,
javax.vecmath.Point4f result) |
(package private) void |
setSlice(float angleXY,
float anglefromZ,
float position,
float thickness,
javax.vecmath.Point3f boundBoxCenter,
javax.vecmath.Vector3f boundBoxVec,
boolean useMolecular)
Sets the right plane and left plane bounding a slice.
|
final javax.vecmath.Point4f leftPlane
final javax.vecmath.Point4f middle
final javax.vecmath.Point4f rightPlane
float angleXY
float anglefromZ
float position
float thickness
final javax.vecmath.Point3f boundBoxNegCorner
final javax.vecmath.Point3f boundBoxPosCorner
final javax.vecmath.Point3f boundBoxCenter
float diagonal
static void makePlane(float length, float angleXY, float anglefromZ, javax.vecmath.Point4f result)
length
- (float) length of vector from originangleXY
- (float) angle of vector projection in XY plane (radians)anglefromZ
- (float) angle of vector from Z axis (radians)result
- (Point4f) meeting the Jmol definition of a plane.void setSlice(float angleXY, float anglefromZ, float position, float thickness, javax.vecmath.Point3f boundBoxCenter, javax.vecmath.Vector3f boundBoxVec, boolean useMolecular)
angleXY
- (float)angle in radians from X-axis to projection in XY planeanglefromZ
- (float)angle in radians from z-axis to vectorposition
- (float) position from origin of slice center along vector in
molecular unitsthickness
- (float) thickness of slice in molecular units.boundBoxCenter
- (Point3f) center of the boundbox in molecular coordinatesboundBoxVec
- (Vector3f) vector from the boundbox center to the most positive
corner.useMolecular
- (boolean) if true angles and positions are relative to the origin of
the molecular coordinate system. If false angles and position are
relative to the center of the boundbox, which is usually more
intuitive for the viewer as this is typically close to the center of
the viewed object.Slice getSlice()
javax.vecmath.Point4f getMiddle()