Class LeafLineImpl

All Implemented Interfaces:
Transformation, Pickable, Renderable, Manageable, PersistenceCapable, Shareable, PointCloudLeaf, UserFields, XObject, Map, Serializable

public class LeafLineImpl extends Line implements PointCloudLeaf
See Also:
  • Field Details

    • idImport

      protected long idImport
    • $TYPE

      public static final Node.NType $TYPE
    • idImport$FIELD

      public static final Node.NType.Field idImport$FIELD
  • Constructor Details

    • LeafLineImpl

      public LeafLineImpl()
    • LeafLineImpl

      public LeafLineImpl(StringMap args)
    • LeafLineImpl

      public LeafLineImpl(Node p1, Node p2)
    • LeafLineImpl

      public LeafLineImpl(Node[] nodes)
    • LeafLineImpl

      public LeafLineImpl(float x, float y, float z, float dx, float dy, float dz)
    • LeafLineImpl

      public LeafLineImpl(LeafPointImpl p1, LeafPointImpl p2)
  • Method Details

    • getNode

      public Node getNode()
      Specified by:
      getNode in interface PointCloudLeaf
    • toNull

      public Node toNull(Null node)
      Apply a transformation to "node" to make it translate a start position of line
      Parameters:
      node -
      Returns:
    • toAxis

      public Node toAxis(AxisBase node)
      Apply a transformation to "node" to make it translate a start position of line. And rotate toward the end point. If the node is of type Axis, it also set its length to the line length. There is a CLEAR ERROR somewhere as the newly created axis do not have the correct direction. I don't understand how the transformation matrixes work. and why this do not work. TODO: fix this
      Parameters:
      node -
      Returns:
    • getLocation

      public Vector3d getLocation()
      Specified by:
      getLocation in interface PointCloudLeaf
    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Line
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Line
      Returns:
      new instance of class of this node
    • getIdImport

      public long getIdImport()
      Specified by:
      getIdImport in interface PointCloudLeaf
    • setIdImport

      public void setIdImport(long value)
      Specified by:
      setIdImport in interface PointCloudLeaf