]> gerrit.simantics Code Review - simantics/platform.git/commit
Render elements using custom color filters 33/4333/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Thu, 2 Jul 2020 09:25:51 +0000 (12:25 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Thu, 2 Jul 2020 09:25:51 +0000 (12:25 +0300)
commit4d3f88eb0edb95b8bc7dedb136f0048ff3918506
treead0faec61255f3bf8906687d912652fec98df416
parent962dc58e13349c7c9947dceec3ad62777afc06e2
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