edu.sdsc.mbt.viewers.GLViewerImpl
Class CrossSectionStyle

java.lang.Object
  extended byedu.sdsc.mbt.viewers.GLViewerImpl.CrossSectionStyle

public class CrossSectionStyle
extends java.lang.Object

CrossSectionStyle class encapsulates descriptors of the cross section of the ribon used for building SS.

Author:
Apostol Gramada

Field Summary
static int DOUBLE_FACE
          Standard - Styles: Plane Single Face
static int OBLONG
          Standard - Styles: "Elliptical" (not elliptical yet) CrossSection
static int POINT
          Standard - Styles: Polyline
static int RECTANGULAR_RIBBON
          Standard - Styles: Rectangular CrossSection
static int REGULAR_POLYGON
          Standard - Styles: POLYGONAL CrossSection
static int ROUNDED_TUBE
          Standard - Styles: POLYGONAL ROUNDED CrossSection
static int SINGLE_FACE
          Standard - Styles: Plane Double Face
 
Constructor Summary
CrossSectionStyle()
          Creates a CrossSectionStyle with nothing set initially
CrossSectionStyle(boolean closedFlag, int vertices, float[] diams)
          Creates a minimal-defined CrossSectionStyle from given polygon type (closed of open), number of vertices and diameter
CrossSectionStyle(int type, float[] diams)
          Creates a CrossSectionStyle from a predefined list and with a given diameter set.
 
Method Summary
 boolean getClosedFlag()
          Get the closed/open Polygon flag
 float[] getDiameters()
          Get the number of vertices
 java.lang.String getStyleName()
          Get the Style Name
 int getStyleType()
          Get the Style Type
 Color3f[] getVertexColors()
          Set the vertex colors
 int getVertexCount()
          Get the number of vertices
 void setClosedFlag(boolean closed)
          Set the closed/open Polygon flag
 void setDiameters(float[] diams)
          Set the number of vertices
 void setStyleName(java.lang.String name)
          Set the Style Name
 void setVertexColors(Color3f[] colors)
          Set the vertex colors
 void setVertexCount(int vertices)
          Set the number of vertices
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECTANGULAR_RIBBON

public static int RECTANGULAR_RIBBON
Standard - Styles: Rectangular CrossSection


DOUBLE_FACE

public static int DOUBLE_FACE
Standard - Styles: Plane Single Face


SINGLE_FACE

public static int SINGLE_FACE
Standard - Styles: Plane Double Face


OBLONG

public static int OBLONG
Standard - Styles: "Elliptical" (not elliptical yet) CrossSection


REGULAR_POLYGON

public static int REGULAR_POLYGON
Standard - Styles: POLYGONAL CrossSection


ROUNDED_TUBE

public static int ROUNDED_TUBE
Standard - Styles: POLYGONAL ROUNDED CrossSection


POINT

public static int POINT
Standard - Styles: Polyline

Constructor Detail

CrossSectionStyle

public CrossSectionStyle()
Creates a CrossSectionStyle with nothing set initially


CrossSectionStyle

public CrossSectionStyle(boolean closedFlag,
                         int vertices,
                         float[] diams)
Creates a minimal-defined CrossSectionStyle from given polygon type (closed of open), number of vertices and diameter


CrossSectionStyle

public CrossSectionStyle(int type,
                         float[] diams)
Creates a CrossSectionStyle from a predefined list and with a given diameter set.

Method Detail

setStyleName

public void setStyleName(java.lang.String name)
Set the Style Name


setVertexColors

public void setVertexColors(Color3f[] colors)
Set the vertex colors


setClosedFlag

public void setClosedFlag(boolean closed)
Set the closed/open Polygon flag


setVertexCount

public void setVertexCount(int vertices)
Set the number of vertices


setDiameters

public void setDiameters(float[] diams)
Set the number of vertices


getStyleName

public java.lang.String getStyleName()
Get the Style Name


getStyleType

public int getStyleType()
Get the Style Type


getVertexColors

public Color3f[] getVertexColors()
Set the vertex colors


getClosedFlag

public boolean getClosedFlag()
Get the closed/open Polygon flag


getVertexCount

public int getVertexCount()
Get the number of vertices


getDiameters

public float[] getDiameters()
Get the number of vertices