edu.sdsc.mbt.viewers.GLViewerImpl
Class IntrinsicCrossSection
java.lang.Object
edu.sdsc.mbt.viewers.GLViewerImpl.IntrinsicCrossSection
- public class IntrinsicCrossSection
- extends java.lang.Object
IntrinsicCrossSection represents, geometrically, a closed poligon. It
is used in conjunction with extrusion to generate secondary structure representations.
An IntrinsicCrossSection is an intrinsic property, i.e. it has a meaninig only when defined with respect to a LOCAL
refrence frame (FrenetTrihedron). For instance the vertices defining the shape have to be interpreted
relative to a FrenetTrihedron.
- Since:
- JDK1.2.2
- Version:
- $Revision: 1.1 $
- Author:
- Apostol Gramada
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntrinsicCrossSection
public IntrinsicCrossSection()
IntrinsicCrossSection
public IntrinsicCrossSection(int vertexCount)
IntrinsicCrossSection
public IntrinsicCrossSection(int vertexCount,
Vec3f[] vertices)
IntrinsicCrossSection
public IntrinsicCrossSection(int vertexCount,
Vec3f[] vertices,
Vec3f[] normals)
IntrinsicCrossSection
public IntrinsicCrossSection(int vertexCount,
Vec3f[] vertices,
Vec3f[] normals,
Color3f[] colors)
IntrinsicCrossSection
public IntrinsicCrossSection(IntrinsicCrossSection base)
scale
public void scale(Vector3f scale)
rotate
public void rotate(float angle,
Vec3f x0,
Vec3f direction)
rotate
public void rotate(float angle,
Vec3f direction)
generatePoints
public Point3f[] generatePoints(FrenetTrihedron trihedron)
generateNormals
public Vector3f[] generateNormals(FrenetTrihedron trihedron)
setNormalsByVector
public void setNormalsByVector(Vec3f direction)
setNormalsByVector
public void setNormalsByVector(Vector3f direction)
averageNormals
public void averageNormals()
setColors
public void setColors(Color3f[] colors)
setSideColor
public void setSideColor(Color3f sideColor)
getVertexCount
public int getVertexCount()
getSideColor
public Color3f getSideColor()
getVertices
public Vec3f[] getVertices()
getVectorVertices
public Vector3f[] getVectorVertices()
getNormals
public Vec3f[] getNormals()
getVectorNormals
public Vector3f[] getVectorNormals()
getColors
public Color3f[] getColors()