2026-03-17 00:43:15 +00:00
|
|
|
<UserControl x:Class="OperationControl.Views.Operacao.Monitoramento.MonitoramentoView"
|
2026-03-11 20:11:17 +00:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:local="clr-namespace:OperationControl.Views.Operacao"
|
|
|
|
|
xmlns:controls="clr-namespace:OperationControl.Controls"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="900"
|
|
|
|
|
d:DesignWidth="1600">
|
|
|
|
|
|
2026-03-12 14:00:43 +00:00
|
|
|
<UserControl.Resources>
|
|
|
|
|
<BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
2026-03-11 20:11:17 +00:00
|
|
|
<Grid Margin="12">
|
|
|
|
|
<Grid.RowDefinitions>
|
2026-03-12 20:03:24 +00:00
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
<!-- CÂMERA FRONTAL -->
|
2026-03-12 14:00:43 +00:00
|
|
|
<Border Grid.Row="0" Grid.Column="0" Margin="0,0,6,6" Padding="10" CornerRadius="10" Background="#202020" BorderBrush="#353535" BorderThickness="1">
|
2026-03-11 20:11:17 +00:00
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<DockPanel Grid.Row="0" Margin="0,0,0,8">
|
2026-03-12 14:00:43 +00:00
|
|
|
<TextBlock Text="{Binding CameraFrontalTitulo}" DockPanel.Dock="Left" FontSize="12" FontWeight="SemiBold" Foreground="#E6E6E6" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
|
|
|
|
|
|
|
|
|
<ComboBox Width="130" Height="26" HorizontalAlignment="Right" ItemsSource="{Binding CameraFrontalFrameTipos}" SelectedItem="{Binding CameraFrontalFrameTipoSelecionado, Mode=TwoWay}" DisplayMemberPath="Nome"/>
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="{Binding CameraFrontalStatus}" Margin="12,0,8,0" Foreground="#AFAFAF" FontSize="11" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" Background="Black">
|
2026-03-12 14:00:43 +00:00
|
|
|
<Image x:Name="imgVideoFront" Stretch="Uniform" RenderOptions.BitmapScalingMode="LowQuality"/>
|
2026-03-12 20:03:24 +00:00
|
|
|
|
|
|
|
|
<Border Background="Black" Visibility="{Binding CameraFrontalSemSinal, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
|
|
|
<TextBlock Text="SEM SINAL" Foreground="Gray" FontSize="18" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
</Border>
|
2026-03-11 20:11:17 +00:00
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<!-- CÂMERA DE ERVAS -->
|
2026-03-12 14:00:43 +00:00
|
|
|
<Border Grid.Row="0" Grid.Column="1" Margin="6,0,0,6" Padding="10" CornerRadius="10" Background="#202020" BorderBrush="#353535" BorderThickness="1">
|
2026-03-11 20:11:17 +00:00
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<DockPanel Grid.Row="0" Margin="0,0,0,8">
|
2026-03-12 14:00:43 +00:00
|
|
|
<TextBlock Text="{Binding CameraErvasTitulo}" DockPanel.Dock="Left" FontSize="12" FontWeight="SemiBold" Foreground="#E6E6E6" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
|
2026-03-12 14:00:43 +00:00
|
|
|
<ComboBox Width="130" Height="26" HorizontalAlignment="Right" ItemsSource="{Binding CameraErvasFrameTipos}" SelectedItem="{Binding CameraErvasFrameTipoSelecionado, Mode=TwoWay}" DisplayMemberPath="Nome"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
|
2026-03-12 14:00:43 +00:00
|
|
|
<TextBlock Text="{Binding CameraErvasStatus}" Margin="12,0,8,0" Foreground="#AFAFAF" FontSize="11" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
</DockPanel>
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="1" Background="Black">
|
2026-03-12 01:00:21 +00:00
|
|
|
<Image x:Name="imgVideoWeed" Stretch="Uniform" RenderOptions.BitmapScalingMode="LowQuality"/>
|
2026-03-12 20:03:24 +00:00
|
|
|
|
|
|
|
|
<Border Background="Black" Visibility="{Binding CameraErvasSemSinal, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
|
|
|
<TextBlock Text="SEM SINAL" Foreground="Gray" FontSize="18" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
</Border>
|
2026-03-11 20:11:17 +00:00
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<!-- MAPA -->
|
2026-03-12 01:00:21 +00:00
|
|
|
<Border Grid.Row="1" Grid.Column="0" Margin="0,6,6,0" Padding="10" CornerRadius="10" Background="#202020" BorderBrush="#353535" BorderThickness="1">
|
2026-03-11 20:11:17 +00:00
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
2026-03-12 01:00:21 +00:00
|
|
|
<TextBlock Grid.Row="0" Text="Mapa e posição do rover" Margin="0,0,0,8" FontSize="12" FontWeight="SemiBold" Foreground="#E6E6E6"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
|
2026-03-12 20:03:24 +00:00
|
|
|
<!-- Área do mapa com overlays -->
|
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
|
<controls:MapViewControl x:Name="MapaMonitoramento" MarkerClicked="MAP_MarkerClicked" StreetMapClicked="MAP_StreetMapClicked" Latitude="-22.1726572492617" Longitude="-47.3952163870556" Scale="5000" />
|
|
|
|
|
|
|
|
|
|
<controls:HeadingIndicator x:Name="areaHeading" Width="130" Height="130" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="2"/>
|
|
|
|
|
|
|
|
|
|
<controls:AttitudeIndicator x:Name="areaAttitude" Width="160" Height="180" CriticalLimit="20" WarningLimit="10" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="2"/>
|
|
|
|
|
</Grid>
|
2026-03-11 20:11:17 +00:00
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<!-- ÁREA DIREITA INFERIOR -->
|
|
|
|
|
<Grid Grid.Row="1" Grid.Column="1" Margin="6,6,0,0">
|
|
|
|
|
<Grid.RowDefinitions>
|
2026-03-12 20:03:24 +00:00
|
|
|
<RowDefinition Height="2*"/>
|
|
|
|
|
<RowDefinition Height="1*"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<!-- PULVERIZADOR -->
|
2026-03-12 14:00:43 +00:00
|
|
|
<Border Grid.Row="0" Margin="0,0,0,6" Padding="10" CornerRadius="10" Background="#202020" BorderBrush="#353535" BorderThickness="1">
|
2026-03-11 20:11:17 +00:00
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
2026-03-12 14:00:43 +00:00
|
|
|
<TextBlock Grid.Row="0" Text="Pulverizador" Margin="0,0,0,8" FontSize="12" FontWeight="SemiBold" Foreground="#E6E6E6"/>
|
|
|
|
|
|
|
|
|
|
<controls:PulverizadorIndicator Grid.Row="1" x:Name="areaPulverizador" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<!-- AÇÕES RÁPIDAS -->
|
2026-03-12 01:00:21 +00:00
|
|
|
<Border Grid.Row="1" Padding="10" CornerRadius="10" Background="#202020" BorderBrush="#353535" BorderThickness="1">
|
2026-03-11 20:11:17 +00:00
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
2026-03-12 01:00:21 +00:00
|
|
|
<TextBlock Grid.Row="0" Text="Ações rápidas" Margin="0,0,0,8" FontSize="12" FontWeight="SemiBold" Foreground="#E6E6E6"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
|
2026-03-12 14:00:43 +00:00
|
|
|
<UniformGrid Grid.Row="1" Rows="1" Columns="4" Margin="0,4,0,0">
|
2026-03-16 17:17:38 +00:00
|
|
|
<Button Content="Retorno à base" Margin="4" Command="{Binding RetornoBaseCommand}"/>
|
2026-03-19 11:07:12 +00:00
|
|
|
<Button Content="Referenciar" Margin="4" Command="{Binding ReferenciamentoCommand}"/>
|
2026-03-11 20:11:17 +00:00
|
|
|
<Button Content="Pausar operação" Margin="4"/>
|
|
|
|
|
<Button Content="Diagnóstico" Margin="4"/>
|
|
|
|
|
</UniformGrid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|