Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
NUI
TULIP-CPS
Commits
dcc14610
Commit
dcc14610
authored
Nov 09, 2020
by
Nico Mack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor performance improvement be removing unecessary shape operations
parent
46ac8b4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
CPS/src/lu/list/itis/dkd/tui/widget/corona/CoxcombRangeSlice.java
...lu/list/itis/dkd/tui/widget/corona/CoxcombRangeSlice.java
+0
-6
No files found.
CPS/src/lu/list/itis/dkd/tui/widget/corona/CoxcombRangeSlice.java
View file @
dcc14610
...
@@ -291,7 +291,6 @@ public class CoxcombRangeSlice extends ValueRangeCorona {
...
@@ -291,7 +291,6 @@ public class CoxcombRangeSlice extends ValueRangeCorona {
private
void
updateSlice
()
{
private
void
updateSlice
()
{
double
diameter
;
double
diameter
;
List
<
String
>
lines
;
List
<
String
>
lines
;
Area
outer
;
Area
inner
;
Area
inner
;
// Java Arc2D start angle and extend are expressed in counter clockwise rotation. Since
// Java Arc2D start angle and extend are expressed in counter clockwise rotation. Since
...
@@ -303,20 +302,15 @@ public class CoxcombRangeSlice extends ValueRangeCorona {
...
@@ -303,20 +302,15 @@ public class CoxcombRangeSlice extends ValueRangeCorona {
diameter
=
2
*
innerRadius
;
diameter
=
2
*
innerRadius
;
inner
=
new
Area
(
new
Ellipse2D
.
Double
(-
innerRadius
,
-
innerRadius
,
diameter
,
diameter
));
inner
=
new
Area
(
new
Ellipse2D
.
Double
(-
innerRadius
,
-
innerRadius
,
diameter
,
diameter
));
diameter
=
2
*
lowerBoundRadius
;
outer
=
new
Area
(
new
Ellipse2D
.
Double
(-
lowerBoundRadius
,
-
lowerBoundRadius
,
diameter
,
diameter
));
Shape
sector
=
new
Arc2D
.
Double
(-
lowerBoundRadius
,
-
lowerBoundRadius
,
diameter
,
diameter
,
correctedAngle
,
arcSpan
,
Arc2D
.
PIE
);
Shape
sector
=
new
Arc2D
.
Double
(-
lowerBoundRadius
,
-
lowerBoundRadius
,
diameter
,
diameter
,
correctedAngle
,
arcSpan
,
Arc2D
.
PIE
);
Area
initial
=
new
Area
(
sector
);
Area
initial
=
new
Area
(
sector
);
initial
.
subtract
(
inner
);
initial
.
subtract
(
inner
);
outer
.
subtract
(
inner
);
shape
=
initial
;
shape
=
initial
;
diameter
=
2
*
upperBoundRadius
;
diameter
=
2
*
upperBoundRadius
;
sector
=
new
Arc2D
.
Double
(-
upperBoundRadius
,
-
upperBoundRadius
,
diameter
,
diameter
,
correctedAngle
,
arcSpan
,
Arc2D
.
PIE
);
sector
=
new
Arc2D
.
Double
(-
upperBoundRadius
,
-
upperBoundRadius
,
diameter
,
diameter
,
correctedAngle
,
arcSpan
,
Arc2D
.
PIE
);
face
=
new
Area
(
sector
);
face
=
new
Area
(
sector
);
face
.
subtract
(
inner
);
face
.
subtract
(
inner
);
outer
.
subtract
(
inner
);
int
availableWidth
;
int
availableWidth
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment