Skip to content

New state to manipulate selection/shapes/two points tool #1847

@dacap

Description

@dacap

We talked about this with @Gasparoken. We need a new TransformationState similar to MovingPixelsState but more generic.

As a first step this new state will be internal and only for testing purposes. The state should be useful to transform a rectangular shape into any form with a transformation matrix (or maybe more). This state should be as generic as a SelectBoxState+SelectBoxDelegate (so we will need a TransformationState+TransformationDelegate too to use the transformation in something useful in the future).

This state will be useful to fix:

Basically the state should have:

  1. An input: a rectangle
  2. An output: a transformation (preferably a transformation matrix and maybe a set of points for free transformation, like Transformation in PixelsMovement) and the transformed points/rectangle.

Ask to @dacap before you start working on this issue.

Notes: There are some online examples about the relationship between the transformation matrix <-> what we should see in the editor:

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request, or something should be improvedlow prioritymaintenancerefactor complexityThis issue needs some refactor / modifying several files / rethinking some part of the architecture

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions