EMAN Reference: Cylinder Class


Altfloat Alt()
Angle2Centerfloat Angle2Center(Cylinder next)
difference in orientation between line passing both centers and axis of this
Angle2Pointfloat Angle2Point(Vect p)
difference in orientation between line passing both P and this center and axis of this
Angle2Vectfloat Angle2Vect(Vect v)
difference in orientation axis of this and the direction vector
AxisAngleDifffloat AxisAngleDiff(Cylinder next)
difference in orientation (axises)
AxisVect Axis()
Azfloat Az()
CenterDistancefloat CenterDistance(Cylinder next)
distance of the center of next cylinder to the center of this
CenterVect Center()
CylinderCylinder()
construct an empty Cylinder instance

Cylinder(Vect center, Vect axisdir, len = 5.4, r = 2.5, w = 0.9)
Distance2Pointfloat Distance2Point(x, y, z)
distance of the Point to the center of this cylinder
EndIDint EndID()
if_mergebool if_merge(Cylinder next, da_limit = 30*PI/180., distance_limit = 3.2)
if next is ok to merge with this
Labelstring Label()
Lengthfloat Length()
mergebool merge(Cylinder next)
actually merge both into this
mirrormirror()
mirror the cylinders
NormDistancefloat NormDistance(Cylinder next)
shortest distance of the two axes
PlaneAngleDifffloat PlaneAngleDiff(Cylinder next)
dihedral angle of planes formed by the two axes and center connection vector
PrintPrint(int id = -1, FILE out = stdout)
QuaterForAxisQuater QuaterForAxis()
Radiusfloat Radius()
setAxissetAxis(Vect axisdir)
setAxis(Euler axisdir)
setCentersetCenter(float x, float y, float z)
setEndIDsetEndID(int i)
setLabelsetLabel(string l)
setLengthsetLength(float l)
setRadiussetRadius(float r)
setStartIDsetStartID(int i)
setWeightsetWeight(float w)
StartIDint StartID()
toCosectoCosec(FILE out = stdout, id = 0)
toDejaVutoDejaVu(FILE out = stdout, id = 0)
toInventortoInventor(FILE out = stdout, id = 0, indent = 1, with_head = false)
TransformTransform(Quater rot, Vect trans, Vect center)
transform: rotate then translate

Transform(Euler rot, Vect trans, Vect center)
transform: rotate then translate
Weightfloat Weight()
Xcfloat Xc()
Ycfloat Yc()
Zcfloat Zc()