Skip to content

Fill method for PyDMDrawingIrregularPolygon #1266

@lsomoza6464

Description

@lsomoza6464

What's the problem this feature will solve?

As PyDM is now, there is no way to generate an arbitrary polygon widget and fill it with a brush color. This solution will allow for any polygon (not just regular polygons) to be created and filled.

Also, currently PyDMDrawingIrregularPolygon's brush affects the fill color of its arrow rather than filling the polygon because it inherits the brush logic from PyDMDrawingPolyLine instead of filling itself.

Describe the solution you'd like.

This feature will add the ability to fill the inside of an irregular polygon either by modifying the current PyDMDrawingPolygon class to support irregular polygons (given each point of the polygon) or by adding a fill method to the PyDMDrawingIrregularPolygon class.

Additional context.

This feature will help with the EDM to PyDM converter by allowing for this polygon filling functionality that EDM has but PyDM currently does not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions