Class TLspMoveDescriptor

java.lang.Object
com.luciad.view.lightspeed.editor.operation.TLspMoveDescriptor

public class TLspMoveDescriptor extends Object
Object that describes a translation.

TLspMoveDescriptor defines a translation by providing a start point (getStartPoint()) and a target point (getTargetPoint()). If both are defined the editor should make sure that the move operation maps the start point to the target point. If the start point is null the editor is free to interpret the move operation as fit.

Moving may be constrained to certain dimensions defined by the descriptors TLspMoveDescriptor.Constraints.

Since:
2012.0
  • Constructor Details

    • TLspMoveDescriptor

      public TLspMoveDescriptor(ILcdModelReference aModelReference, ILcdPoint aStartPoint, ILcdPoint aTargetPoint)
      Creates a new unconstrained move from start to target point
      Parameters:
      aModelReference - the given model reference
      aStartPoint - the given start point
      aTargetPoint - the given target point
    • TLspMoveDescriptor

      public TLspMoveDescriptor(TLspMoveDescriptor.Constraints aConstraints, ILcdModelReference aModelReference, ILcdPoint aStartPoint, ILcdPoint aTargetPoint)
      Creates a new Constrained move from start to target point
      Parameters:
      aConstraints - the constraints of the move.
      aModelReference - the given model reference
      aStartPoint - the given start point
      aTargetPoint - the given target point
  • Method Details

    • getModelReference

      public ILcdModelReference getModelReference()
      Returns the model reference of this TLspMoveDescriptor
      Returns:
      the model reference of this TLspMoveDescriptor
    • getStartPoint

      public ILcdPoint getStartPoint()
      Returns the start point of this TLspMoveDescriptor
      Returns:
      the start point of this TLspMoveDescriptor
    • getTargetPoint

      public ILcdPoint getTargetPoint()
      Returns the target point of this TLspMoveDescriptor
      Returns:
      the target point of this TLspMoveDescriptor
    • getConstraints

      public TLspMoveDescriptor.Constraints getConstraints()
      Returns the constraints of this TLspMoveDescriptor
      Returns:
      the constraints of this TLspMoveDescriptor