public abstract class JmolSymmetryScriptGenerator extends Object
Constructor and Description |
---|
JmolSymmetryScriptGenerator() |
Modifier and Type | Method and Description |
---|---|
abstract String |
colorBySequenceCluster()
Returns a Jmol script that colors subunits by their sequence cluster ids.
|
abstract String |
colorBySubunit()
Returns a Jmol script that colors the subunits of a structure by different colors
|
abstract String |
colorBySymmetry()
Returns a Jmol script that colors subunits to highlight the symmetry within a structure
|
abstract String |
drawAxes()
Returns a Jmol script that draws symmetry or inertia axes for a structure.
|
abstract String |
drawPolyhedron()
Returns a Jmol script that draws an invisible polyhedron around a structure.
|
protected static String |
f1Dot2(float number) |
protected static String |
fDot2(double number) |
abstract String |
getDefaultOrientation()
Returns a Jmol script to set the default orientation for a structure
|
static JmolSymmetryScriptGenerator |
getInstance(AxisAligner axisAligner,
String name)
Returns an instance of a JmolSymmetryScriptGenerator, based on the symmetry of a structure (factory method)
|
String |
getInstantaneousOrientation(int index)
Returns a Jmol script that sets a specific orientation instantaneously
|
protected static String |
getJmolColor(javax.vecmath.Color4f color) |
protected static String |
getJmolColorScript(Map<javax.vecmath.Color4f,List<String>> map) |
protected static String |
getJmolLigandScript() |
protected static String |
getJmolPoint(javax.vecmath.Tuple3d point) |
abstract String |
getOrientation(int index)
Returns a Jmol script that sets a specific orientation
|
abstract int |
getOrientationCount()
Returns the number of orientations available for this structure
|
abstract String |
getOrientationName(int index)
Returns the name of a specific orientation
|
abstract String |
getOrientationWithZoom(int index)
Returns a Jmol script that sets a specific orientation and zoom
to draw either axes or polyhedron
|
abstract javax.vecmath.Matrix4d |
getTransformation()
Returns transformation matrix to orient structure
|
abstract int |
getZoom()
Returns the Jmol zoom to fit polyhedron and symmetry axes.
|
abstract String |
hideAxes()
Returns a Jmol script to hide axes
|
abstract String |
hidePolyhedron() |
protected static float |
jMolFloat(double f)
Returns a lower precision floating point number for Jmol
|
abstract String |
playOrientations()
Returns a Jmol script that displays a symmetry polyhedron and symmetry axes
and then loop through different orientations
|
abstract void |
setDefaultColoring(String colorScript)
Sets a default Jmol script used for coloring.
|
abstract void |
setOnTheFly(boolean onTheFly)
Sets the type of bioassembly to be colored.
|
abstract String |
showAxes()
Returns a Jmol script to show axes
|
abstract String |
showPolyhedron() |
public static JmolSymmetryScriptGenerator getInstance(AxisAligner axisAligner, String name)
axisAligner
- rotationGroup
- public abstract int getZoom()
public abstract String getDefaultOrientation()
public abstract int getOrientationCount()
public abstract String getOrientation(int index)
index
- orientation indexpublic String getInstantaneousOrientation(int index)
index
- orientation indexpublic abstract String getOrientationWithZoom(int index)
index
- orientation indexpublic abstract String getOrientationName(int index)
index
- orientation indexpublic abstract javax.vecmath.Matrix4d getTransformation()
public abstract void setDefaultColoring(String colorScript)
colorScript
- public abstract void setOnTheFly(boolean onTheFly)
public abstract String drawPolyhedron()
public abstract String hidePolyhedron()
public abstract String showPolyhedron()
public abstract String drawAxes()
public abstract String hideAxes()
public abstract String showAxes()
public abstract String playOrientations()
public abstract String colorBySubunit()
public abstract String colorBySequenceCluster()
public abstract String colorBySymmetry()
protected static String getJmolColorScript(Map<javax.vecmath.Color4f,List<String>> map)
protected static String getJmolColor(javax.vecmath.Color4f color)
protected static String getJmolPoint(javax.vecmath.Tuple3d point)
protected static String f1Dot2(float number)
protected static String fDot2(double number)
protected static float jMolFloat(double f)
f
- protected static String getJmolLigandScript()
Copyright © 2000–2016 BioJava. All rights reserved.