public class TLspEditable3DPrimitive extends ALsp3DPrimitive
ALsp3DPrimitive
.Constructor and Description |
---|
TLspEditable3DPrimitive(ALsp3DPrimitive aPrimitive)
Constructs a new editable 3D primitive that contains the
the elements of the given primitive.
|
TLspEditable3DPrimitive(TLcd3DPrimitiveType aType)
Constructs a new editable 3D primitive with the give type.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(int aIdx)
Adds the given primitive element to the list of elements.
|
void |
addElements(Collection<Integer> aElements)
Adds the given primitive elements to the list of elements.
|
int |
getElement(int i)
Returns the point index at the specified index.
|
int |
getElementCount()
Returns the number of elements contained in this primitive.
|
TLcd3DPrimitiveType |
getPrimitiveType()
Returns this primitive's type.
|
void |
setElement(int aIndex,
int aValue)
Sets the element at the given index.
|
public TLspEditable3DPrimitive(ALsp3DPrimitive aPrimitive)
aPrimitive
- the primitive to copy (shallowly)public TLspEditable3DPrimitive(TLcd3DPrimitiveType aType)
aType
- the primitive type.public TLcd3DPrimitiveType getPrimitiveType()
ALsp3DPrimitive
getPrimitiveType
in class ALsp3DPrimitive
public int getElementCount()
ALsp3DPrimitive
getElementCount
in class ALsp3DPrimitive
public int getElement(int i)
ALsp3DPrimitive
getElement
in class ALsp3DPrimitive
i
- the index of the requested pointpublic void addElement(int aIdx)
aIdx
- the point index to addpublic void addElements(Collection<Integer> aElements)
aElements
- the primitive elements to addpublic void setElement(int aIndex, int aValue)
aIndex
- a given element indexaValue
- the new point index to set