Class JmolSymmetryScriptGeneratorPointGroup
java.lang.Object
org.biojava.nbio.structure.symmetry.jmolScript.JmolSymmetryScriptGenerator
org.biojava.nbio.structure.symmetry.jmolScript.JmolSymmetryScriptGeneratorPointGroup
- Direct Known Subclasses:
JmolSymmetryScriptGeneratorC1
,JmolSymmetryScriptGeneratorCn
,JmolSymmetryScriptGeneratorDn
,JmolSymmetryScriptGeneratorI
,JmolSymmetryScriptGeneratorO
,JmolSymmetryScriptGeneratorT
- Author:
- Peter
-
Constructor Summary
ConstructorDescriptionJmolSymmetryScriptGeneratorPointGroup
(RotationAxisAligner rotationAxisAligner, String name) -
Method Summary
Modifier and TypeMethodDescriptionReturns a Jmol script that colors subunits by their sequence cluster ids.Returns a Jmol script that colors the subunits of a structure by different colorsReturns a Jmol script that colors subunits to highlight the symmetry within a structuredrawAxes()
Returns a Jmol script that draws symmetry or inertia axes for a structure.Returns a Jmol script that draws an invisible polyhedron around a structure.protected RotationAxisAligner
Returns a Jmol script to set the default orientation for a structureprotected double
Returns the maximum extension (length) of structureprotected double
Returns the mean extension (length) of structuregetOrientation
(int index) Returns a Jmol script that sets a specific orientationint
Returns the number of orientations available for this structuregetOrientationName
(int index) Returns the name of a specific orientationgetOrientationWithZoom
(int index) Returns a Jmol script that sets a specific orientation and zoom to draw either axes or polyhedronprotected Polyhedron
protected RotationGroup
javax.vecmath.Matrix4d
Returns transformation matrix to orient structureabstract int
getZoom()
Returns the Jmol zoom to fit polyhedron and symmetry axes.hideAxes()
Returns a Jmol script to hide axesReturns a Jmol script that displays a symmetry polyhedron and symmetry axes and then loop through different orientationsprotected void
setAxisTransformation
(RotationAxisAligner axisTransformation) void
setDefaultColoring
(String colorScript) Sets a default Jmol script used for coloring.void
setOnTheFly
(boolean onTheFly) Sets the type of bioassembly to be colored.protected void
setPolyhedron
(Polyhedron polyhedron) protected void
setRotationGroup
(RotationGroup rotationGroup) showAxes()
Returns a Jmol script to show axesMethods inherited from class org.biojava.nbio.structure.symmetry.jmolScript.JmolSymmetryScriptGenerator
f1Dot2, fDot2, getInstance, getInstantaneousOrientation, getJmolColor, getJmolColorScript, getJmolLigandScript, getJmolPoint, jMolFloat
-
Constructor Details
-
JmolSymmetryScriptGeneratorPointGroup
-
-
Method Details
-
getZoom
public abstract int getZoom()Description copied from class:JmolSymmetryScriptGenerator
Returns the Jmol zoom to fit polyhedron and symmetry axes. This zoom level should be used so that the polyhedron and symmetry axes are not cutoff.- Specified by:
getZoom
in classJmolSymmetryScriptGenerator
- Returns:
-
setOnTheFly
public void setOnTheFly(boolean onTheFly) Description copied from class:JmolSymmetryScriptGenerator
Sets the type of bioassembly to be colored. If set to true, it will generate a Jmol script for a bioassembly generated by Jmol on the fly. If set to false, it will generate Jmol script for a bioassembly file read by Jmol.- Specified by:
setOnTheFly
in classJmolSymmetryScriptGenerator
-
getDefaultOrientation
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script to set the default orientation for a structure- Specified by:
getDefaultOrientation
in classJmolSymmetryScriptGenerator
- Returns:
- Jmol script
-
getOrientationCount
public int getOrientationCount()Description copied from class:JmolSymmetryScriptGenerator
Returns the number of orientations available for this structure- Specified by:
getOrientationCount
in classJmolSymmetryScriptGenerator
- Returns:
- number of orientations
-
getOrientation
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script that sets a specific orientation- Specified by:
getOrientation
in classJmolSymmetryScriptGenerator
- Parameters:
index
- orientation index- Returns:
- Jmol script
-
getOrientationWithZoom
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script that sets a specific orientation and zoom to draw either axes or polyhedron- Specified by:
getOrientationWithZoom
in classJmolSymmetryScriptGenerator
- Parameters:
index
- orientation index- Returns:
- Jmol script
-
getOrientationName
Description copied from class:JmolSymmetryScriptGenerator
Returns the name of a specific orientation- Specified by:
getOrientationName
in classJmolSymmetryScriptGenerator
- Parameters:
index
- orientation index- Returns:
- name of orientation
-
getTransformation
public javax.vecmath.Matrix4d getTransformation()Description copied from class:JmolSymmetryScriptGenerator
Returns transformation matrix to orient structure- Specified by:
getTransformation
in classJmolSymmetryScriptGenerator
- Returns:
- transformation matrix
-
setDefaultColoring
Description copied from class:JmolSymmetryScriptGenerator
Sets a default Jmol script used for coloring. This method is used in local symmetry cases to color those subunits that are not related by symmetry.- Specified by:
setDefaultColoring
in classJmolSymmetryScriptGenerator
-
drawPolyhedron
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script that draws an invisible polyhedron around a structure. Use showPolyhedron() and hidePolyhedron() to toggle visibility.- Specified by:
drawPolyhedron
in classJmolSymmetryScriptGenerator
- Returns:
- Jmol script
-
hidePolyhedron
- Specified by:
hidePolyhedron
in classJmolSymmetryScriptGenerator
-
showPolyhedron
- Specified by:
showPolyhedron
in classJmolSymmetryScriptGenerator
-
drawAxes
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script that draws symmetry or inertia axes for a structure. Use showAxes() and hideAxes() to toggle visibility.- Specified by:
drawAxes
in classJmolSymmetryScriptGenerator
- Returns:
- Jmol script
-
hideAxes
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script to hide axes- Specified by:
hideAxes
in classJmolSymmetryScriptGenerator
- Returns:
- Jmol script
-
showAxes
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script to show axes- Specified by:
showAxes
in classJmolSymmetryScriptGenerator
- Returns:
- Jmol script
-
playOrientations
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script that displays a symmetry polyhedron and symmetry axes and then loop through different orientations- Specified by:
playOrientations
in classJmolSymmetryScriptGenerator
- Returns:
- Jmol script
-
colorBySubunit
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script that colors the subunits of a structure by different colors- Specified by:
colorBySubunit
in classJmolSymmetryScriptGenerator
- Returns:
-
colorBySequenceCluster
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script that colors subunits by their sequence cluster ids.- Specified by:
colorBySequenceCluster
in classJmolSymmetryScriptGenerator
- Returns:
- Jmol script
-
colorBySymmetry
Description copied from class:JmolSymmetryScriptGenerator
Returns a Jmol script that colors subunits to highlight the symmetry within a structure- Specified by:
colorBySymmetry
in classJmolSymmetryScriptGenerator
- Returns:
- Jmol script
-
getMaxExtension
protected double getMaxExtension()Returns the maximum extension (length) of structure- Returns:
-
getMeanExtension
protected double getMeanExtension()Returns the mean extension (length) of structure- Returns:
-
getAxisTransformation
- Returns:
- the axisTransformation
-
setAxisTransformation
- Parameters:
axisTransformation
- the axisTransformation to set
-
getRotationGroup
- Returns:
- the rotationGroup
-
setRotationGroup
- Parameters:
rotationGroup
- the rotationGroup to set
-
getPolyhedron
- Returns:
- the polyhedron
-
setPolyhedron
- Parameters:
polyhedron
- the polyhedron to set
-