public class

Point

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

Class Overview

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

Summary

Constants
int POINT
int POINTS
int POINTS_3D
int POINT_3D
[Expand]
Inherited Fields
From class casmi.graphics.element.Element
Public Constructors
Point(double x, double y)
Creates a new Point object using x,y-coordinate.
Point(double x, double y, double z)
Creates a new Point object using x,y,z-coordinate.
Public Methods
void render(GL2 gl, GLU glu, int width, int height, boolean selection)
void reset(GL2 gl)
void set(double x, double y)
Sets x,y-coordinate.
void set(double x, double y, double z)
Sets x,y,z-coordinate.
[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 POINT

Constant Value: 0 (0x00000000)

public static final int POINTS

Constant Value: 1 (0x00000001)

public static final int POINTS_3D

Constant Value: 3 (0x00000003)

public static final int POINT_3D

Constant Value: 2 (0x00000002)

Public Constructors

public Point (double x, double y)

Creates a new Point object using x,y-coordinate.

Parameters
x The x-coordinate of the Point.
y The y-coordinate of the Point.

public Point (double x, double y, double z)

Creates a new Point object using x,y,z-coordinate.

Parameters
x The x-coordinate of the Point.
y The y-coordinate of the Point.
z The z-coordinate of the Point.

Public Methods

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

public void reset (GL2 gl)

public void set (double x, double y)

Sets x,y-coordinate.

Parameters
x The x-coordinate of the Point.
y The y-coordinate of the Point.

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

Sets x,y,z-coordinate.

Parameters
x The x-coordinate of the Point.
y The y-coordinate of the Point.
z The z-coordinate of the Point.