properties);
24 | }
25 |
--------------------------------------------------------------------------------
/archetype/weasis-plugin-dicom-viewer/src/main/resources/META-INF/maven/archetype-metadata.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | src/main/java
10 |
11 | **/*.java
12 |
13 |
14 |
15 | src/main/resources
16 |
17 | **/*
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/api/image/util/AbbreviationUnit.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.api.image.util;
11 |
12 | /**
13 | * AbbreviationUnit is similar to the Class Unit, except that the method
14 | * toString() returns the abbreviation of the unit.
15 | *
16 | *
17 | *
18 | * @author Nicolas Roduit
19 | * @see Unit
20 | */
21 | public record AbbreviationUnit(Unit unit) {
22 |
23 | @Override
24 | public String toString() {
25 | return unit.getAbbreviation();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/weasis-dicom/weasis-dicom-codec/src/main/java/org/weasis/dicom/codec/LazyContourLoader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2025 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.dicom.codec;
11 |
12 | import java.util.Set;
13 | import org.weasis.core.ui.model.graphic.imp.seg.SegContour;
14 |
15 | /** Interface for different implementations of lazy contour loading strategies. */
16 | public interface LazyContourLoader {
17 |
18 | /**
19 | * Retrieve or generate contours lazily.
20 | *
21 | * @return a set of {@link SegContour} representing the contours.
22 | */
23 | Set getLazyContours();
24 | }
25 |
--------------------------------------------------------------------------------
/weasis-base/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 | weasis-parent
7 | org.weasis
8 |
9 | ${revision}${changelist}
10 | ../weasis-parent/pom.xml
11 |
12 | 4.0.0
13 | org.weasis.base
14 | weasis-base
15 | pom
16 | Base plugins [${project.artifactId}]
17 |
18 |
19 | weasis-base-parent
20 | weasis-base-ui
21 | weasis-base-explorer
22 | weasis-base-viewer2d
23 |
24 |
25 |
--------------------------------------------------------------------------------
/weasis-distributions/resources/svg/action/selection.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/internal/mime/InvalidMagicMimeEntryException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.internal.mime;
11 |
12 | import java.util.List;
13 |
14 | public class InvalidMagicMimeEntryException extends Exception {
15 |
16 | public InvalidMagicMimeEntryException(Throwable cause) {
17 | super("Invalid Magic Mime Entry: Unknown entry", cause);
18 | }
19 |
20 | public InvalidMagicMimeEntryException(List mimeMagicEntry, Throwable cause) {
21 | super("Invalid Magic Mime Entry: " + mimeMagicEntry.toString(), cause);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/ui/model/layer/GraphicLayer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.ui.model.layer;
11 |
12 | import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
13 |
14 | @XmlJavaTypeAdapter(AbstractGraphicLayer.Adapter.class)
15 | public interface GraphicLayer extends Layer {
16 |
17 | Boolean getLocked();
18 |
19 | void setLocked(Boolean locked);
20 |
21 | Boolean getSelectable();
22 |
23 | void setSelectable(Boolean selectable);
24 |
25 | Boolean getSerializable();
26 |
27 | void setSerializable(Boolean serializable);
28 | }
29 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/ui/pref/JLocalePercentage.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2025 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.ui.pref;
11 |
12 | import java.util.Locale;
13 |
14 | public class JLocalePercentage extends JLocale {
15 | private final int percentage;
16 |
17 | public JLocalePercentage(Locale locale, int percentage) {
18 | super(locale);
19 | this.percentage = percentage;
20 | }
21 |
22 | public int getPercentage() {
23 | return percentage;
24 | }
25 |
26 | @Override
27 | public String toString() {
28 | return super.toString() + " (" + percentage + "%)";
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/weasis-distributions/resources/svg/other/view3D.svg:
--------------------------------------------------------------------------------
1 |
2 |
18 |
--------------------------------------------------------------------------------
/weasis-launcher/src/main/java/org/weasis/launcher/messages.properties:
--------------------------------------------------------------------------------
1 | AutoProcessor.start=Starting plug-ins...
2 |
3 | WeasisLauncher.change.version=%s version has changed from %s to %s.
4 | WeasisLauncher.continue_local=Try to continue with the current local version?
5 | WeasisLauncher.first=First Time Launch of %s
6 | WeasisLauncher.msg=The open-source distribution of %s is not a certified medical device (CE or FDA). Any primary diagnostic use requires you to ensure full compliance with the laws and regulations applicable in your jurisdiction.
7 | WeasisLauncher.News=News
8 | WeasisLauncher.no=No
9 | WeasisLauncher.ok=I accept
10 | WeasisLauncher.release=Release notes
11 | WeasisLauncher.starting=Starting... %s
12 | WeasisLauncher.update_min=The local installation of %s must be updated at least to %s.
13 |
14 | WebStartLoader.cancel=Cancel
15 | WebStartLoader.download=Downloading
16 | WebStartLoader.end=Completed %d of %d plug-ins.
17 | WebStartLoader.load=Loading...
18 | WebStartLoader.title=%s Plug-ins Loader
19 |
20 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/ui/model/utils/exceptions/InvalidShapeException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.ui.model.utils.exceptions;
11 |
12 | public class InvalidShapeException extends Exception {
13 |
14 | public InvalidShapeException() {
15 | super();
16 | }
17 |
18 | public InvalidShapeException(String message) {
19 | super(message);
20 | }
21 |
22 | public InvalidShapeException(Throwable cause) {
23 | super(cause);
24 | }
25 |
26 | public InvalidShapeException(String message, Throwable cause) {
27 | super(message, cause);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/weasis-dicom/weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/ResetTools.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.dicom.viewer2d;
11 |
12 | public enum ResetTools {
13 | ALL(Messages.getString("ResetTools.all")),
14 |
15 | WL(Messages.getString("ResetTools.wl")),
16 |
17 | ZOOM(Messages.getString("ViewerPrefView.zoom")),
18 |
19 | PAN(Messages.getString("ResetTools.pan"));
20 |
21 | private final String name;
22 |
23 | ResetTools(String name) {
24 | this.name = name;
25 | }
26 |
27 | @Override
28 | public String toString() {
29 | return name;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/api/gui/task/TaskInterruptionException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.api.gui.task;
11 |
12 | public class TaskInterruptionException extends RuntimeException {
13 |
14 | public TaskInterruptionException() {
15 | super();
16 | }
17 |
18 | public TaskInterruptionException(String message, Throwable cause) {
19 | super(message, cause);
20 | }
21 |
22 | public TaskInterruptionException(String message) {
23 | super(message);
24 | }
25 |
26 | public TaskInterruptionException(Throwable cause) {
27 | super(cause);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/annotations/idea/jakarta/xml/bind/annotation/annotations.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 | -
9 |
10 |
11 | -
12 |
13 |
14 | -
15 |
16 |
17 | -
18 |
19 |
20 |
--------------------------------------------------------------------------------
/annotations/idea/javax/xml/bind/annotation/annotations.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 | -
9 |
10 |
11 | -
12 |
13 |
14 | -
15 |
16 |
17 | -
18 |
19 |
20 |
--------------------------------------------------------------------------------
/weasis-dicom/weasis-dicom-3d/viewer3d/src/main/java/org/weasis/dicom/viewer3d/pr/MprVolumetricPrDisplayModule.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2022 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.dicom.viewer3d.pr;
11 |
12 | import org.dcm4che3.data.Attributes;
13 | import org.weasis.dicom.macro.Module;
14 |
15 | /**
16 | * MPR
17 | * Volumetric Presentation State Display Module
18 | */
19 | public class MprVolumetricPrDisplayModule extends Module {
20 |
21 | public MprVolumetricPrDisplayModule(Attributes dcmItems) {
22 | super(dcmItems);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/weasis-distributions/resources/svg/action/crosshair.svg:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/weasis-distributions/resources/svg/action/drawParallel.svg:
--------------------------------------------------------------------------------
1 |
2 |
14 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/ui/editor/image/DisplayByteLut.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.ui.editor.image;
11 |
12 | import org.weasis.opencv.op.lut.ByteLut;
13 |
14 | public class DisplayByteLut {
15 | private boolean invert;
16 | private final ByteLut byteLut;
17 |
18 | public DisplayByteLut(ByteLut lut) {
19 | this.byteLut = lut;
20 | }
21 |
22 | public ByteLut getByteLut() {
23 | return byteLut;
24 | }
25 |
26 | public boolean isInvert() {
27 | return invert;
28 | }
29 |
30 | public void setInvert(boolean invert) {
31 | this.invert = invert;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/ui/model/utils/imp/DefaultGraphicLabel.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.ui.model.utils.imp;
11 |
12 | import org.weasis.core.ui.model.graphic.AbstractGraphicLabel;
13 | import org.weasis.core.ui.model.graphic.GraphicLabel;
14 |
15 | public class DefaultGraphicLabel extends AbstractGraphicLabel {
16 | public DefaultGraphicLabel() {
17 | super();
18 | }
19 |
20 | public DefaultGraphicLabel(DefaultGraphicLabel object) {
21 | super(object);
22 | }
23 |
24 | @Override
25 | public GraphicLabel copy() {
26 | return new DefaultGraphicLabel(this);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/weasis-dicom/weasis-dicom-codec/src/main/java/org/weasis/dicom/codec/geometry/VectorUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2022 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.dicom.codec.geometry;
11 |
12 | import org.joml.Vector3d;
13 |
14 | public class VectorUtils {
15 |
16 | public static Vector3d computeNormalOfSurface(Vector3d v1, Vector3d v2) {
17 | return v1.cross(v2, new Vector3d()).normalize();
18 | }
19 |
20 | public static Vector3d computeNormalOfSurface(Vector3d origin, Vector3d v1, Vector3d v2) {
21 | Vector3d u = v1.sub(origin, new Vector3d());
22 | Vector3d w = v2.sub(origin, new Vector3d());
23 | return u.cross(w).normalize();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/weasis-distributions/resources/svg/action/mouseWheel.svg:
--------------------------------------------------------------------------------
1 |
2 |
16 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/ui/model/utils/bean/GraphicClipboard.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.ui.model.utils.bean;
11 |
12 | import java.util.List;
13 | import org.weasis.core.ui.model.graphic.Graphic;
14 |
15 | public class GraphicClipboard {
16 | private List graphics;
17 |
18 | public synchronized List getGraphics() {
19 | return graphics;
20 | }
21 |
22 | public synchronized void setGraphics(List graphics) {
23 | this.graphics = graphics;
24 | }
25 |
26 | public boolean hasGraphics() {
27 | return graphics != null && !graphics.isEmpty();
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/api/gui/PreferencesPageFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.api.gui;
11 |
12 | import java.util.Hashtable;
13 | import org.weasis.core.api.gui.Insertable.Type;
14 | import org.weasis.core.api.gui.util.AbstractItemDialogPage;
15 |
16 | public interface PreferencesPageFactory extends InsertableFactory {
17 |
18 | @Override
19 | AbstractItemDialogPage createInstance(Hashtable properties);
20 |
21 | @Override
22 | default void dispose(Insertable component) {}
23 |
24 | @Override
25 | default Type getType() {
26 | return Insertable.Type.PREFERENCES;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/weasis-distributions/resources/svg/action/drawPolyline.svg:
--------------------------------------------------------------------------------
1 |
2 |
19 |
--------------------------------------------------------------------------------
/weasis-core/src/main/java/org/weasis/core/ui/model/layer/GraphicModelChangeListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2009-2020 Weasis Team and other contributors.
3 | *
4 | * This program and the accompanying materials are made available under the terms of the Eclipse
5 | * Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0, or the Apache
6 | * License, Version 2.0 which is available at https://www.apache.org/licenses/LICENSE-2.0.
7 | *
8 | * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
9 | */
10 | package org.weasis.core.ui.model.layer;
11 |
12 | import org.weasis.core.ui.model.GraphicModel;
13 |
14 | /** The listener interface for receiving layerModelChange events. */
15 | public interface GraphicModelChangeListener {
16 |
17 | default void handleModelChanged(GraphicModel modelList) {}
18 |
19 | default void handleLayerAdded(GraphicModel modelList, Layer layer) {}
20 |
21 | default void handleLayerRemoved(GraphicModel modelList, Layer layer) {}
22 |
23 | default void handleLayerChanged(GraphicModel modelList, Layer layer) {}
24 | }
25 |
--------------------------------------------------------------------------------