Class Point
- java.lang.Object
-
- renderer.scene.primitives.Primitive
-
- renderer.scene.primitives.Point
-
-
Field Summary
Fields Modifier and Type Field Description intradius-
Fields inherited from class renderer.scene.primitives.Primitive
cIndexList, vIndexList
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()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 aPointobject using an integer index. Use the given index for both theVertexand theColorlists.NOTE: This constructor does not put a
Vertexor aColorobject into thisPrimitive'sModelobject. This constructor assumes that the given index is valid (or will be valid by the time thisPrimitivegets rendered).
-
Point
public Point(int v, int c)
Construct aPointobject using two integer indices, one for theVertexlist and one for theColorlist.NOTE: This constructor does not put a
Vertexor aColorobject into thisPrimitive'sModelobject. This constructor assumes that the given indices are valid (or will be valid by the time thisPrimitivegets rendered).
-
Point
public Point(List<Integer> vIndexList, List<Integer> cIndexList)
Construct aPointobject using the two givenLists of integer indices.NOTE: This constructor does not put any
VertexorColorobjects into thisPrimitive'sModelobject. This constructor assumes that the given indices are valid (or will be valid by the time thisPrimitivegets rendered).- Parameters:
vIndexList-Listof integer indices into aVertexlistcIndexList-Listof integer indices into aColorlist- Throws:
NullPointerException- ifvIndexListisnullNullPointerException- ifcIndexListisnullIllegalArgumentException- if the size ofvIndexListorcIndexListis not 1
-
-