Enum Class DensityFileFormat
- All Implemented Interfaces:
Serializable,Comparable<DensityFileFormat>,java.lang.constant.Constable
The file format a density map was delivered in.
The important distinction here is isJmolLoadable(). Most of these
formats are sampled grids that a viewer can contour directly; map
coefficients are not, they are structure factors that require a Fourier
transform first. Handing the latter to a viewer produces nothing at all, so
the difference has to be visible to callers.
- Since:
- 7.3.0
- Author:
- Amr ALHOSSARY
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA BinaryCIF volume slice from a Mol* density server.A CCP4/MRC sampled map, as served pre-computed by PDBe.A gzipped CCP4/MRC map, the form EMDB distributes its primary maps in.A text CIF volume slice from a Mol* density server.Structure-factor amplitudes and phases in mmCIF, as published with the wwPDB validation reports. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether files of this format are gzip-compressed on disk.booleanWhether a viewer can contour this file as it stands.static DensityFileFormatReturns the enum constant of this class with the specified name.static DensityFileFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CCP4
A CCP4/MRC sampled map, as served pre-computed by PDBe. -
CCP4_GZ
A gzipped CCP4/MRC map, the form EMDB distributes its primary maps in. -
BCIF_VOLUME
A BinaryCIF volume slice from a Mol* density server. -
CIF_VOLUME
A text CIF volume slice from a Mol* density server. -
MAP_COEFFICIENTS_CIF_GZ
Structure-factor amplitudes and phases in mmCIF, as published with the wwPDB validation reports. Not a density grid. A Fourier transform (for examplegemmi sf2map, or CCP4'sfftaftercif2mtz) is needed before these can be displayed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getExtension
- Returns:
- the file extension used for cached files of this format, including the leading dot
-
isJmolLoadable
public boolean isJmolLoadable()Whether a viewer can contour this file as it stands.- Returns:
falseforMAP_COEFFICIENTS_CIF_GZ, which needs an FFT first;truefor the sampled grid formats
-
isCompressed
public boolean isCompressed()Whether files of this format are gzip-compressed on disk. Jmol detects gzip from the magic bytes, so such files do not need decompressing before display.- Returns:
truefor the compressed formats
-