|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.mbt.viewers.GLViewerImpl.GeometryEntity
edu.sdsc.mbt.viewers.GLViewerImpl.SsGeometry
SsGeometry is the base class for the geometry of all Secondary Structure objects.
Field Summary | |
static java.util.HashMap |
colorCache
|
static java.util.HashMap |
colorReference
This hash is used to look up float[] values by a reference to a Color object |
Constructor Summary | |
SsGeometry()
|
Method Summary | |
static void |
drawSs(Chain c,
javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
com.sun.opengl.util.GLUT glut,
StructureMap structureMap,
StructureStyles styles,
boolean ribbon)
Builds a scene of the secondary structures, the list of SS being the one produced by the StructureMap argument based on what is
explicitely available in the data source file or from the Kabsch-Sander
algorithm. |
static void |
drawSs(Chain c,
javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
com.sun.opengl.util.GLUT glut,
StructureMap structureMap,
StructureStyles styles,
boolean ribbon,
float helixQuality,
float strandQuality,
float turnQuality,
float coilQuality,
int helixSmoothingSteps,
int strandSmoothingSteps,
int turnSmoothingSteps,
int coilSmoothingSteps,
int helixCsType,
int strandCsType,
int turnCsType,
int coilCsType,
int helixSsShape)
Builds a scene of the secondary structures, the list of SS being the one produced by the StructureMap argument based on what is
explicitely available in the data source file or from the Kabsch-Sander
algorithm. |
static void |
drawSs(Chain c,
javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
com.sun.opengl.util.GLUT glut,
StructureMap structureMap,
StructureStyles styles,
boolean ribbon,
int helixSmoothingSteps,
int strandSmoothingSteps,
int turnSmoothingSteps,
int coilSmoothingSteps)
Builds a scene of the secondary structures, the list of SS being the one produced by the StructureMap argument based on what is
explicitely available in the data source file or from the Kabsch-Sander
algorithm. |
static void |
drawSs(Chain c,
javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
com.sun.opengl.util.GLUT glut,
StructureMap structureMap,
StructureStyles styles,
boolean ribbon,
int helixSmoothingSteps,
int strandSmoothingSteps,
int turnSmoothingSteps,
int coilSmoothingSteps,
int helixSsShape)
Builds a scene of the secondary structures, the list of SS being the one produced by the StructureMap argument based on what is
explicitely available in the data source file or from the Kabsch-Sander
algorithm. |
int |
getClosestResidueIndex(float[] point)
Returns the index of the closest residue to the given point, with the given color. |
java.awt.Color[] |
getColorMap()
Returns the color map from a given set of float arrays. |
boolean |
getHighlightState()
|
SsGeometry |
getNextSs()
Returns the next Secondary Structure geometry (in a chain for instance) |
Vec3f |
getNextToFirstCa()
First CA coord (after smoothing) may be needed outside for imposing continuity Deprecated |
float[] |
getNextToFirstCaCoord()
First CA coord (after smoothing) may be needed outside for imposing continuity |
SsGeometry |
getPreviousSs()
Returns the previous Secondary Structure geometry (in a chain for instance) |
Vec3f |
getPreviousToLastCa()
Get Previous to last CA coord (after smoothing) may be needed outside for imposing continuity Deprecated |
float[] |
getPreviousToLastCaCoord()
Previous to last CA coord (after smoothing) may be needed outside for imposing continuity |
int |
getPriestleSteps()
|
java.lang.Object |
getUserData()
Returns information (annotation) provided by the user |
boolean[] |
getVisibilityMap()
|
void |
highlight(float[] color)
Highlights the whole fragment with the given color. |
void |
highlightClosestResidue(float[] point,
float[] color)
Highlights the closest residue to the given point, with the given color. |
void |
highlightResidue(int index,
float[] color)
Hightlights the portion of SS sorounding residue at index. |
void |
highlightResidueRegion(int index,
float[] color)
Hightlights the portion of SS sorounding residue at index. |
boolean |
isLeftExtended()
Set a flag that the fragment has been extended to the left to fill a gap |
boolean |
isRightExtended()
Set a flag that the fragment has been extended to the right to fill a gap |
void |
resetColor()
Resets the whole fragment to the original color map. |
void |
resetGeometryColor()
Resets the vertex color in the geometry shape of this SsGeometry object. |
void |
resetRibbonColor(int index)
Resets the color of the portion of SS sorounding residue at index. |
void |
setColorMap(java.awt.Color[] color)
Sets the color map from a given set of colors Deprecated |
void |
setCoordinates(float[][] coord)
Sets the coordinates along which to draw the spine. |
void |
setCoordinates(Vec3f[] coords)
Sets the coordinates along which to draw the spine. |
void |
setCrossSectionStyle(CrossSectionStyle csStyle)
Sets the cross section style |
void |
setCrossSectionType(int type)
Sets the cross section type |
void |
setLeftExtended(boolean extend)
Set a flag that the fragment has been extended to the left to fill a gap |
void |
setNextCaCoord(float[] coord)
Set Next Ca atom coordinate |
void |
setNextCaCoord(Vec3f coord)
Set Next Ca atom coordinate Deprecated |
void |
setNextSs(SsGeometry ss)
Sets the next Secondary Structure geometry (in a chain for instance) |
void |
setPreviousCaCoord(float[] coord)
Set Previous Ca atom coordinate. |
void |
setPreviousCaCoord(Vec3f coord)
Set Previous Ca atom coordinate. |
void |
setPreviousSs(SsGeometry ss)
Sets the previous Secondary Structure geometry (in a chain for instance) |
void |
setPriestleSteps(int i)
Set the number of steps done in smoothing coordinates |
void |
setRightExtended(boolean extend)
Set a flag that the fragment has been extended to the right to fill a gap |
void |
setRoundedShape(boolean round)
Whether the shape should be rounded or not |
void |
setSegmentCount(int seg)
Set number of segments to be drawn between any two consecutive CA positions. |
void |
setUserData(java.lang.Object info)
Sets information (annotation) provided by the user |
void |
setVisibilityMap(boolean[] vis)
|
Methods inherited from class edu.sdsc.mbt.viewers.GLViewerImpl.GeometryEntity |
drawJoglGeometry, getQuality, setQuality |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.HashMap colorCache
public static java.util.HashMap colorReference
Constructor Detail |
public SsGeometry()
Method Detail |
public static void drawSs(Chain c, javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut, StructureMap structureMap, StructureStyles styles, boolean ribbon) throws FragmentTooShortException
StructureMap
argument based on what is
explicitely available in the data source file or from the Kabsch-Sander
algorithm.
**JB converted to work on a single chain...
FragmentTooShortException
public static void drawSs(Chain c, javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut, StructureMap structureMap, StructureStyles styles, boolean ribbon, int helixSmoothingSteps, int strandSmoothingSteps, int turnSmoothingSteps, int coilSmoothingSteps) throws FragmentTooShortException
StructureMap
argument based on what is
explicitely available in the data source file or from the Kabsch-Sander
algorithm.
**JB converted to work on a single chain...
FragmentTooShortException
public static void drawSs(Chain c, javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut, StructureMap structureMap, StructureStyles styles, boolean ribbon, int helixSmoothingSteps, int strandSmoothingSteps, int turnSmoothingSteps, int coilSmoothingSteps, int helixSsShape) throws FragmentTooShortException
StructureMap
argument based on what is
explicitely available in the data source file or from the Kabsch-Sander
algorithm.
**JB converted to work on a single chain...
FragmentTooShortException
public static void drawSs(Chain c, javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut, StructureMap structureMap, StructureStyles styles, boolean ribbon, float helixQuality, float strandQuality, float turnQuality, float coilQuality, int helixSmoothingSteps, int strandSmoothingSteps, int turnSmoothingSteps, int coilSmoothingSteps, int helixCsType, int strandCsType, int turnCsType, int coilCsType, int helixSsShape) throws FragmentTooShortException
StructureMap
argument based on what is
explicitely available in the data source file or from the Kabsch-Sander
algorithm.
**JB converted to work on a single chain...
FragmentTooShortException
public void setCrossSectionType(int type)
public void setCrossSectionStyle(CrossSectionStyle csStyle)
public void setRoundedShape(boolean round)
public void setSegmentCount(int seg)
public void setCoordinates(Vec3f[] coords)
public void setCoordinates(float[][] coord)
public void setPreviousSs(SsGeometry ss)
public void setNextSs(SsGeometry ss)
public void setLeftExtended(boolean extend)
public void setRightExtended(boolean extend)
public void setPreviousCaCoord(Vec3f coord)
public void setPreviousCaCoord(float[] coord)
public void setNextCaCoord(Vec3f coord)
public void setNextCaCoord(float[] coord)
public void setColorMap(java.awt.Color[] color)
public void setVisibilityMap(boolean[] vis)
public void setUserData(java.lang.Object info)
public void resetGeometryColor()
public int getClosestResidueIndex(float[] point)
public void highlightClosestResidue(float[] point, float[] color)
public void highlight(float[] color)
public void resetColor()
public java.awt.Color[] getColorMap()
public boolean[] getVisibilityMap()
public SsGeometry getPreviousSs()
public SsGeometry getNextSs()
public boolean getHighlightState()
public void highlightResidueRegion(int index, float[] color)
public void highlightResidue(int index, float[] color)
public void resetRibbonColor(int index)
public java.lang.Object getUserData()
public boolean isLeftExtended()
public boolean isRightExtended()
public Vec3f getNextToFirstCa()
public float[] getNextToFirstCaCoord()
public Vec3f getPreviousToLastCa()
public float[] getPreviousToLastCaCoord()
public void setPriestleSteps(int i)
public int getPriestleSteps()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |