Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for scenery 0.9.0 #524

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f4bfc8e
[wip] OpenOrganelle demo, super not working yet
kephale Jun 13, 2023
1e5b9d7
Merge branch 'master' into openorganelle-demo
kephale Jun 15, 2023
ed52d8a
Merge branch 'master' into openorganelle-demo
kephale Jun 15, 2023
8eb98af
Gradle: Bump scenery to 0.9.0, pom-scijava to 35.1.1, fix snakeyaml t…
skalarproduktraum Jun 16, 2023
174e8cb
Adjust for changed APIs in scenery 0.9.0
skalarproduktraum Jun 16, 2023
370c8da
SwingSwapchain/REPLPane: Do UI initialisation on EDT, initialise REPL…
smlpt Jun 16, 2023
9336272
Gradle: Bump to latest staging repo for scenery
skalarproduktraum Jun 16, 2023
bc95ffa
SwingNodePropertyEditor: Add TransferFunctionEditor for volumes
skalarproduktraum Jun 16, 2023
d119572
Merge branch 'master' into scenery-0.9.0
kephale Jun 17, 2023
f8df1ea
Merge branch 'openorganelle-demo' into scenery-0.9.0
kephale Jun 17, 2023
977e9aa
Switch to main repo from staging
kephale Jul 14, 2023
6a61f6a
Revert "Switch to main repo from staging"
kephale Jul 14, 2023
00172da
Remove OpenOrganelle demo that was accidentally added too early
kephale Jul 14, 2023
e51ebbe
Merge branch 'master' into scenery-0.9.0
kephale Jul 14, 2023
1404e78
Remove OpenOrganelle menu weight
kephale Jul 14, 2023
9b1d9a4
Switch to main repo from staging
kephale Jul 14, 2023
9ece143
Gradle: Bump scenery to 0.9.0, pom-scijava to 35.1.1, fix snakeyaml t…
skalarproduktraum Jun 16, 2023
210d9a0
Adjust for changed APIs in scenery 0.9.0
skalarproduktraum Jun 16, 2023
5f05973
SwingSwapchain/REPLPane: Do UI initialisation on EDT, initialise REPL…
smlpt Jun 16, 2023
414505f
Gradle: Bump to latest staging repo for scenery
skalarproduktraum Jun 16, 2023
b815e4d
SwingNodePropertyEditor: Add TransferFunctionEditor for volumes
skalarproduktraum Jun 16, 2023
4a26213
Gradle: Bump scenery staging repo to latest version
skalarproduktraum Jun 21, 2023
161d744
Gradle: Use correct pom-scijava version when building Maven POM
skalarproduktraum Jun 21, 2023
7f7f57e
SwingGroupingInputHarvester: Indicate open/closed groups
skalarproduktraum Jul 7, 2023
edb8309
SwingNodePropertyEditor: Try to fix layout for TransferFunctionEditor
skalarproduktraum Jul 7, 2023
71ac4aa
Gradle: Remove staging repo to point to scenery 0.9.0 release
skalarproduktraum Jul 14, 2023
d50e2a8
Gradle: Manage scijava parent POM, Kotlin, and Dokka versions in grad…
skalarproduktraum Jul 14, 2023
84673ec
[wip] OpenOrganelle demo, super not working yet
kephale Jun 13, 2023
f303605
Switch to main repo from staging
kephale Jul 14, 2023
ca750c7
Revert "Switch to main repo from staging"
kephale Jul 14, 2023
79576f4
Remove OpenOrganelle demo that was accidentally added too early
kephale Jul 14, 2023
b5fc824
Remove OpenOrganelle menu weight
kephale Jul 14, 2023
04bb7e4
Switch to main repo from staging
kephale Jul 14, 2023
18712ea
Remove explicit versioning of n5-ij
kephale Jul 14, 2023
9fd25f7
Merge branch 'scenery-0.9.0' of github.com:scenerygraphics/sciview in…
kephale Jul 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 26 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import java.net.URL
import sciview.*

plugins {
val ktVersion = "1.8.20"
val ktVersion = "1.8.22"
val dokkaVersion = "1.8.20"

java
Expand All @@ -25,43 +25,47 @@ java {
}

repositories {
if(project.properties["useMavenLocal"] == "true") {
logger.warn("Using local Maven repository as source")
mavenLocal()
}
mavenCentral()
maven("https://maven.scijava.org/content/groups/public")
}

dependencies {
val ktVersion = "1.8.20"
implementation(platform("org.scijava:pom-scijava:31.1.0"))
val ktVersion = "1.8.22"
implementation(platform("org.scijava:pom-scijava:35.1.1"))

// Graphics dependencies

annotationProcessor("org.scijava:scijava-common:2.90.0")
kapt("org.scijava:scijava-common:2.90.0") { // MANUAL version increment
// Attention! Manual version increment necessary here!
val scijavaCommonVersion = "2.94.1"
annotationProcessor("org.scijava:scijava-common:$scijavaCommonVersion")
kapt("org.scijava:scijava-common:$scijavaCommonVersion") {
exclude("org.lwjgl")
}

val sceneryVersion = "0.8.0"
val sceneryVersion = "0.9.0"
api("graphics.scenery:scenery:$sceneryVersion") {
version { strictly(sceneryVersion) }
exclude("org.biojava.thirdparty", "forester")
exclude("null", "unspecified")
}

implementation("com.fasterxml.jackson.core:jackson-databind:2.13.4.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.4")
implementation("org.msgpack:jackson-dataformat-msgpack:0.9.3")
implementation("net.java.dev.jna:jna-platform:5.11.0")
implementation("net.clearvolume:cleargl")
implementation("org.janelia.saalfeldlab:n5")
implementation("org.janelia.saalfeldlab:n5-imglib2")
implementation("org.apache.logging.log4j:log4j-api:2.20.0")
implementation("org.apache.logging.log4j:log4j-1.2-api:2.20.0")

implementation("com.formdev:flatlaf:2.6")
implementation("com.formdev:flatlaf")

// SciJava dependencies

implementation("org.yaml:snakeyaml") {
version { strictly("1.33") }
}
implementation("org.scijava:scijava-common")
implementation("org.scijava:ui-behaviour")
implementation("org.scijava:script-editor")
Expand Down Expand Up @@ -110,6 +114,14 @@ dependencies {
// implementation(n5.imglib2)
implementation("org.janelia.saalfeldlab:n5")
implementation("org.janelia.saalfeldlab:n5-hdf5")
implementation("org.janelia.saalfeldlab:n5-ij:3.2.4-SNAPSHOT")
implementation("org.janelia.saalfeldlab:n5-imglib2:5.0.0")
implementation("org.janelia.saalfeldlab:n5-viewer_fiji:5.3.0")
//implementation("com.github.saalfeldlab:n5-viewer:ec0b177")
implementation("org.janelia.saalfeldlab:n5-aws-s3")
implementation("org.janelia.saalfeldlab:n5-google-cloud")
implementation("org.janelia.saalfeldlab:n5-blosc")
implementation("org.janelia.saalfeldlab:n5-zarr")
implementation("sc.fiji:spim_data")

implementation(platform(kotlin("bom")))
Expand Down Expand Up @@ -435,5 +447,7 @@ artifacts {
archives(dokkaHtmlJar)
}



java.withSourcesJar()

Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void run() {
sciView.centerOnNode( sciView.getActiveNode() );

for( PointLight light : sciView.getLights() ) {
Icosphere s = new Icosphere(1f, 1);
Icosphere s = new Icosphere(1f, 1, false);
s.getMaterial().setDiffuse(light.getEmissionColor());
s.getMaterial().setAmbient(light.getEmissionColor());
s.getMaterial().setSpecular(light.getEmissionColor());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private Node makeAxis( float axisLength, float angleX, float angleY, float angle
return null;
});

Icosphere axisCap = new Icosphere(AXESBARRADIUS, 2);
Icosphere axisCap = new Icosphere(AXESBARRADIUS, 2, false);
axisCap.ifSpatial(spatial -> {
spatial.setPosition(new Vector3f(0, axisLength, 0));
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sc/iview/io/N5IO.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
package sc.iview.io;

import bdv.util.AxisOrder;
import bvv.core.VolumeViewerOptions;
import graphics.scenery.Group;
import graphics.scenery.Node;
import graphics.scenery.primitives.PointCloud;
Expand All @@ -46,7 +47,6 @@
import sc.iview.SciView;
import sc.iview.SciViewService;
import sc.iview.process.MeshConverter;
import tpietzsch.example2.VolumeViewerOptions;

import java.io.File;
import java.io.IOException;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/sc/iview/ui/REPLPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public REPLPane(final Context context) {
final JScrollPane outputScroll = new JScrollPane(output);
outputScroll.setPreferredSize(new Dimension(440, 400));

repl = new ScriptREPL(context, output.getOutputStream());
repl = new ScriptREPL(context, "Python (Jython)", output.getOutputStream());
repl.initialize();

final Writer writer = output.getOutputWriter();
Expand All @@ -89,7 +89,7 @@ public REPLPane(final Context context) {
//prompt = new REPLEditor(repl, vars, output);
prompt = new REPLEditor(repl, null, output);
context.inject(prompt);
prompt.setREPLLanguage("Python");

final JScrollPane promptScroll = new JScrollPane(prompt);

final JPanel bottomPane = new JPanel();
Expand Down
8 changes: 3 additions & 5 deletions src/main/kotlin/sc/iview/SciView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ import bdv.util.RandomAccessibleIntervalSource4D
import bdv.util.volatiles.VolatileView
import bdv.viewer.Source
import bdv.viewer.SourceAndConverter
import bvv.core.VolumeViewerOptions
import dev.dirs.ProjectDirectories
import graphics.scenery.*
import graphics.scenery.Scene.RaycastResult
import graphics.scenery.backends.Renderer
import graphics.scenery.backends.opengl.OpenGLRenderer
import graphics.scenery.backends.vulkan.VulkanRenderer
import graphics.scenery.controls.InputHandler
import graphics.scenery.controls.OpenVRHMD
Expand Down Expand Up @@ -110,7 +110,6 @@ import sc.iview.ui.CustomPropertyUI
import sc.iview.ui.MainWindow
import sc.iview.ui.SwingMainWindow
import sc.iview.ui.TaskManager
import tpietzsch.example2.VolumeViewerOptions
import java.awt.event.WindowListener
import java.io.IOException
import java.net.URL
Expand Down Expand Up @@ -388,10 +387,9 @@ class SciView : SceneryBase, CalibratedRealInterval<CalibratedAxis> {
versionString = versionString.substring(0, 5)
val launcherVersion = Version(versionString)
val nonWorkingVersion = Version("4.0.5")
if (launcherVersion.compareTo(nonWorkingVersion) <= 0
if (launcherVersion <= nonWorkingVersion
&& !java.lang.Boolean.parseBoolean(System.getProperty("sciview.DisableLauncherVersionCheck", "false"))) {
logger.info("imagej-launcher version smaller or equal to non-working version ($versionString vs. 4.0.5), disabling Vulkan as rendering backend. Disable check by setting 'scenery.DisableLauncherVersionCheck' system property to 'true'.")
System.setProperty("scenery.Renderer", "OpenGLRenderer")
throw IllegalStateException("imagej-launcher version is outdated, please update your Fiji installation.")
} else {
logger.info("imagej-launcher version bigger that non-working version ($versionString vs. 4.0.5), all good.")
}
Expand Down
Loading
Loading