Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AMAPVox Stubs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AMAP
AMAPVox
AMAPVox Stubs
Commits
9be14232
Verified
Commit
9be14232
authored
5 years ago
by
tristan.muller
Committed by
philippe.verley_ird.fr
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix the medium value of the colorbar preview
parent
04bf09ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AMAPVox/AMAPVoxVisualization/src/main/java/fr/amap/lidar/amapvox/visualization/views/MainView.java
+7
-13
7 additions, 13 deletions
...a/fr/amap/lidar/amapvox/visualization/views/MainView.java
with
7 additions
and
13 deletions
AMAPVox/AMAPVoxVisualization/src/main/java/fr/amap/lidar/amapvox/visualization/views/MainView.java
+
7
−
13
View file @
9be14232
...
@@ -27,6 +27,7 @@ package fr.amap.lidar.amapvox.visualization.views;
...
@@ -27,6 +27,7 @@ package fr.amap.lidar.amapvox.visualization.views;
import
fr.amap.commons.util.swing.FrameView
;
import
fr.amap.commons.util.swing.FrameView
;
import
java.awt.BorderLayout
;
import
java.awt.BorderLayout
;
import
java.awt.Frame
;
import
java.awt.Frame
;
import
java.util.function.Consumer
;
import
javax.swing.JOptionPane
;
import
javax.swing.JOptionPane
;
import
javax.swing.WindowConstants
;
import
javax.swing.WindowConstants
;
import
net.jcip.annotations.GuardedBy
;
import
net.jcip.annotations.GuardedBy
;
...
@@ -143,26 +144,19 @@ public class MainView extends FrameView {
...
@@ -143,26 +144,19 @@ public class MainView extends FrameView {
/* Init the properties component */
/* Init the properties component */
propertiesView
=
new
PropertiesView
();
propertiesView
=
new
PropertiesView
();
propertiesView
.
setParentView
(
this
);
propertiesView
.
setParentView
(
this
);
propertiesView
.
setOnChangePropertyCallback
((
name
)
->
{
if
(
scene
!=
null
)
{
final
Consumer
callback
=
(
object
)
->
{
final
Vector2f
minAndMax
=
scene
.
getVoxelSpaceComponent
().
getMinAndMaxPropertyValues
();
final
float
min
=
minAndMax
.
x
;
final
float
max
=
minAndMax
.
y
;
final
float
medium
=
(
max
-
min
)
/
2
;
viewView
.
setGradientTexts
(
Float
.
toString
(
min
),
Float
.
toString
(
medium
),
Float
.
toString
(
max
));
}
});
propertiesView
.
setOnChangeMinAndMaxCallback
((
name
)
->
{
if
(
scene
!=
null
)
{
if
(
scene
!=
null
)
{
final
Vector2f
minAndMax
=
scene
.
getVoxelSpaceComponent
().
getMinAndMaxPropertyValues
();
final
Vector2f
minAndMax
=
scene
.
getVoxelSpaceComponent
().
getMinAndMaxPropertyValues
();
final
float
min
=
minAndMax
.
x
;
final
float
min
=
minAndMax
.
x
;
final
float
max
=
minAndMax
.
y
;
final
float
max
=
minAndMax
.
y
;
final
float
medium
=
(
max
-
min
)
/
2
;
final
float
medium
=
min
+
(
max
-
min
)
/
2
;
viewView
.
setGradientTexts
(
Float
.
toString
(
min
),
viewView
.
setGradientTexts
(
Float
.
toString
(
min
),
Float
.
toString
(
medium
),
Float
.
toString
(
max
));
Float
.
toString
(
medium
),
Float
.
toString
(
max
));
}
}
});
};
propertiesView
.
setOnChangePropertyCallback
(
callback
);
propertiesView
.
setOnChangeMinAndMaxCallback
(
callback
);
getContentPane
().
add
(
propertiesView
.
getContentPane
(),
BorderLayout
.
WEST
);
getContentPane
().
add
(
propertiesView
.
getContentPane
(),
BorderLayout
.
WEST
);
/* Init the options component */
/* Init the options component */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment