Package org.jmol.modelset
Class Model
java.lang.Object
org.jmol.modelset.Model
- Direct Known Subclasses:
BioModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionintatom count; includes deleted atoms only if not being nulled (Jmol 14.31 or below)int(package private) intprivate intjavajs.util.BStracks all presymmetry asymmetric unit atoms; atoms added using the ModelKit will add to this.final javajs.util.BSNote that this bitset may or may not include bsAtomsDeletedfinal javajs.util.BSprivate javajs.util.BSprotected intChain[](package private) int(package private) float(package private) intint(package private) intlongint(package private) booleanbooleanint(package private) intbooleanbooleanbooleanbooleana flag that, when false, indicates that the model has atoms in different regions of the Atom[] arrayboolean(package private) boolean(package private) String(package private) Stringjavajs.util.SBjavajs.util.M4mat4 tracks the rotation/translation of the full model using rotateSelected or translateSelectedintintBE CAREFUL: FAILURE TO NULL REFERENCES TO modelSet WILL PREVENT FINALIZATION AND CREATE A MEMORY LEAK.intbooleanint(package private) javajs.util.P3 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcalcSelectedGroupsCount(javajs.util.BS bsSelected) voidfixIndices(int modelIndex, int nAtomsDeleted, javajs.util.BS bsDeleted) protected voidfixIndicesM(int modelIndex, int nAtomsDeleted, javajs.util.BS bsDeleted) booleanfreeze()protected voidfreezeM()int(package private) ChaingetChain(int chainID) getChainAt(int i) intgetChainCount(boolean countWater) intintnot actually accessed -- just pointing out what it isbooleanisContainedIn(javajs.util.BS bs) voidvoidresetDSSR(boolean totally) Something has changed; clear the DSSR cache and possibly remove DSSR entirely.set(ModelSet modelSet, int modelIndex, int trajectoryBaseIndex, String jmolData, Properties properties, Map<String, Object> auxiliaryInfo) voidsetSimpleCage(SymmetryInterface ucell)
-
Field Details
-
ms
BE CAREFUL: FAILURE TO NULL REFERENCES TO modelSet WILL PREVENT FINALIZATION AND CREATE A MEMORY LEAK. -
mat4
public javajs.util.M4 mat4mat4 tracks the rotation/translation of the full model using rotateSelected or translateSelected -
modelIndex
public int modelIndex -
fileIndex
int fileIndex -
isBioModel
public boolean isBioModel -
isPdbWithMultipleBonds
public boolean isPdbWithMultipleBonds -
isModelKit
public boolean isModelKit -
chains
-
simpleCage
-
dssrCache
-
orientation
-
auxiliaryInfo
-
properties
-
biosymmetry
-
dataFrames
-
translation
javajs.util.P3 translation -
dataSourceFrame
int dataSourceFrame -
loadState
-
loadScript
public javajs.util.SB loadScript -
hasRasmolHBonds
public boolean hasRasmolHBonds -
structureTainted
public boolean structureTainted -
isJmolDataFrame
public boolean isJmolDataFrame -
isTrajectory
boolean isTrajectory -
trajectoryBaseIndex
public int trajectoryBaseIndex -
altLocCount
public int altLocCount -
insertionCount
int insertionCount -
act
public int actatom count; includes deleted atoms only if not being nulled (Jmol 14.31 or below) -
bondCount
private int bondCount -
chainCount
protected int chainCount -
groupCount
public int groupCount -
hydrogenCount
public int hydrogenCount -
moleculeCount
public int moleculeCount -
biosymmetryCount
int biosymmetryCount -
firstAtomIndex
public int firstAtomIndex -
firstMoleculeIndex
int firstMoleculeIndex -
bsAtoms
public final javajs.util.BS bsAtomsNote that this bitset may or may not include bsAtomsDeleted -
bsAtomsDeleted
public final javajs.util.BS bsAtomsDeleted -
defaultRotationRadius
float defaultRotationRadius -
frameDelay
public long frameDelay -
selectedTrajectory
public int selectedTrajectory -
jmolData
String jmolData -
jmolFrameType
String jmolFrameType -
pdbID
-
bsCheck
private javajs.util.BS bsCheck -
hasChirality
boolean hasChirality -
isOrderly
public boolean isOrderlya flag that, when false, indicates that the model has atoms in different regions of the Atom[] array -
bsAsymmetricUnit
public javajs.util.BS bsAsymmetricUnittracks all presymmetry asymmetric unit atoms; atoms added using the ModelKit will add to this.
-
-
Constructor Details
-
Model
public Model()
-
-
Method Details
-
set
-
getTrueAtomCount
public int getTrueAtomCount()not actually accessed -- just pointing out what it is- Returns:
- true atom count
-
isContainedIn
public boolean isContainedIn(javajs.util.BS bs) - Parameters:
bs-- Returns:
- true if all undeleted atom bits in this model are in bs
-
resetBoundCount
public void resetBoundCount() -
getBondCount
public int getBondCount() -
getChainCount
public int getChainCount(boolean countWater) -
calcSelectedGroupsCount
void calcSelectedGroupsCount(javajs.util.BS bsSelected) -
getGroupCount
public int getGroupCount() -
getChainAt
-
getChain
-
resetDSSR
public void resetDSSR(boolean totally) Something has changed; clear the DSSR cache and possibly remove DSSR entirely.- Parameters:
totally- set TRUE if atoms have moved so we force a new DSSR calculation.
-
fixIndices
public void fixIndices(int modelIndex, int nAtomsDeleted, javajs.util.BS bsDeleted) -
fixIndicesM
protected void fixIndicesM(int modelIndex, int nAtomsDeleted, javajs.util.BS bsDeleted) -
freeze
public boolean freeze() -
freezeM
protected void freezeM() -
setSimpleCage
-