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.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
getColor()
Get the color of this point.
|
|
|
getName()
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.
|
|
|
setPosition(pos)
Set the position of point.
|
|
|
setVisible(visible)
Set the visibility of this 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.