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
public abstract class JmolSymmetryScriptGeneratorPointGroup extends JmolSymmetryScriptGenerator
- Author:
 - Peter
 
 
- 
- 
Constructor Summary
Constructors Constructor Description JmolSymmetryScriptGeneratorPointGroup(RotationAxisAligner rotationAxisAligner, String name) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringcolorBySequenceCluster()Returns a Jmol script that colors subunits by their sequence cluster ids.StringcolorBySubunit()Returns a Jmol script that colors the subunits of a structure by different colorsStringcolorBySymmetry()Returns a Jmol script that colors subunits to highlight the symmetry within a structureStringdrawAxes()Returns a Jmol script that draws symmetry or inertia axes for a structure.StringdrawPolyhedron()Returns a Jmol script that draws an invisible polyhedron around a structure.protected RotationAxisAlignergetAxisTransformation()StringgetDefaultOrientation()Returns a Jmol script to set the default orientation for a structureprotected doublegetMaxExtension()Returns the maximum extension (length) of structureprotected doublegetMeanExtension()Returns the mean extension (length) of structureStringgetOrientation(int index)Returns a Jmol script that sets a specific orientationintgetOrientationCount()Returns the number of orientations available for this structureStringgetOrientationName(int index)Returns the name of a specific orientationStringgetOrientationWithZoom(int index)Returns a Jmol script that sets a specific orientation and zoom to draw either axes or polyhedronprotected PolyhedrongetPolyhedron()protected RotationGroupgetRotationGroup()javax.vecmath.Matrix4dgetTransformation()Returns transformation matrix to orient structureabstract intgetZoom()Returns the Jmol zoom to fit polyhedron and symmetry axes.StringhideAxes()Returns a Jmol script to hide axesStringhidePolyhedron()StringplayOrientations()Returns a Jmol script that displays a symmetry polyhedron and symmetry axes and then loop through different orientationsprotected voidsetAxisTransformation(RotationAxisAligner axisTransformation)voidsetDefaultColoring(String colorScript)Sets a default Jmol script used for coloring.voidsetOnTheFly(boolean onTheFly)Sets the type of bioassembly to be colored.protected voidsetPolyhedron(Polyhedron polyhedron)protected voidsetRotationGroup(RotationGroup rotationGroup)StringshowAxes()Returns a Jmol script to show axesStringshowPolyhedron()- 
Methods inherited from class org.biojava.nbio.structure.symmetry.jmolScript.JmolSymmetryScriptGenerator
f1Dot2, fDot2, getInstance, getInstantaneousOrientation, getJmolColor, getJmolColorScript, getJmolLigandScript, getJmolPoint, jMolFloat 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
JmolSymmetryScriptGeneratorPointGroup
public JmolSymmetryScriptGeneratorPointGroup(RotationAxisAligner rotationAxisAligner, String name)
 
 - 
 
- 
Method Detail
- 
getZoom
public abstract int getZoom()
Description copied from class:JmolSymmetryScriptGeneratorReturns 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:
 getZoomin classJmolSymmetryScriptGenerator- Returns:
 
 
- 
setOnTheFly
public void setOnTheFly(boolean onTheFly)
Description copied from class:JmolSymmetryScriptGeneratorSets 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:
 setOnTheFlyin classJmolSymmetryScriptGenerator
 
- 
getDefaultOrientation
public String getDefaultOrientation()
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script to set the default orientation for a structure- Specified by:
 getDefaultOrientationin classJmolSymmetryScriptGenerator- Returns:
 - Jmol script
 
 
- 
getOrientationCount
public int getOrientationCount()
Description copied from class:JmolSymmetryScriptGeneratorReturns the number of orientations available for this structure- Specified by:
 getOrientationCountin classJmolSymmetryScriptGenerator- Returns:
 - number of orientations
 
 
- 
getOrientation
public String getOrientation(int index)
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script that sets a specific orientation- Specified by:
 getOrientationin classJmolSymmetryScriptGenerator- Parameters:
 index- orientation index- Returns:
 - Jmol script
 
 
- 
getOrientationWithZoom
public String getOrientationWithZoom(int index)
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script that sets a specific orientation and zoom to draw either axes or polyhedron- Specified by:
 getOrientationWithZoomin classJmolSymmetryScriptGenerator- Parameters:
 index- orientation index- Returns:
 - Jmol script
 
 
- 
getOrientationName
public String getOrientationName(int index)
Description copied from class:JmolSymmetryScriptGeneratorReturns the name of a specific orientation- Specified by:
 getOrientationNamein classJmolSymmetryScriptGenerator- Parameters:
 index- orientation index- Returns:
 - name of orientation
 
 
- 
getTransformation
public javax.vecmath.Matrix4d getTransformation()
Description copied from class:JmolSymmetryScriptGeneratorReturns transformation matrix to orient structure- Specified by:
 getTransformationin classJmolSymmetryScriptGenerator- Returns:
 - transformation matrix
 
 
- 
setDefaultColoring
public void setDefaultColoring(String colorScript)
Description copied from class:JmolSymmetryScriptGeneratorSets 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:
 setDefaultColoringin classJmolSymmetryScriptGenerator
 
- 
drawPolyhedron
public String drawPolyhedron()
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script that draws an invisible polyhedron around a structure. Use showPolyhedron() and hidePolyhedron() to toggle visibility.- Specified by:
 drawPolyhedronin classJmolSymmetryScriptGenerator- Returns:
 - Jmol script
 
 
- 
hidePolyhedron
public String hidePolyhedron()
- Specified by:
 hidePolyhedronin classJmolSymmetryScriptGenerator
 
- 
showPolyhedron
public String showPolyhedron()
- Specified by:
 showPolyhedronin classJmolSymmetryScriptGenerator
 
- 
drawAxes
public String drawAxes()
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script that draws symmetry or inertia axes for a structure. Use showAxes() and hideAxes() to toggle visibility.- Specified by:
 drawAxesin classJmolSymmetryScriptGenerator- Returns:
 - Jmol script
 
 
- 
hideAxes
public String hideAxes()
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script to hide axes- Specified by:
 hideAxesin classJmolSymmetryScriptGenerator- Returns:
 - Jmol script
 
 
- 
showAxes
public String showAxes()
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script to show axes- Specified by:
 showAxesin classJmolSymmetryScriptGenerator- Returns:
 - Jmol script
 
 
- 
playOrientations
public String playOrientations()
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script that displays a symmetry polyhedron and symmetry axes and then loop through different orientations- Specified by:
 playOrientationsin classJmolSymmetryScriptGenerator- Returns:
 - Jmol script
 
 
- 
colorBySubunit
public String colorBySubunit()
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script that colors the subunits of a structure by different colors- Specified by:
 colorBySubunitin classJmolSymmetryScriptGenerator- Returns:
 
 
- 
colorBySequenceCluster
public String colorBySequenceCluster()
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script that colors subunits by their sequence cluster ids.- Specified by:
 colorBySequenceClusterin classJmolSymmetryScriptGenerator- Returns:
 - Jmol script
 
 
- 
colorBySymmetry
public String colorBySymmetry()
Description copied from class:JmolSymmetryScriptGeneratorReturns a Jmol script that colors subunits to highlight the symmetry within a structure- Specified by:
 colorBySymmetryin 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
protected RotationAxisAligner getAxisTransformation()
- Returns:
 - the axisTransformation
 
 
- 
setAxisTransformation
protected void setAxisTransformation(RotationAxisAligner axisTransformation)
- Parameters:
 axisTransformation- the axisTransformation to set
 
- 
getRotationGroup
protected RotationGroup getRotationGroup()
- Returns:
 - the rotationGroup
 
 
- 
setRotationGroup
protected void setRotationGroup(RotationGroup rotationGroup)
- Parameters:
 rotationGroup- the rotationGroup to set
 
- 
getPolyhedron
protected Polyhedron getPolyhedron()
- Returns:
 - the polyhedron
 
 
- 
setPolyhedron
protected void setPolyhedron(Polyhedron polyhedron)
- Parameters:
 polyhedron- the polyhedron to set
 
 - 
 
 -