Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
hemei
Commits
b146bbf4
Commit
b146bbf4
authored
Oct 21, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 环型图改回 外厚内薄
parent
783da53b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
12 deletions
+30
-12
DynAreaBlowing.xaml
...Blowing/FLY.Thick.Blowing.UI/UiModule/DynAreaBlowing.xaml
+1
-1
PolarChart.xaml.cs
....Blowing.UI/UiModule/ScanGraphCircular/PolarChart.xaml.cs
+27
-9
ScanGraphCircular.xaml
...wing.UI/UiModule/ScanGraphCircular/ScanGraphCircular.xaml
+1
-1
DynAreaBlowing.xaml
...can/FLY.Thick.BlowingScan.UI/UiModule/DynAreaBlowing.xaml
+1
-1
No files found.
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI/UiModule/DynAreaBlowing.xaml
View file @
b146bbf4
...
...
@@ -76,7 +76,7 @@
</Style>
</iconPacks:PackIconMaterial.Style>
</iconPacks:PackIconMaterial>
<TextBlock FontSize="1
8
" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Right" VerticalAlignment="Bottom" Foreground="#FF3B3B3B" >
<TextBlock FontSize="1
5
" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Right" VerticalAlignment="Bottom" Foreground="#FF3B3B3B" >
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Text" Value="逆时针"/>
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI/UiModule/ScanGraphCircular/PolarChart.xaml.cs
View file @
b146bbf4
...
...
@@ -471,6 +471,8 @@ new PropertyChangedCallback(delegate (DependencyObject d, DependencyPropertyChan
else
{
stroke
=
brush_alarm
;
}
//-公差线
r
=
target_r
+
toleranceThickness
*
i
;
Ellipse
ellipse_alarm1
=
new
Ellipse
()
...
...
@@ -546,11 +548,20 @@ new PropertyChangedCallback(delegate (DependencyObject d, DependencyPropertyChan
percent
=
0.01
;
double
toleranceThickness
=
GraphThickness
/
(
2
*
YRangePercent
);
double
target_r
=
InnerRingThickness
+
GraphThickness
*
0.5
;
////Value 外小 内大
////负公差
//Draw_Marker(new Polar() { Degrees = startAngle, Radius = target_r + toleranceThickness }, $"{(-100 * percent):F0}%");
////正公差
//Draw_Marker(new Polar() { Degrees = startAngle, Radius = target_r - toleranceThickness }, $"{(+100 * percent):F0}%");
//Value 外大 内小
//负公差
Draw_Marker
(
new
Polar
()
{
Degrees
=
startAngle
,
Radius
=
target_r
+
toleranceThickness
},
$"
{(-
100
*
percent
):
F0
}
%"
);
Draw_Marker
(
new
Polar
()
{
Degrees
=
startAngle
,
Radius
=
target_r
-
toleranceThickness
},
$"
{(-
100
*
percent
):
F0
}
%"
);
//正公差
Draw_Marker
(
new
Polar
()
{
Degrees
=
startAngle
,
Radius
=
target_r
-
toleranceThickness
},
$"
{(+
100
*
percent
):
F0
}
%"
);
Draw_Marker
(
new
Polar
()
{
Degrees
=
startAngle
,
Radius
=
target_r
+
toleranceThickness
},
$"
{(+
100
*
percent
):
F0
}
%"
);
}
void
Draw_Marker
(
Polar
polar
,
string
s
)
{
...
...
@@ -664,16 +675,23 @@ new PropertyChangedCallback(delegate (DependencyObject d, DependencyPropertyChan
arc
.
Fill
=
AreaColors
[
0
];
}
//扇型的厚度
arc
.
ArcThickness
=
Math
.
Abs
(
r
);
if
(
r
<
0
)
{
arc
.
Width
=
(
target_r
-
r
)
*
2
;
}
//扇型最外圆直径
//Value 外小 内大
//if (r < 0)
// arc.Width = (target_r - r) * 2;
//else
// arc.Width = target_r * 2;
//Value 外大 内小
if
(
r
>
0
)
arc
.
Width
=
(
target_r
+
r
)
*
2
;
else
{
arc
.
Width
=
target_r
*
2
;
}
arc
.
Height
=
arc
.
Width
;
arc
.
Margin
=
new
Thickness
(
Radius
-
arc
.
Width
/
2
);
...
...
Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI/UiModule/ScanGraphCircular/ScanGraphCircular.xaml
View file @
b146bbf4
...
...
@@ -61,7 +61,7 @@
</Grid.ColumnDefinitions>
<uimodule:PolarChart x:Name="graph" Grid.Row="1" Grid.ColumnSpan="3" />
<TextBlock Grid.Row="1" Grid.ColumnSpan="3" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="5" Foreground="{StaticResource Color_theme_noact}">
备注:外
薄内厚
备注:外
厚内薄
</TextBlock>
<Button Style="{StaticResource ButtonStyle_icon}" Margin="0,0,0,-20"
Click="Button_info_click" >
...
...
Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan.UI/UiModule/DynAreaBlowing.xaml
View file @
b146bbf4
...
...
@@ -65,7 +65,7 @@
</Style>
</iconPacks:PackIconMaterial.Style>
</iconPacks:PackIconMaterial>
<TextBlock FontSize="1
8
" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Right" VerticalAlignment="Bottom" Foreground="#FF3B3B3B" >
<TextBlock FontSize="1
5
" FontWeight="Bold" FontFamily="YouYuan" TextAlignment="Right" VerticalAlignment="Bottom" Foreground="#FF3B3B3B" >
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Text" Value="逆时针"/>
...
...
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