Package Pmv :: Module extruder :: Class ExtrudeSSElt
[hide private]
[frames] | no frames]

Class ExtrudeSSElt

source code

ExtrudeObject --+
                |
               ExtrudeSSElt

Class to take a shape and extrude it along the 3D path defined by a control coordinate and torsion coordinate

Instance Methods [hide private]
  __init__(self, ssElt, shape, gapEnd=0, gapBeg=0, cap1=0, cap2=0, arrow=0, larrow=3, warrow=2)
Constructor's arguments:
  getResIndexFromPts(self, respts)
return the index of the residue to which a point in the path belongs.
  getResPts(self, residueindex)
return the index of the first and the last point in the Sheet2D.path for the residue whose index is specified
  getExtrudeResidues(self, resSet)
Get faces for the specified residues in ResSet
  getExtrudeProperties(self, ResSet, propName)
Get the colors for the specified residues in ResSet
  setResProperties(self, propVect, propName, ResSet)
sets each residue in 'ResSet' to the color in 'colors' by calling the setResidueColors method of extrusion, which is an instance of the Extrude class.
  getResIndexFromExtrudeVertex(self, vertex)
takes a vertex from the extrusion and returns the index of the residue the vertex belongs to

Inherited from ExtrudeObject: addArrow, buildFaces, dist, fixNormals, getFaces, getextrudeVertices, glQuadNormals, setResidueProperties, setStripProperty


Method Details [hide private]

__init__(self, ssElt, shape, gapEnd=0, gapBeg=0, cap1=0, cap2=0, arrow=0, larrow=3, warrow=2)
(Constructor)

source code 
Constructor's arguments:
  • secondary structure Elt.
  • shape.
  • etc...
Overrides: ExtrudeObject.__init__

getResIndexFromPts(self, respts)

source code 
return the index of the residue to which a point in the path belongs.

getResPts(self, residueindex)

source code 
return the index of the first and the last point in the Sheet2D.path for the residue whose index is specified

getExtrudeResidues(self, resSet)

source code 
Get faces for the specified residues in ResSet

getExtrudeProperties(self, ResSet, propName)

source code 
Get the colors for the specified residues in ResSet

setResProperties(self, propVect, propName, ResSet)

source code 
sets each residue in 'ResSet' to the color in 'colors' by calling the setResidueColors method of extrusion, which is an instance of the Extrude class.

getResIndexFromExtrudeVertex(self, vertex)

source code 
takes a vertex from the extrusion and returns the index of the residue the vertex belongs to