public class

Lines

extends Element
java.lang.Object
   ↳ casmi.graphics.element.Element
     ↳ casmi.graphics.element.Lines

Class Overview

Lines class. Wrap JOGL and make it easy to use.

Summary

Constants
int LINES
int LINES_3D
int LINE_LOOP
[Expand]
Inherited Fields
From class casmi.graphics.element.Element
Public Constructors
Lines()
Creates a new Lines object.
Public Methods
Vector3D getVertex(int i)
Gets the coordinates of the point.
void removeVertex(int i)
Removes the point from Lines.
void render(GL2 gl, GLU glu, int width, int height, boolean selection)
void reset(GL2 gl)
void setCornerColor(int index, Color color)
Sets the point's color for gradation.
void setCornerColor(int index, ColorSet colorSet)
Sets the point's color for gradation.
void setEndCornerColor(Color color)
Sets the end point's color for gradation.
void setEndCornerColor(ColorSet colorSet)
Sets the end point's color for gradation.
void setStartCornerColor(ColorSet colorSet)
Sets the start point's color for gradation.
void setStartCornerColor(Color color)
Sets the start point's color for gradation.
void setVertex(int i, double x, double y, double z)
Sets the coordinates of the point.
void setVertex(int i, double x, double y)
Sets the coordinates of the point.
void vertex(double x, double y)
Adds the point to Lines.
void vertex(double x, double y, double z)
Adds the point to Lines.
void vertex(Vector3D v)
Adds the point to Lines.
[Expand]
Inherited Methods
From class casmi.graphics.element.Element
From class java.lang.Object
From interface casmi.graphics.object.Renderable
From interface casmi.graphics.object.Resettable

Constants

public static final int LINES

Constant Value: 1 (0x00000001)

public static final int LINES_3D

Constant Value: 3 (0x00000003)

public static final int LINE_LOOP

Constant Value: 51 (0x00000033)

Public Constructors

public Lines ()

Creates a new Lines object.

Public Methods

public Vector3D getVertex (int i)

Gets the coordinates of the point.

Parameters
i The index number of the point.
Returns
  • The coordinates of the point.

public void removeVertex (int i)

Removes the point from Lines.

Parameters
i The index number of the point.

public void render (GL2 gl, GLU glu, int width, int height, boolean selection)

public void reset (GL2 gl)

public void setCornerColor (int index, Color color)

Sets the point's color for gradation.

Parameters
index The index number of the point.
color The color of the point.

public void setCornerColor (int index, ColorSet colorSet)

Sets the point's color for gradation.

Parameters
index The index number of the point.
colorSet The colorSet of the point.

public void setEndCornerColor (Color color)

Sets the end point's color for gradation.

Parameters
color The color of the end point.

public void setEndCornerColor (ColorSet colorSet)

Sets the end point's color for gradation.

Parameters
colorSet The colorSet of the end point.

public void setStartCornerColor (ColorSet colorSet)

Sets the start point's color for gradation.

Parameters
colorSet The colorSet of the start point.

public void setStartCornerColor (Color color)

Sets the start point's color for gradation.

Parameters
color The color of the start point.

public void setVertex (int i, double x, double y, double z)

Sets the coordinates of the point.

Parameters
i The index number of the point.
x The x-coordinate of the point.
y The y-coordinate of the point.
z The z-coordinate of the point.

public void setVertex (int i, double x, double y)

Sets the coordinates of the point.

Parameters
i The index number of the point.
x The x-coordinate of the point.
y The y-coordinate of the point.

public void vertex (double x, double y)

Adds the point to Lines.

Parameters
x The x-coordinate of a new added point.
y The y-coordinate of a new added point.

public void vertex (double x, double y, double z)

Adds the point to Lines.

Parameters
x The x-coordinate of a new added point.
y The y-coordinate of a new added point.
z The z-coordinate of a new added point.

public void vertex (Vector3D v)

Adds the point to Lines.

Parameters
v The coordinates of a new added point.