mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0024927: Getting rid of "Persistent" functionality -- Samples and data
Support of old persistence (CSFDB format) is removed from OCCT samples (C#, MFC and Qt) Motor model from data/csfdb is converted from CSFDB to BRep format and put to data/occ (Motor-c.brep)
This commit is contained in:
@@ -700,15 +700,6 @@ namespace IE_WinForms
|
||||
this.myStatusBar.Text = "";
|
||||
}
|
||||
|
||||
private void ImportCsfdb_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
Form2 curForm = (Form2)this.ActiveMdiChild;
|
||||
if (curForm == null)
|
||||
return;
|
||||
this.myModelFormat = IE_WinForms.ModelFormat.CSFDB;
|
||||
curForm.ImportModel(this.myModelFormat);
|
||||
}
|
||||
|
||||
private void ImportIges_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
Form2 curForm = (Form2)this.ActiveMdiChild;
|
||||
@@ -736,15 +727,6 @@ namespace IE_WinForms
|
||||
curForm.ExportModel(this.myModelFormat);
|
||||
}
|
||||
|
||||
private void ExportCsfdb_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
Form2 curForm = (Form2)this.ActiveMdiChild;
|
||||
if (curForm == null)
|
||||
return;
|
||||
this.myModelFormat = IE_WinForms.ModelFormat.CSFDB;
|
||||
curForm.ExportModel(this.myModelFormat);
|
||||
}
|
||||
|
||||
private void ExportIges_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
Form2 curForm = (Form2)this.ActiveMdiChild;
|
||||
|
@@ -25,7 +25,6 @@ namespace IE_WinForms
|
||||
public enum ModelFormat
|
||||
{
|
||||
BREP,
|
||||
CSFDB,
|
||||
STEP,
|
||||
IGES,
|
||||
VRML,
|
||||
@@ -656,18 +655,14 @@ namespace IE_WinForms
|
||||
theformat = 0;
|
||||
filter = "BREP Files (*.brep *.rle)|*.brep; *.rle";
|
||||
break;
|
||||
case ModelFormat.CSFDB:
|
||||
theformat = 1;
|
||||
filter = "CSFDB Files (*.csfdb)|*.csfdb";
|
||||
break;
|
||||
case IE_WinForms.ModelFormat.STEP:
|
||||
openDialog.InitialDirectory = (DataDir + "\\step");
|
||||
theformat = 2;
|
||||
theformat = 1;
|
||||
filter = "STEP Files (*.stp *.step)|*.stp; *.step";
|
||||
break;
|
||||
case IE_WinForms.ModelFormat.IGES:
|
||||
openDialog.InitialDirectory = (DataDir + "\\iges");
|
||||
theformat = 3;
|
||||
theformat = 2;
|
||||
filter = "IGES Files (*.igs *.iges)|*.igs; *.iges";
|
||||
break;
|
||||
default:
|
||||
@@ -701,33 +696,29 @@ namespace IE_WinForms
|
||||
theformat = 0;
|
||||
filter = "BREP Files (*.brep *.rle)|*.brep; *.rle";
|
||||
break;
|
||||
case IE_WinForms.ModelFormat.CSFDB:
|
||||
theformat = 1;
|
||||
filter = "CSFDB Files (*.csfdb)|*.csfdb";
|
||||
break;
|
||||
case IE_WinForms.ModelFormat.STEP:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\step");
|
||||
theformat = 2;
|
||||
theformat = 1;
|
||||
filter = "STEP Files (*.stp *.step)|*.step; *.stp";
|
||||
break;
|
||||
case IE_WinForms.ModelFormat.IGES:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\iges");
|
||||
theformat = 3;
|
||||
theformat = 2;
|
||||
filter = "IGES Files (*.igs *.iges)| *.iges; *.igs";
|
||||
break;
|
||||
case IE_WinForms.ModelFormat.VRML:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\vrml");
|
||||
theformat = 4;
|
||||
theformat = 3;
|
||||
filter = "VRML Files (*.vrml)|*.vrml";
|
||||
break;
|
||||
case IE_WinForms.ModelFormat.STL:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\stl");
|
||||
theformat = 5;
|
||||
theformat = 4;
|
||||
filter = "STL Files (*.stl)|*.stl";
|
||||
break;
|
||||
case IE_WinForms.ModelFormat.IMAGE:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\images");
|
||||
theformat = 6;
|
||||
theformat = 5;
|
||||
filter = "Images Files (*.bmp *.gif)| *.bmp; *.gif";
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user