Class TLspEditable3DPrimitive
java.lang.Object
com.luciad.view.lightspeed.geometry.discretization.ALsp3DPrimitive
com.luciad.view.lightspeed.geometry.discretization.TLspEditable3DPrimitive
An editable implementation of
ALsp3DPrimitive
.- Since:
- 2012.0
-
Constructor Summary
ConstructorDescriptionConstructs a new editable 3D primitive with the give type.TLspEditable3DPrimitive
(ALsp3DPrimitive aPrimitive) Constructs a new editable 3D primitive that contains the the elements of the given primitive. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Returns the number of elements contained in this primitive.Returns this primitive's type.void
setElement
(int aIndex, int aValue) Sets the element at the given index.
-
Constructor Details
-
TLspEditable3DPrimitive
Constructs a new editable 3D primitive that contains the the elements of the given primitive.- Parameters:
aPrimitive
- the primitive to copy (shallowly)
-
TLspEditable3DPrimitive
Constructs a new editable 3D primitive with the give type.- Parameters:
aType
- the primitive type.
-
-
Method Details
-
getPrimitiveType
Description copied from class:ALsp3DPrimitive
Returns this primitive's type.- Specified by:
getPrimitiveType
in classALsp3DPrimitive
- Returns:
- this primitive's type
-
getElementCount
public int getElementCount()Description copied from class:ALsp3DPrimitive
Returns the number of elements contained in this primitive.- Specified by:
getElementCount
in classALsp3DPrimitive
- Returns:
- the number of elements contained in this primitive
-
getElement
public int getElement(int i) Description copied from class:ALsp3DPrimitive
Returns the point index at the specified index.- Specified by:
getElement
in classALsp3DPrimitive
- Parameters:
i
- the index of the requested point- Returns:
- the point index at the specified index
-
addElement
public void addElement(int aIdx) Adds the given primitive element to the list of elements.- Parameters:
aIdx
- the point index to add
-
addElements
Adds the given primitive elements to the list of elements.- Parameters:
aElements
- the primitive elements to add
-
setElement
public void setElement(int aIndex, int aValue) Sets the element at the given index.- Parameters:
aIndex
- a given element indexaValue
- the new point index to set
-