Class ScaleSelection

All Implemented Interfaces:
Argument, KeyedStatefulCommand, SemiStatefulCommand, StatefulCommand<Void>, EventListener

public class ScaleSelection extends AbstractTransform
A sub-command of TransformCmd who uses the handles made by AbstractTransform and the key-setters provided by AbstractTransform from KeyedStatefulCommand to scale a selection of points or triangles.

As like any other implementor of AbstractTransform, scale provides the following functions based on the given input:

  • (No Handle Selected) + UP/DOWN KEY : +/-(Scale Uniformly)
  • X Handle + UP/DOWN KEY : +/-(Scale X-Axis)
  • Y Handle + UP/DOWN KEY : +/-(Scale Y-Axis)
  • Z Handle + UP/DOWN KEY : +/-(Scale Z-Axis)

Aliases: s, size, sc

The mouse owner for translate (ScaleMouseOwner) provides no extra drawing or logic other than handle clicking which is inherited from TransformMouseOwner

Typical Usage:


     transform scale      - Scale Faces Uniformly
     trans sc p           - Scale Points Uniformly
     t size f             - Scale Faces Uniformly
     transform sc v       - Scale Points Uniformly
     selection scale t    - Scale Faces Uniformly
     

See AbstractTransform for more information onthe distinction between point mode and face mode.
Author:
Lehlogonolo Poole
See Also:
  • Field Details

  • Constructor Details

    • ScaleSelection

      ScaleSelection()
  • Method Details

    • getInverseStepSize

      public double getInverseStepSize()
    • upKey

      public void upKey(GPoint gpoint, Vector3 scaleAxis)
    • downKey

      public void downKey(GPoint gpoint, Vector3 scaleAxis)