Package org.jmol.jvxl.data
Class VolumeData
java.lang.Object
org.jmol.jvxl.data.VolumeData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
calculateFractionalPoint
(float cutoff, P3 pointA, P3 pointB, float valueA, float valueB, P3 pt) float
calcVoxelPlaneDistance
(int x, int y, int z) void
float
float
void
filterData
(boolean isSquared, float invertCutoff) static float
getFractional2DValue
(float fx, float fy, float x11, float x12, float x21, float x22) float[]
void
int
getPointIndex
(int x, int y, int z) float
float[]
int[]
float[][][]
float
getVoxelDataAt
(int pt) float
getVoxelValue
(int x, int y, int z) int
boolean
hasPlane()
boolean
isNearPlane
(int x, int y, int z, float toPlaneParameter) float
lookupInterpolatedVoxelValue
(T3 point, boolean getSource) void
setDataDistanceToPlane
(P4 plane) void
setMappingPlane
(P4 plane) void
setPlaneParameters
(P4 plane) boolean
void
setVolumetricOrigin
(float x, float y, float z) void
setVolumetricVector
(int i, float x, float y, float z) int
setVoxelCounts
(int nPointsX, int nPointsY, int nPointsZ) void
setVoxelData
(int pt, float value) void
setVoxelDataAsArray
(float[][][] voxelData) void
void
setVoxelMapValue
(int x, int y, int z, float v) for sparse data mapping, as for a planevoid
void
voxelPtToXYZ
(int x, int y, int z, T3 pt) void
xyzToVoxelPt
(float x, float y, float z, T3i pt3i)
-
Field Details
-
sr
-
doIterate
public boolean doIterate -
volumetricOrigin
-
origin
public final float[] origin -
volumetricVectors
-
voxelCounts
public final int[] voxelCounts -
nPoints
public int nPoints -
volumetricVectorLengths
public final float[] volumetricVectorLengths -
unitVolumetricVectors
-
xmlData
-
mappingPlane
-
minGrid
public float minGrid -
maxGrid
public float maxGrid -
voxelVolume
public float voxelVolume -
oabc
-
isPeriodic
public boolean isPeriodic
-
-
Constructor Details
-
VolumeData
public VolumeData()
-
-
Method Details
-
getVoxelData
public float[][][] getVoxelData() -
setVoxelDataAsArray
public void setVoxelDataAsArray(float[][][] voxelData) -
hasPlane
public boolean hasPlane() -
setMappingPlane
-
distanceToMappingPlane
-
setVolumetricOrigin
public void setVolumetricOrigin(float x, float y, float z) -
getOriginFloat
public float[] getOriginFloat() -
getYzCount
public int getYzCount() -
getVolumetricVectorLengths
public float[] getVolumetricVectorLengths() -
setVolumetricVector
public void setVolumetricVector(int i, float x, float y, float z) -
getVoxelCounts
public int[] getVoxelCounts() -
setVoxelCounts
public int setVoxelCounts(int nPointsX, int nPointsY, int nPointsZ) -
getVoxelDataAt
public float getVoxelDataAt(int pt) -
getPointIndex
public int getPointIndex(int x, int y, int z) -
getPoint
-
setVoxelData
public void setVoxelData(int pt, float value) -
setVoxelMap
public void setVoxelMap() -
transform
-
setPlaneParameters
-
calcVoxelPlaneDistance
public float calcVoxelPlaneDistance(int x, int y, int z) -
getToPlaneParameter
public float getToPlaneParameter() -
isNearPlane
public boolean isNearPlane(int x, int y, int z, float toPlaneParameter) -
distancePointToPlane
-
voxelPtToXYZ
-
setUnitVectors
public boolean setUnitVectors() -
xyzToVoxelPt
-
lookupInterpolatedVoxelValue
-
getVoxelValue
public float getVoxelValue(int x, int y, int z) -
getFractional2DValue
public static float getFractional2DValue(float fx, float fy, float x11, float x12, float x21, float x22) -
setDataDistanceToPlane
-
filterData
public void filterData(boolean isSquared, float invertCutoff) -
capData
-
setVolumetricXml
-
setVoxelMapValue
public void setVoxelMapValue(int x, int y, int z, float v) for sparse data mapping, as for a plane- Parameters:
x
-y
-z
-v
-
-
calculateFractionalPoint
-