EgtCAM5 2.4k1 :
- aggiunto bottone e comando ApproxSurf - aggiunto comando SurfTmToTriangles come Shift di ExplodeSurf.
This commit is contained in:
@@ -107,6 +107,7 @@ Class Application
|
||||
Friend Const SWEPT As String = "Swept"
|
||||
Friend Const MERGESURF As String = "MergeSurf"
|
||||
Friend Const EXPLODESURF As String = "ExplodeSurf"
|
||||
Friend Const APPROXSURF As String = "ApproxSurf"
|
||||
Friend Const INVERTSURF As String = "InvertSurf"
|
||||
Friend Const DELETE As String = "Delete"
|
||||
Friend Const CHANGELAYER As String = "ChangeLayer"
|
||||
|
||||
@@ -170,6 +170,11 @@
|
||||
Command="{Binding InvertSurfCommand}" IsEnabled="{Binding bSelOk}">
|
||||
<Image Source="/Resources/DrawPanel/InvertSurf.png" Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="{Binding ApproxSurfToolTip}" Style="{StaticResource DrawPanelButton}"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
Command="{Binding ApproxSurfCommand}" IsEnabled="{Binding bSelOk}">
|
||||
<Image Source="/Resources/DrawPanel/ApproxSurf.png" Stretch="Uniform"/>
|
||||
</Button>
|
||||
</UniformGrid>
|
||||
</Expander>
|
||||
<Expander Name="Modify" Style="{StaticResource ExpanderStyle}" Grid.Row="2" IsExpanded="{Binding ModifyIsExpanded}">
|
||||
|
||||
@@ -146,6 +146,11 @@ Public Class DrawPanelVM
|
||||
Return EgtMsg( 5221) 'Esplodi Superfici e Regioni Piane
|
||||
End Get
|
||||
End Property
|
||||
Public ReadOnly Property ApproxSurfToolTip As String
|
||||
Get
|
||||
Return EgtMsg( 5165) 'Approssima Superfici e Regioni Piane
|
||||
End Get
|
||||
End Property
|
||||
Public ReadOnly Property ExtractSurfFacetToolTip As String
|
||||
Get
|
||||
Return EgtMsg( 5158) 'Estrai Faccia da Superficie
|
||||
@@ -448,6 +453,7 @@ Public Class DrawPanelVM
|
||||
Private m_cmdRuled As ICommand
|
||||
Private m_cmdMergeSurf As ICommand
|
||||
Private m_cmdExplodeSurf As ICommand
|
||||
Private m_cmdApproxSurf As ICommand
|
||||
Private m_cmdExtractSurfFacet As ICommand
|
||||
Private m_cmdInvertSurf As ICommand
|
||||
Private m_cmdExtractLoops As ICommand
|
||||
@@ -1146,7 +1152,7 @@ Public Class DrawPanelVM
|
||||
''' </summary>
|
||||
Public Sub ExplodeSurf(ByVal param As Object)
|
||||
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||
Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.EXTRACTSURFFACET)
|
||||
Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.SURFTMTOTRIANGLES)
|
||||
Else
|
||||
Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.EXPLODESURF)
|
||||
End If
|
||||
@@ -1154,6 +1160,29 @@ Public Class DrawPanelVM
|
||||
|
||||
#End Region ' ExplodeSurfCommand
|
||||
|
||||
#Region "ApproxSurfCommand"
|
||||
|
||||
''' <summary>
|
||||
''' Returns a command that do ApproxSurf.
|
||||
''' </summary>
|
||||
Public ReadOnly Property ApproxSurfCommand As ICommand
|
||||
Get
|
||||
If m_cmdApproxSurf Is Nothing Then
|
||||
m_cmdApproxSurf = New RelayCommand(AddressOf ApproxSurf)
|
||||
End If
|
||||
Return m_cmdApproxSurf
|
||||
End Get
|
||||
End Property
|
||||
|
||||
''' <summary>
|
||||
''' Execute the ApproxSurf. This method is invoked by the ApproxSurfCommand.
|
||||
''' </summary>
|
||||
Public Sub ApproxSurf(ByVal param As Object)
|
||||
Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.APPROXSURF)
|
||||
End Sub
|
||||
|
||||
#End Region ' ApproxSurfCommand
|
||||
|
||||
#Region "ExtractSurfFacetCommand"
|
||||
|
||||
''' <summary>
|
||||
@@ -1175,7 +1204,7 @@ Public Class DrawPanelVM
|
||||
Map.refProjectVM.GetController.ExecuteCommand(Controller.CMD.EXTRACTSURFFACET)
|
||||
End Sub
|
||||
|
||||
#End Region ' ExplodeSurfCommand
|
||||
#End Region ' ExtractSurfFacetCommand
|
||||
|
||||
#Region "InvertSurfCommand"
|
||||
|
||||
|
||||
@@ -956,6 +956,9 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\DrawPanel\ModifyArcRadius.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\DrawPanel\ApproxSurf.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtCAM5\EgtCAM5R32.exe
|
||||
|
||||
@@ -355,8 +355,8 @@ Public Class MainWindowVM
|
||||
EgtUILib.GetPrivateProfileString( S_LICENCE, K_NESTKEY, "", sNestKey, sLicFile)
|
||||
EgtSetNestKey( sNestKey)
|
||||
' Recupero livello e opzioni della chiave
|
||||
Dim bKey As Boolean = EgtGetKeyLevel(3279, 2410, 1, IniFile.m_nKeyLevel) And
|
||||
EgtGetKeyOptions(3279, 2410, 1, IniFile.m_nKeyOptions)
|
||||
Dim bKey As Boolean = EgtGetKeyLevel(3279, 2411, 1, IniFile.m_nKeyLevel) And
|
||||
EgtGetKeyOptions(3279, 2411, 1, IniFile.m_nKeyOptions)
|
||||
' Leggo e imposto livello utilizzatore
|
||||
IniFile.m_nUserLevel = Math.Min(IniFile.m_nKeyLevel, GetPrivateProfileInt(S_GENERAL, K_USERLEVEL, 1))
|
||||
' Inizializzazione generale di EgtInterface
|
||||
|
||||
@@ -70,6 +70,6 @@ Imports System.Windows
|
||||
' by using the '*' as shown below:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("2.4.10.4")>
|
||||
<Assembly: AssemblyFileVersion("2.4.10.4")>
|
||||
<Assembly: AssemblyVersion("2.4.11.1")>
|
||||
<Assembly: AssemblyFileVersion("2.4.11.1")>
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user