edu.sdsc.mbt.viewers.GLViewerImpl
Class IntrinsicCrossSection

java.lang.Object
  extended byedu.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

Constructor Summary
IntrinsicCrossSection()
           
IntrinsicCrossSection(int vertexCount)
           
IntrinsicCrossSection(IntrinsicCrossSection base)
           
IntrinsicCrossSection(int vertexCount, Vec3f[] vertices)
           
IntrinsicCrossSection(int vertexCount, Vec3f[] vertices, Vec3f[] normals)
           
IntrinsicCrossSection(int vertexCount, Vec3f[] vertices, Vec3f[] normals, Color3f[] colors)
           
 
Method Summary
 void averageNormals()
           
 Vector3f[] generateNormals(FrenetTrihedron trihedron)
           
 Point3f[] generatePoints(FrenetTrihedron trihedron)
           
 Color3f[] getColors()
           
 Vec3f[] getNormals()
           
 Color3f getSideColor()
           
 Vector3f[] getVectorNormals()
           
 Vector3f[] getVectorVertices()
           
 int getVertexCount()
           
 Vec3f[] getVertices()
           
 void rotate(float angle, Vec3f direction)
           
 void rotate(float angle, Vec3f x0, Vec3f direction)
           
 void scale(Vector3f scale)
           
 void setColors(Color3f[] colors)
           
 void setNormalsByVector(Vec3f direction)
           
 void setNormalsByVector(Vector3f direction)
           
 void setSideColor(Color3f sideColor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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()