Class Point
- java.lang.Object
-
- renderer.scene.primitives.Primitive
-
- renderer.scene.primitives.Point
-
-
Field Summary
Fields Modifier and Type Field Description int
radius
-
Fields inherited from class renderer.scene.primitives.Primitive
cIndexList, vIndexList
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
For debugging.-
Methods inherited from class renderer.scene.primitives.Primitive
addIndex, addIndices, setColorIndex, setColorIndices
-
-
-
-
Field Detail
-
radius
public int radius
-
-
Constructor Detail
-
Point
public Point(int i)
Construct aPoint
object using an integer index. Use the given index for both theVertex
and theColor
lists.NOTE: This constructor does not put a
Vertex
or aColor
object into thisPrimitive
'sModel
object. This constructor assumes that the given index is valid (or will be valid by the time thisPrimitive
gets rendered).
-
Point
public Point(int v, int c)
Construct aPoint
object using two integer indices, one for theVertex
list and one for theColor
list.NOTE: This constructor does not put a
Vertex
or aColor
object into thisPrimitive
'sModel
object. This constructor assumes that the given indices are valid (or will be valid by the time thisPrimitive
gets rendered).
-
Point
public Point(List<Integer> vIndexList, List<Integer> cIndexList)
Construct aPoint
object using the two givenList
s of integer indices.NOTE: This constructor does not put any
Vertex
orColor
objects into thisPrimitive
'sModel
object. This constructor assumes that the given indices are valid (or will be valid by the time thisPrimitive
gets rendered).- Parameters:
vIndexList
-List
of integer indices into aVertex
listcIndexList
-List
of integer indices into aColor
list- Throws:
NullPointerException
- ifvIndexList
isnull
NullPointerException
- ifcIndexList
isnull
IllegalArgumentException
- if the size ofvIndexList
orcIndexList
is not 1
-
-