Class TLspEditable3DPrimitive

java.lang.Object
com.luciad.view.lightspeed.geometry.discretization.ALsp3DPrimitive
com.luciad.view.lightspeed.geometry.discretization.TLspEditable3DPrimitive

public class TLspEditable3DPrimitive extends ALsp3DPrimitive
An editable implementation of ALsp3DPrimitive.
Since:
2012.0
  • Constructor Details

    • TLspEditable3DPrimitive

      public TLspEditable3DPrimitive(ALsp3DPrimitive aPrimitive)
      Constructs a new editable 3D primitive that contains the the elements of the given primitive.
      Parameters:
      aPrimitive - the primitive to copy (shallowly)
    • TLspEditable3DPrimitive

      public TLspEditable3DPrimitive(TLcd3DPrimitiveType aType)
      Constructs a new editable 3D primitive with the give type.
      Parameters:
      aType - the primitive type.
  • Method Details

    • getPrimitiveType

      public TLcd3DPrimitiveType getPrimitiveType()
      Description copied from class: ALsp3DPrimitive
      Returns this primitive's type.
      Specified by:
      getPrimitiveType in class ALsp3DPrimitive
      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 class ALsp3DPrimitive
      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 class ALsp3DPrimitive
      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

      public void addElements(Collection<Integer> aElements)
      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 index
      aValue - the new point index to set