Class Index | File Index

Classes


Class c3dl.Point

c3dl.Point is an object with a position and color which will be rendered using OpenGL's built-in point rendering (either as a circle or square depending on smoothing) or rendered as sphere meshes.

The default rendering mode for any scene renders the points as sphere meshes.
Defined in: point.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Get the color of this point.
 
Get the name of this point.
 
 
Get the position of the point.
 
Get the visibility of the point.
 
setColor(color)
Set the color of this point.
 
setName(name)
Set the name of this point.
 
Set the position of point.
 
setVisible(visible)
Set the visibility of this point.
Class Detail
c3dl.Point()
Method Detail
{Array} getColor()
Get the color of this point.
Returns:
{Array} Three floating point values in the order RGB.

{String} getName()
Get the name of this point. The name is empty by default.
Returns:
{String} name of this point.

getObjectType()

{Array} getPosition()
Get the position of the point.
Returns:
{Array} Array of 3 values in the order [x,y,z].

{bool} isVisible()
Get the visibility of the point.
Returns:
{bool} visible true if the point should be rendered, otherwise false.

setColor(color)
Set the color of this point.
Parameters:
{Array} color
An array of 3 values in the order RGB. Each component ranges from 0.0 to 1.0.

setName(name)
Set the name of this point. The default name set is empty.
Parameters:
{String} name
The name to assign this point.

setPosition(pos)
Set the position of point.
Parameters:
{Array} pos
Array of 3 values in the order [x,y,z] which defines the new coordinate for this point.

setVisible(visible)
Set the visibility of this point.
Parameters:
{bool} visible
true if the point should be visible, otherwise false.

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Feb 19 2010 17:58:41 GMT-0500 (EST)