BoxInflateAnisotropic
, BoxInflateDeformable
public class BoxInflate extends BoxActionAdapter implements Undoable
Modifier and Type | Field | Description |
---|---|---|
protected Vector |
dimVector |
|
protected MoleculeChildAtomAction |
groupScaler |
|
protected MoleculePositionGeometricCenter |
moleculeCenter |
|
protected Vector |
scaleVector |
|
protected AtomActionTranslateBy |
translator |
box
Constructor | Description |
---|---|
BoxInflate(Box box,
Space space) |
Constructs BoxInflate action with the given box, but no directive to
actually change the box size.
|
BoxInflate(Box box,
Space space,
double targetDensity) |
Constructs BoxInflate action set to change the given box's density to
the given value.
|
BoxInflate(Space space) |
Constructs BoxInflate action without a box or directive to actually change
the box size.
|
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed() |
Performs boundary dimension change
|
double |
getScale() |
|
double |
getTargetDensity() |
Returns the target density of the action.
|
Vector |
getVectorScale() |
Returns the current value of the inflation scale in each dimension.
|
void |
setScale(double scale) |
Sets the scale defining the amount of inflation.
|
void |
setTargetDensity(double newTargetDensity) |
Sets the action to change the box dimensions isotropically to achieve
the given density.
|
void |
setVectorScale(Vector scale) |
Sets the scale defining the amount of inflation for each dimension.
|
void |
undo() |
Reverses the action of the inflation by performing the
action with a scale given the by the reciprocal of the
current scale.
|
getBox, setBox
protected final AtomActionTranslateBy translator
protected final MoleculeChildAtomAction groupScaler
protected final Vector scaleVector
protected final Vector dimVector
protected final MoleculePositionGeometricCenter moleculeCenter
public BoxInflate(Space space)
public BoxInflate(Box box, Space space)
public void setScale(double scale)
public double getScale()
public void setVectorScale(Vector scale)
public Vector getVectorScale()
public void setTargetDensity(double newTargetDensity)
public double getTargetDensity()
public void actionPerformed()
actionPerformed
in interface IAction