]> gerrit.simantics Code Review - simantics/platform.git/commit
Render elements using custom color filters
authorJussi Koskela <jussi.koskela@semantum.fi>
Thu, 2 Jul 2020 09:25:51 +0000 (12:25 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Wed, 29 Jul 2020 15:16:18 +0000 (18:16 +0300)
commit190e79d8a175f2f9af9a4ccea03cff1480bc8bf3
treec42ea28de32dbcf56d824ec1e0685e825d023030
parentffd2a3a8215264a02b0a59ac04edc314283f6607
Render elements using custom color filters

WIP: Still lacks a mechanism to read color filters for elements from DB.
Currently filters can be set manually for elements with the
ElementHints.KEY_COLOR_FILTER hint.

gitlab simantics/platform#569

Change-Id: Id0bbbdeea3d4c9a27f2778f7bdcab74f5f784322
bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/participant/ElementPainter.java
bundles/org.simantics.g2d/src/org/simantics/g2d/element/ElementHints.java
bundles/org.simantics.scenegraph/META-INF/MANIFEST.MF
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DRenderingHints.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/color/BWColorFilter.java [new file with mode: 0644]
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/color/ColorFilter.java [new file with mode: 0644]
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/color/Graphics2DWithColorFilter.java [new file with mode: 0644]
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SingleElementNode.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/BufferedImage.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/MipMapBufferedImage.java
bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/utils/MipMapVRamBufferedImage.java