Integration of OCCT 6.5.0 from SVN
154
samples/CSharp/IE/AboutDialog.cs
Executable file
@@ -0,0 +1,154 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace IE
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for AboutDialog.
|
||||
/// </summary>
|
||||
public class AboutDialog : System.Windows.Forms.Form
|
||||
{
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label myVersion;
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.Container components = null;
|
||||
|
||||
public AboutDialog()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
//
|
||||
// TODO: Add any constructor code after InitializeComponent call
|
||||
//
|
||||
shell t = new shell();
|
||||
t.InitOCCViewer();
|
||||
float version = t.GetOCCVersion();
|
||||
this.myVersion.Text=this.myVersion.Text+version;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
protected override void Dispose( bool disposing )
|
||||
{
|
||||
if( disposing )
|
||||
{
|
||||
if(components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutDialog));
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.myVersion = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
|
||||
this.pictureBox1.Location = new System.Drawing.Point(59, 64);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(194, 100);
|
||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
|
||||
this.pictureBox1.TabIndex = 0;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(96, 248);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(128, 24);
|
||||
this.button1.TabIndex = 1;
|
||||
this.button1.Text = "OK";
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Location = new System.Drawing.Point(16, 16);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(288, 24);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "Import/Export Sample,";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// myVersion
|
||||
//
|
||||
this.myVersion.Location = new System.Drawing.Point(16, 32);
|
||||
this.myVersion.Name = "myVersion";
|
||||
this.myVersion.Size = new System.Drawing.Size(288, 16);
|
||||
this.myVersion.TabIndex = 3;
|
||||
this.myVersion.Text = "Open CASCADE Technology ";
|
||||
this.myVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Location = new System.Drawing.Point(24, 168);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(280, 23);
|
||||
this.label3.TabIndex = 4;
|
||||
this.label3.Text = "Copyright (C) 2004, Open CASCADE SA";
|
||||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Location = new System.Drawing.Point(8, 200);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(296, 24);
|
||||
this.label4.TabIndex = 5;
|
||||
this.label4.Text = "http://opencascade.com marketing.contact@opencascade.com";
|
||||
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// AboutDialog
|
||||
//
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.ClientSize = new System.Drawing.Size(312, 285);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.myVersion);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "AboutDialog";
|
||||
this.Text = "About Import/Export Sample";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void button1_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
1230
samples/CSharp/IE/AboutDialog.resx
Executable file
BIN
samples/CSharp/IE/App.ico
Executable file
After Width: | Height: | Size: 1.1 KiB |
58
samples/CSharp/IE/AssemblyInfo.cs
Executable file
@@ -0,0 +1,58 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly: AssemblyTitle("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified, the assembly is not signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine. KeyFile refers to a file which contains
|
||||
// a key.
|
||||
// (*) If the KeyFile and the KeyName values are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP, that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the KeyFile is installed into the CSP and used.
|
||||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
|
||||
// When specifying the KeyFile, the location of the KeyFile should be
|
||||
// relative to the project output directory which is
|
||||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
|
||||
// located in the project directory, you would specify the AssemblyKeyFile
|
||||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
1103
samples/CSharp/IE/Form1.cs
Executable file
660
samples/CSharp/IE/Form1.resx
Executable file
@@ -0,0 +1,660 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 1.3
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">1.3</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1">this is my long string</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
[base64 mime encoded serialized .NET Framework object]
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
[base64 mime encoded string representing a byte array form of the .NET Framework object]
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used forserialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="mainMenu1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="mainMenu1.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</data>
|
||||
<data name="mainMenu1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="File.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="File.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="FileNew.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="FileNew.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="FileExport.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="FileExport.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ImportBRep.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ImportBRep.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ImportIges.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ImportIges.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ImportStep.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ImportStep.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="FileImport.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="FileImport.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportBRep.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportBRep.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportIges.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportIges.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportStep.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportStep.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportStl.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportStl.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportVrml.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportVrml.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem3.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem3.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportImage.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ExportImage.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="FileClose.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="FileClose.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem2.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem2.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="View.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="View.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ViewToolbar.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ViewToolbar.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ViewStatusBar.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ViewStatusBar.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Window.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Window.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem4.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem4.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="WindowCascade.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="WindowCascade.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="WindowTile.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="WindowTile.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Help.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Help.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="HelpAbout.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="HelpAbout.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="toolBarTool.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="toolBarTool.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="toolBarTool.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="New.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="New.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="About.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="About.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="wireframe.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="wireframe.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="shading.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="shading.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="color.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="color.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="material.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="material.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="transparency.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="transparency.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="delete.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="delete.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="imageList1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="imageList1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="imageList1.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>141, 18</value>
|
||||
</data>
|
||||
<data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFpTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0xLjAuNTAw
|
||||
MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZT
|
||||
eXN0ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMA
|
||||
AAB6GAAAAk1TRnQBSQFMAgEBGAEAAR0BAAEEAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQC
|
||||
AAEoAwABQAMAAYADAAEBAQABCAYAASAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB
|
||||
3AHAAQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IB
|
||||
AAM5AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8B
|
||||
MwMAAWYDAAGZAwABzAIAATMDAAIzAgABMwFmAgABMwGZAgABMwHMAgABMwH/AgABZgMAAWYBMwIAAmYC
|
||||
AAFmAZkCAAFmAcwCAAFmAf8CAAGZAwABmQEzAgABmQFmAgACmQIAAZkBzAIAAZkB/wIAAcwDAAHMATMC
|
||||
AAHMAWYCAAHMAZkCAALMAgABzAH/AgAB/wFmAgAB/wGZAgAB/wHMAQABMwH/AgAB/wEAATMBAAEzAQA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8B/wH6Ab8B5wH/AfMB/QHPAf0B
|
||||
/gH/AfIBDwG5AQ0B5AEYAf4B/wH5AfcBvAH1AfMB7QHfAfcC+wG9AfkC9wG/AfsB8wH5AbkB+QHnAfMB
|
||||
BwHBAfcB/QG7Af0B7wEbAb8B+wH3Af0BuwH9AewB+wHeAfcB8wH5AbkB+QH3AfMB/gH/AesB+wG9AfkC
|
||||
9wH+Af8BXQHyAb4B9QEbAe8B+gG/AT4BDAIBAfwBHwH8AX8BHwH4Ab8D/wH+A/8B/gEHAfgBHwH8AQcB
|
||||
gAEDAfwBAwHwAQ8B8AEHAYABAwH4AQEB4AEHAcABBwGAAQMB+AEBAeABBwHAAQMBgAEDAfABAQHgAQcB
|
||||
wAEDAYABAwHwAQEB4AEHAYABAwGAAQMBAAEBAeABBwGAAQMBgAEDAQABAQHgAQcBgAEBAYABAwEAAQEB
|
||||
4AEHAYABAQGAAQMB8AEBAeABBwEAAQEBgAEDAfABAQHgAQcBAAEBAYABAwH4AQEB4AEHAQABAQGAAQMB
|
||||
+AEBAeABBwEAAQMBgAEDAfwBAwHwAQ8BAAEPAYABAwH+AQcB+AEfAcABPwb/AfAF/wH4AR8B+AEfAv8B
|
||||
/gE/AfABDwHwAQ8B4AEDAfwBHwLnAeABBwHgAQMB/AEfAucB4AEHAeABAwH+AX8B4AEHAeABBwHgAQMB
|
||||
/AE/AegBFwHgAQcB4AEDAfwBPwHvAfcB4AEHAeABAwH8AT8B7wH3AeABBwHgAQMB/AEfAe8B9wHgAQcB
|
||||
4AEDAfIBDwHoARcB4AEHAeABAwHhAQcB4AEHAeABBwHgAQMB4QGHAucB4AEHAeABBwHgAQcC5wHgAQcB
|
||||
4AEPAfABDwHwAQ8B8AEPAeABHwH4AR8B+AEfAfgBHwj/Cw==
|
||||
</value>
|
||||
</data>
|
||||
<data name="myStatusBar.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="myStatusBar.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="myStatusBar.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="toolBarView.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="toolBarView.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="toolBarView.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ZoomAll.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ZoomAll.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ZoomWin.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ZoomWin.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ZoomProg.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ZoomProg.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Pan.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Pan.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="PanGlo.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="PanGlo.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Front.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Front.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Back.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Back.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="TOP.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="TOP.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BOTTOM.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BOTTOM.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="LEFT.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="LEFT.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="RIGHT.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="RIGHT.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Axo.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Axo.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Rot.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Rot.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Reset.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="Reset.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="HlrOn.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="HlrOn.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="HlrOff.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="HlrOff.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="toolBarButton1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="toolBarButton1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>(Default)</value>
|
||||
</data>
|
||||
<data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>8, 8</value>
|
||||
</data>
|
||||
<data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="$this.Name">
|
||||
<value>Form1</value>
|
||||
</data>
|
||||
<data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>80</value>
|
||||
</data>
|
||||
<data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP///////wAA////////
|
||||
AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
|
||||
/////wAA//8AAH//AAD//wAAf/8AAP//4AP//wAA///4B///AAD///gP//8AAP///B///wAA///8H///
|
||||
AAD///wf//8AAP///h///wAA///8H///AAD//+AD//8AAP//wAD//wAA//4AAD//AAD//AAAB/8AAP/w
|
||||
AAAAAwAA/8AAAAABAADAAAAAADgAAMAAAAAAPAAAwAAAAAA8AADAAAAAIDgAAP///j/+AQAA///+P/+D
|
||||
AAD///4///8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
|
||||
/////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
942
samples/CSharp/IE/Form2.cs
Executable file
@@ -0,0 +1,942 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace IE
|
||||
{
|
||||
public enum CurrentAction3d
|
||||
{
|
||||
CurAction3d_Nothing,
|
||||
CurAction3d_DynamicZooming,
|
||||
CurAction3d_WindowZooming,
|
||||
CurAction3d_DynamicPanning,
|
||||
CurAction3d_GlobalPanning,
|
||||
CurAction3d_DynamicRotation
|
||||
}
|
||||
public enum CurrentPressedKey
|
||||
{
|
||||
CurPressedKey_Nothing,
|
||||
CurPressedKey_Ctrl,
|
||||
CurPressedKey_Shift
|
||||
}
|
||||
public enum ModelFormat
|
||||
{
|
||||
BREP,
|
||||
CSFDB,
|
||||
STEP,
|
||||
IGES,
|
||||
VRML,
|
||||
STL,
|
||||
IMAGE
|
||||
}
|
||||
/// <summary>
|
||||
/// Summary description for Form2.
|
||||
/// </summary>
|
||||
public class Form2 : System.Windows.Forms.Form
|
||||
{
|
||||
private System.ComponentModel.IContainer components;
|
||||
|
||||
public Form2()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
//
|
||||
// TODO: Add any constructor code after InitializeComponent call
|
||||
//
|
||||
myView = new shell();
|
||||
myCurrentMode=CurrentAction3d.CurAction3d_Nothing;
|
||||
myCurrentPressedKey=CurrentPressedKey.CurPressedKey_Nothing;
|
||||
myDegenerateModeIsOn=true;
|
||||
IsRectVisible=false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
protected override void Dispose( bool disposing )
|
||||
{
|
||||
if( disposing )
|
||||
{
|
||||
if(components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form2));
|
||||
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
|
||||
this.myPopup = new System.Windows.Forms.ContextMenu();
|
||||
this.menuItem1 = new System.Windows.Forms.MenuItem();
|
||||
this.myPopupObject = new System.Windows.Forms.ContextMenu();
|
||||
this.ContextWireframe = new System.Windows.Forms.MenuItem();
|
||||
this.ContextShading = new System.Windows.Forms.MenuItem();
|
||||
this.ContextColor = new System.Windows.Forms.MenuItem();
|
||||
this.ContextMaterial = new System.Windows.Forms.MenuItem();
|
||||
this.ContMatBrass = new System.Windows.Forms.MenuItem();
|
||||
this.ContMenBronze = new System.Windows.Forms.MenuItem();
|
||||
this.ContMenCopper = new System.Windows.Forms.MenuItem();
|
||||
this.ContMenGold = new System.Windows.Forms.MenuItem();
|
||||
this.ContMenPewt = new System.Windows.Forms.MenuItem();
|
||||
this.ContMenPlaster = new System.Windows.Forms.MenuItem();
|
||||
this.ContMenPlastic = new System.Windows.Forms.MenuItem();
|
||||
this.ContMenSilver = new System.Windows.Forms.MenuItem();
|
||||
this.ContMenTranc = new System.Windows.Forms.MenuItem();
|
||||
this.ContMenDelete = new System.Windows.Forms.MenuItem();
|
||||
//
|
||||
// imageList1
|
||||
//
|
||||
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
|
||||
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
|
||||
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
|
||||
//
|
||||
// myPopup
|
||||
//
|
||||
this.myPopup.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.menuItem1});
|
||||
//
|
||||
// menuItem1
|
||||
//
|
||||
this.menuItem1.Index = 0;
|
||||
this.menuItem1.Text = "Change &Background";
|
||||
this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
|
||||
//
|
||||
// myPopupObject
|
||||
//
|
||||
this.myPopupObject.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.ContextWireframe,
|
||||
this.ContextShading,
|
||||
this.ContextColor,
|
||||
this.ContextMaterial,
|
||||
this.ContMenTranc,
|
||||
this.ContMenDelete});
|
||||
this.myPopupObject.Popup += new System.EventHandler(this.myPopupObject_Popup);
|
||||
//
|
||||
// ContextWireframe
|
||||
//
|
||||
this.ContextWireframe.Index = 0;
|
||||
this.ContextWireframe.Text = "Wireframe";
|
||||
this.ContextWireframe.Click += new System.EventHandler(this.ContextWireframe_Click);
|
||||
//
|
||||
// ContextShading
|
||||
//
|
||||
this.ContextShading.Index = 1;
|
||||
this.ContextShading.Text = "Shading";
|
||||
this.ContextShading.Click += new System.EventHandler(this.ContextShading_Click);
|
||||
//
|
||||
// ContextColor
|
||||
//
|
||||
this.ContextColor.Index = 2;
|
||||
this.ContextColor.Text = "Color";
|
||||
this.ContextColor.Click += new System.EventHandler(this.ContextColor_Click);
|
||||
//
|
||||
// ContextMaterial
|
||||
//
|
||||
this.ContextMaterial.Index = 3;
|
||||
this.ContextMaterial.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.ContMatBrass,
|
||||
this.ContMenBronze,
|
||||
this.ContMenCopper,
|
||||
this.ContMenGold,
|
||||
this.ContMenPewt,
|
||||
this.ContMenPlaster,
|
||||
this.ContMenPlastic,
|
||||
this.ContMenSilver});
|
||||
this.ContextMaterial.Text = "Material";
|
||||
//
|
||||
// ContMatBrass
|
||||
//
|
||||
this.ContMatBrass.Index = 0;
|
||||
this.ContMatBrass.Text = "&Brass";
|
||||
this.ContMatBrass.Click += new System.EventHandler(this.ContMatBrass_Click);
|
||||
//
|
||||
// ContMenBronze
|
||||
//
|
||||
this.ContMenBronze.Index = 1;
|
||||
this.ContMenBronze.Text = "&Bronze";
|
||||
this.ContMenBronze.Click += new System.EventHandler(this.ContMenBronze_Click);
|
||||
//
|
||||
// ContMenCopper
|
||||
//
|
||||
this.ContMenCopper.Index = 2;
|
||||
this.ContMenCopper.Text = "&Copper";
|
||||
this.ContMenCopper.Click += new System.EventHandler(this.ContMenCopper_Click);
|
||||
//
|
||||
// ContMenGold
|
||||
//
|
||||
this.ContMenGold.Index = 3;
|
||||
this.ContMenGold.Text = "&Gold";
|
||||
this.ContMenGold.Click += new System.EventHandler(this.ContMenGold_Click);
|
||||
//
|
||||
// ContMenPewt
|
||||
//
|
||||
this.ContMenPewt.Index = 4;
|
||||
this.ContMenPewt.Text = "&Pewter";
|
||||
this.ContMenPewt.Click += new System.EventHandler(this.ContMenPewt_Click);
|
||||
//
|
||||
// ContMenPlaster
|
||||
//
|
||||
this.ContMenPlaster.Index = 5;
|
||||
this.ContMenPlaster.Text = "&Plaster";
|
||||
this.ContMenPlaster.Click += new System.EventHandler(this.ContMenPlaster_Click);
|
||||
//
|
||||
// ContMenPlastic
|
||||
//
|
||||
this.ContMenPlastic.Index = 6;
|
||||
this.ContMenPlastic.Text = "&Plastic";
|
||||
this.ContMenPlastic.Click += new System.EventHandler(this.ContMenPlastic_Click);
|
||||
//
|
||||
// ContMenSilver
|
||||
//
|
||||
this.ContMenSilver.Index = 7;
|
||||
this.ContMenSilver.Text = "&Silver";
|
||||
this.ContMenSilver.Click += new System.EventHandler(this.ContMenSilver_Click);
|
||||
//
|
||||
// ContMenTranc
|
||||
//
|
||||
this.ContMenTranc.Index = 4;
|
||||
this.ContMenTranc.Text = "&Trancparency";
|
||||
this.ContMenTranc.Click += new System.EventHandler(this.ContMenTranc_Click);
|
||||
//
|
||||
// ContMenDelete
|
||||
//
|
||||
this.ContMenDelete.Index = 5;
|
||||
this.ContMenDelete.Text = "&Delete";
|
||||
this.ContMenDelete.Click += new System.EventHandler(this.ContMenDelete_Click);
|
||||
//
|
||||
// Form2
|
||||
//
|
||||
this.AccessibleRole = System.Windows.Forms.AccessibleRole.Window;
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.ClientSize = new System.Drawing.Size(320, 261);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.Name = "Form2";
|
||||
this.Text = "Document";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form2_KeyDown);
|
||||
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form2_MouseDown);
|
||||
this.SizeChanged += new System.EventHandler(this.Form2_SizeChanged);
|
||||
this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Form2_MouseUp);
|
||||
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.Form2_KeyUp);
|
||||
this.Closed += new System.EventHandler(this.Form2_Closed);
|
||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form2_Paint);
|
||||
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form2_MouseMove);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ImageList imageList1;
|
||||
private System.Windows.Forms.ContextMenu myPopup;
|
||||
private System.Windows.Forms.ContextMenu myPopupObject;
|
||||
private System.Windows.Forms.MenuItem ContextWireframe;
|
||||
private System.Windows.Forms.MenuItem ContextShading;
|
||||
private System.Windows.Forms.MenuItem ContextColor;
|
||||
private System.Windows.Forms.MenuItem ContextMaterial;
|
||||
private System.Windows.Forms.MenuItem ContMatBrass;
|
||||
private System.Windows.Forms.MenuItem ContMenBronze;
|
||||
private System.Windows.Forms.MenuItem ContMenCopper;
|
||||
private System.Windows.Forms.MenuItem ContMenGold;
|
||||
private System.Windows.Forms.MenuItem ContMenPewt;
|
||||
private System.Windows.Forms.MenuItem ContMenPlaster;
|
||||
private System.Windows.Forms.MenuItem ContMenPlastic;
|
||||
private System.Windows.Forms.MenuItem ContMenSilver;
|
||||
private System.Windows.Forms.MenuItem ContMenTranc;
|
||||
private System.Windows.Forms.MenuItem ContMenDelete;
|
||||
private System.Windows.Forms.MenuItem menuItem1;
|
||||
|
||||
private shell myView;
|
||||
|
||||
public void InitV3D()
|
||||
{
|
||||
|
||||
if( !myView.InitViewer(this.Handle) )
|
||||
MessageBox.Show("Fatal Error during the graphic initialisation", "Error!",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
|
||||
public bool ImportBRep(System.String filename)
|
||||
{
|
||||
return myView.ImportBrep(filename);
|
||||
}
|
||||
|
||||
private void Form2_SizeChanged(object sender, System.EventArgs e)
|
||||
{
|
||||
myView.UpdateView();
|
||||
}
|
||||
|
||||
private void Form2_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
|
||||
{
|
||||
myView.RedrawView();
|
||||
myView.UpdateView();
|
||||
}
|
||||
|
||||
protected CurrentAction3d myCurrentMode;
|
||||
protected CurrentPressedKey myCurrentPressedKey;
|
||||
protected float myCurZoom;// ~ Quantity_Factor
|
||||
protected bool myDegenerateModeIsOn;
|
||||
protected int myXmin;
|
||||
protected int myYmin;
|
||||
protected int myXmax;
|
||||
protected int myYmax;
|
||||
protected int theButtonDownX;
|
||||
protected int theButtonDownY;
|
||||
// for erasing of rectangle
|
||||
protected int theRectDownX;
|
||||
protected int theRectDownY;
|
||||
protected bool IsRectVisible;
|
||||
|
||||
private void Form2_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
|
||||
{
|
||||
switch (e.Button)
|
||||
{
|
||||
case MouseButtons.Left:
|
||||
myXmin=e.X; myYmin=e.Y;
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
if (myCurrentPressedKey==CurrentPressedKey.CurPressedKey_Ctrl)
|
||||
// start the dinamic zooming....
|
||||
myCurrentMode=CurrentAction3d.CurAction3d_DynamicZooming;
|
||||
else
|
||||
{
|
||||
switch(myCurrentMode)
|
||||
{
|
||||
case CurrentAction3d.CurAction3d_Nothing:
|
||||
if (myCurrentPressedKey==CurrentPressedKey.CurPressedKey_Shift)
|
||||
MultiDragEvent(myXmax, myYmax, -1);
|
||||
else
|
||||
DragEvent(myXmax, myYmax, -1);
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_DynamicRotation:
|
||||
if (!myDegenerateModeIsOn)
|
||||
myView.SetDegenerateModeOn();
|
||||
//start the rotation
|
||||
myView.StartRotation(e.X, e.Y);
|
||||
break;
|
||||
case IE.CurrentAction3d.CurAction3d_WindowZooming:
|
||||
this.Cursor=System.Windows.Forms.Cursors.Hand;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MouseButtons.Right:
|
||||
//MessageBox.Show("right mouse button is down");
|
||||
if (myCurrentPressedKey==CurrentPressedKey.CurPressedKey_Ctrl)
|
||||
{
|
||||
if (!myDegenerateModeIsOn)
|
||||
myView.SetDegenerateModeOn();
|
||||
myView.StartRotation(e.X, e.Y);
|
||||
}
|
||||
else
|
||||
Popup(e.X, e.Y);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void Form2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
|
||||
{
|
||||
if (e.Shift)
|
||||
myCurrentPressedKey=CurrentPressedKey.CurPressedKey_Shift;
|
||||
else if (e.Control)
|
||||
myCurrentPressedKey=CurrentPressedKey.CurPressedKey_Ctrl;
|
||||
}
|
||||
|
||||
private void Form2_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
|
||||
{
|
||||
myCurrentPressedKey=CurrentPressedKey.CurPressedKey_Nothing;
|
||||
}
|
||||
|
||||
protected void MultiDragEvent(int x, int y, int theState)
|
||||
{
|
||||
if ( theState==-1)
|
||||
{
|
||||
theButtonDownX=x;
|
||||
theButtonDownY=y;
|
||||
}
|
||||
else if (theState==1)
|
||||
myView.ShiftSelect(Math.Min(theButtonDownX,x), Math.Min(theButtonDownY,y),
|
||||
Math.Max(theButtonDownX, x), Math.Max(theButtonDownY, y));
|
||||
}
|
||||
|
||||
protected void DragEvent(int x, int y, int theState)
|
||||
{
|
||||
if (theState==-1) //mouse is down
|
||||
{
|
||||
theButtonDownX=x;
|
||||
theButtonDownY=y;
|
||||
}
|
||||
else if (theState==1) //mouse is up
|
||||
{
|
||||
myView.Select(Math.Min(theButtonDownX, x), Math.Min(theButtonDownY,y),
|
||||
Math.Max(theButtonDownX, x), Math.Max(theButtonDownY,y));
|
||||
}
|
||||
}
|
||||
|
||||
protected void Popup(int x, int y)
|
||||
{
|
||||
System.Drawing.Point p = new Point(x,y);
|
||||
if (this.myView.IsObjectSelected())
|
||||
this.myPopupObject.Show(this, p);
|
||||
else
|
||||
this.myPopup.Show(this, p);
|
||||
}
|
||||
|
||||
private void Form2_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
|
||||
{
|
||||
switch(e.Button)
|
||||
{
|
||||
case MouseButtons.Left:
|
||||
if (myCurrentPressedKey==CurrentPressedKey.CurPressedKey_Ctrl)
|
||||
return;
|
||||
switch(myCurrentMode)
|
||||
{
|
||||
case CurrentAction3d.CurAction3d_Nothing:
|
||||
if( e.X==myXmin && e.Y==myYmin)
|
||||
{
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
if (myCurrentPressedKey==CurrentPressedKey.CurPressedKey_Shift)
|
||||
MultiInputEvent(myXmax, myYmax);
|
||||
else
|
||||
InputEvent(myXmax, myYmax);
|
||||
}
|
||||
else
|
||||
{
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
DrawRectangle(false);
|
||||
if (myCurrentPressedKey==CurrentPressedKey.CurPressedKey_Shift)
|
||||
MultiDragEvent(myXmax, myYmax, 1);
|
||||
else
|
||||
DragEvent(myXmax, myYmax, 1);
|
||||
}
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_DynamicZooming:
|
||||
myCurrentMode=CurrentAction3d.CurAction3d_Nothing;
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_WindowZooming:
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
DrawRectangle(false);
|
||||
int ValZWMin = 1;
|
||||
if (Math.Abs(myXmax-myXmin)>ValZWMin && Math.Abs(myXmax-myYmax)>ValZWMin)
|
||||
myView.WindowFitAll(myXmin, myYmin, myXmax, myYmax);
|
||||
this.Cursor=System.Windows.Forms.Cursors.Default;
|
||||
IE.Form1 f = (IE.Form1)this.ParentForm;
|
||||
f.SelectionChanged();
|
||||
myCurrentMode=CurrentAction3d.CurAction3d_Nothing;
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_DynamicPanning:
|
||||
myCurrentMode=CurrentAction3d.CurAction3d_Nothing;
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_GlobalPanning:
|
||||
myView.Place(e.X, e.Y, myCurZoom);
|
||||
myCurrentMode=CurrentAction3d.CurAction3d_Nothing;
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_DynamicRotation:
|
||||
myCurrentMode=CurrentAction3d.CurAction3d_Nothing;
|
||||
if (!myDegenerateModeIsOn)
|
||||
{
|
||||
myView.SetDegenerateModeOff();
|
||||
myDegenerateModeIsOn=false;
|
||||
}
|
||||
else
|
||||
{
|
||||
myView.SetDegenerateModeOn();
|
||||
myDegenerateModeIsOn=true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
break;
|
||||
case MouseButtons.Right:
|
||||
if (!myDegenerateModeIsOn)
|
||||
{
|
||||
myView.SetDegenerateModeOff();
|
||||
myDegenerateModeIsOn=false;
|
||||
}
|
||||
else
|
||||
{
|
||||
myView.SetDegenerateModeOn();
|
||||
myDegenerateModeIsOn=true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
IE.Form1 parent = (IE.Form1)this.ParentForm;
|
||||
parent.SelectionChanged();
|
||||
}
|
||||
|
||||
protected void MultiInputEvent(int x, int y)
|
||||
{
|
||||
myView.ShiftSelect();
|
||||
}
|
||||
|
||||
protected void InputEvent(int x, int y)
|
||||
{
|
||||
myView.Select();
|
||||
}
|
||||
|
||||
private void DrawRectangle(bool draw)
|
||||
{
|
||||
Graphics gr = Graphics.FromHwnd(this.Handle);
|
||||
System.Drawing.Pen p = null;
|
||||
if (this.IsRectVisible ||(!draw))//erase the rect
|
||||
{
|
||||
int r=myView.GetBGColR();
|
||||
int g=myView.GetBGColG();
|
||||
int b=myView.GetBGColB();
|
||||
p = new Pen(System.Drawing.Color.FromArgb( r,g, b));
|
||||
this.IsRectVisible=false;
|
||||
this.myView.UpdateView();
|
||||
}
|
||||
else if (draw)
|
||||
{
|
||||
p = new Pen(System.Drawing.Color.White);
|
||||
this.IsRectVisible=true;
|
||||
}
|
||||
if ( p == null )
|
||||
return;
|
||||
int x=Math.Min(this.myXmin, this.myXmax);
|
||||
int y=Math.Min(this.myYmin, this.myYmax);
|
||||
gr.DrawRectangle(p, x, y, Math.Abs(myXmax-myXmin), Math.Abs(myYmax - myYmin));
|
||||
this.theRectDownX=Math.Max(this.myXmin, this.myXmax);
|
||||
this.theRectDownY=Math.Max(this.myYmin, this.myYmax);
|
||||
}
|
||||
|
||||
private void Form2_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
|
||||
{
|
||||
if (e.Button == MouseButtons.Left) //left button is pressed
|
||||
{
|
||||
if (myCurrentPressedKey==CurrentPressedKey.CurPressedKey_Ctrl)
|
||||
{
|
||||
myView.Zoom(myXmax, myYmax, e.X, e.Y);
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (myCurrentMode)
|
||||
{
|
||||
case CurrentAction3d.CurAction3d_Nothing:
|
||||
DrawRectangle(false);
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
DrawRectangle(true);
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_DynamicZooming:
|
||||
myView.Zoom(myXmax, myYmax, e.X, e.Y);
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_WindowZooming:
|
||||
DrawRectangle(false);
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
DrawRectangle(true);//add brush here
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_DynamicPanning:
|
||||
myView.Pan(e.X-myXmax, myYmax - e.Y);
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_GlobalPanning:
|
||||
break;
|
||||
case CurrentAction3d.CurAction3d_DynamicRotation:
|
||||
myView.Rotation(e.X, e.Y);
|
||||
myView.RedrawView();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
} // e.Button == MouseButtons.Left
|
||||
else if (e.Button==MouseButtons.Middle)
|
||||
{
|
||||
if (myCurrentPressedKey==CurrentPressedKey.CurPressedKey_Ctrl)
|
||||
{
|
||||
myView.Pan(e.X-myXmax, myYmax - e.Y);
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
}
|
||||
}//e.Button=MouseButtons.Middle
|
||||
else if (e.Button==MouseButtons.Right) //right button is pressed
|
||||
{
|
||||
if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl)
|
||||
myView.Rotation(e.X, e.Y);
|
||||
}
|
||||
else // no buttons are pressed
|
||||
{
|
||||
myXmax=e.X; myYmax=e.Y;
|
||||
if (myCurrentPressedKey==CurrentPressedKey.CurPressedKey_Shift)
|
||||
MultiMoveEvent(e.X, e.Y);
|
||||
else
|
||||
MoveEvent(e.X, e.Y);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected void MultiMoveEvent(int x, int y)
|
||||
{
|
||||
myView.MoveTo(x, y);
|
||||
}
|
||||
|
||||
protected void MoveEvent(int x, int y)
|
||||
{
|
||||
myView.MoveTo(x, y);
|
||||
}
|
||||
|
||||
public void SetDisplayMode(int aMode)
|
||||
{
|
||||
myView.SetDisplayMode(aMode);
|
||||
}
|
||||
|
||||
public void ChangeColor(bool IsObjectColor)
|
||||
{
|
||||
int r, g, b;
|
||||
if (IsObjectColor)
|
||||
{
|
||||
r=myView.GetObjColR();
|
||||
g=myView.GetObjColG();
|
||||
b=myView.GetObjColB();
|
||||
}
|
||||
else
|
||||
{
|
||||
r=myView.GetBGColR();
|
||||
g=myView.GetBGColG();
|
||||
b=myView.GetBGColB();
|
||||
}
|
||||
System.Windows.Forms.ColorDialog ColDlg = new ColorDialog();
|
||||
ColDlg.Color=System.Drawing.Color.FromArgb(r, g, b);
|
||||
if (ColDlg.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
Color c = ColDlg.Color;
|
||||
r=c.R;
|
||||
g=c.G;
|
||||
b=c.B;
|
||||
if (IsObjectColor)
|
||||
myView.SetColor(r, g, b);
|
||||
else
|
||||
myView.SetBackgroundColor(r, g, b);
|
||||
}
|
||||
this.myView.UpdateCurrentViewer();
|
||||
|
||||
}
|
||||
|
||||
public void DeleteObjects()
|
||||
{
|
||||
myView.EraseObjects();
|
||||
}
|
||||
public void ImportModel(IE.ModelFormat format)
|
||||
{
|
||||
int theformat=10;
|
||||
System.Windows.Forms.OpenFileDialog openDialog = new OpenFileDialog();
|
||||
|
||||
string DataDir=((Environment.GetEnvironmentVariable("CASROOT")) + "\\..\\data");
|
||||
|
||||
string filter="";
|
||||
|
||||
switch (format)
|
||||
{
|
||||
case ModelFormat.BREP:
|
||||
openDialog.InitialDirectory = (DataDir + "\\occ");
|
||||
theformat=0;
|
||||
filter= "BREP Files (*.brep *.rle)|*.brep; *.rle";
|
||||
break;
|
||||
case ModelFormat.CSFDB:
|
||||
theformat=1;
|
||||
filter= "CSFDB Files (*.csfdb)|*.csfdb";
|
||||
break;
|
||||
case IE.ModelFormat.STEP:
|
||||
openDialog.InitialDirectory = (DataDir + "\\step");
|
||||
theformat=2;
|
||||
filter="STEP Files (*.stp *.step)|*.stp; *.step";
|
||||
break;
|
||||
case IE.ModelFormat.IGES:
|
||||
openDialog.InitialDirectory = (DataDir + "\\iges");
|
||||
theformat=3;
|
||||
filter="IGES Files (*.igs *.iges)|*.igs; *.iges";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
openDialog.Filter = filter+"|All files (*.*)|*.*" ;
|
||||
if(openDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string filename = openDialog.FileName;
|
||||
if ( filename=="")
|
||||
return;
|
||||
this.Cursor=System.Windows.Forms.Cursors.WaitCursor;
|
||||
if (!myView.TranslateModel(filename, theformat, true))
|
||||
MessageBox.Show("Cann't read this file", "Error!",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
this.Cursor=System.Windows.Forms.Cursors.Default;
|
||||
}
|
||||
this.myView.ZoomAllView();
|
||||
}
|
||||
|
||||
public void ExportModel(ModelFormat format)
|
||||
{
|
||||
int theformat=10;
|
||||
System.Windows.Forms.SaveFileDialog saveDialog = new SaveFileDialog();
|
||||
string DataDir=((Environment.GetEnvironmentVariable("CASROOT")) + "\\..\\data");
|
||||
string filter="";
|
||||
switch (format)
|
||||
{
|
||||
case IE.ModelFormat.BREP:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\occ");
|
||||
theformat=0;
|
||||
filter= "BREP Files (*.brep *.rle)|*.brep; *.rle";
|
||||
break;
|
||||
case IE.ModelFormat.CSFDB:
|
||||
theformat=1;
|
||||
filter= "CSFDB Files (*.csfdb)|*.csfdb";
|
||||
break;
|
||||
case IE.ModelFormat.STEP:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\step");
|
||||
theformat=2;
|
||||
filter="STEP Files (*.stp *.step)|*.step; *.stp";
|
||||
break;
|
||||
case IE.ModelFormat.IGES:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\iges");
|
||||
theformat=3;
|
||||
filter="IGES Files (*.igs *.iges)| *.iges; *.igs";
|
||||
break;
|
||||
case IE.ModelFormat.VRML:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\vrml");
|
||||
theformat=4;
|
||||
filter="VRML Files (*.vrml)|*.vrml";
|
||||
break;
|
||||
case IE.ModelFormat.STL:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\stl");
|
||||
theformat=5;
|
||||
filter="STL Files (*.stl)|*.stl";
|
||||
break;
|
||||
case IE.ModelFormat.IMAGE:
|
||||
saveDialog.InitialDirectory = (DataDir + "\\images");
|
||||
theformat=6;
|
||||
filter="Images Files (*.bmp *.gif *.xwd)| *.bmp; *.gif; *.xwd";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
saveDialog.Filter = filter;
|
||||
if(saveDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string filename = saveDialog.FileName;
|
||||
if ( filename=="")
|
||||
return;
|
||||
this.Cursor=System.Windows.Forms.Cursors.WaitCursor;
|
||||
if (!myView.TranslateModel(filename, theformat, false))
|
||||
MessageBox.Show("Cann't write this file", "Error!",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
this.Cursor=System.Windows.Forms.Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
private void ContextColor_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.ChangeColor(true);
|
||||
}
|
||||
|
||||
private void menuItem1_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myView.UpdateCurrentViewer();
|
||||
this.ChangeColor(false);
|
||||
}
|
||||
|
||||
private void ContextWireframe_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.SetDisplayMode(0);
|
||||
this.myView.UpdateCurrentViewer();
|
||||
IE.Form1 parent=(IE.Form1)this.ParentForm;
|
||||
parent.SelectionChanged();
|
||||
}
|
||||
|
||||
private void ContextShading_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.SetDisplayMode(1);
|
||||
this.myView.UpdateCurrentViewer();
|
||||
IE.Form1 parent=(IE.Form1)this.ParentForm;
|
||||
parent.SelectionChanged();
|
||||
}
|
||||
|
||||
private void ContMenTranc_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
IE.TransparencyDialog dlg = new TransparencyDialog();
|
||||
dlg.View=this.myView;
|
||||
dlg.ShowDialog(this);
|
||||
}
|
||||
|
||||
private void ContMenDelete_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.DeleteObjects();
|
||||
}
|
||||
|
||||
private void ContMatBrass_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myView.UpdateCurrentViewer();
|
||||
this.myView.SetMaterial(0);
|
||||
}
|
||||
|
||||
private void ContMenBronze_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myView.UpdateCurrentViewer();
|
||||
this.myView.SetMaterial(1);
|
||||
}
|
||||
|
||||
private void ContMenCopper_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myView.UpdateCurrentViewer();
|
||||
this.myView.SetMaterial(2);
|
||||
}
|
||||
|
||||
private void ContMenGold_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myView.UpdateCurrentViewer();
|
||||
this.myView.SetMaterial(3);
|
||||
}
|
||||
|
||||
private void ContMenPewt_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myView.UpdateCurrentViewer();
|
||||
this.myView.SetMaterial(4);
|
||||
}
|
||||
|
||||
private void ContMenPlaster_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myView.UpdateCurrentViewer();
|
||||
this.myView.SetMaterial(5);
|
||||
}
|
||||
|
||||
private void ContMenPlastic_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myView.UpdateCurrentViewer();
|
||||
this.myView.SetMaterial(6);
|
||||
}
|
||||
|
||||
private void ContMenSilver_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myView.UpdateCurrentViewer();
|
||||
this.myView.SetMaterial(7);
|
||||
}
|
||||
|
||||
private void toolBar1_MouseHover(object sender, System.EventArgs e)
|
||||
{
|
||||
IE.Form1 parent=(IE.Form1)this.ParentForm;
|
||||
parent.StatusBar.Text="View toolbar";
|
||||
|
||||
}
|
||||
|
||||
private void toolBar1_MouseLeave(object sender, System.EventArgs e)
|
||||
{
|
||||
IE.Form1 parent=(IE.Form1)this.ParentForm;
|
||||
parent.StatusBar.Text="";
|
||||
}
|
||||
|
||||
private void myPopupObject_Popup(object sender, System.EventArgs e)
|
||||
{
|
||||
int mode=this.myView.DisplayMode();
|
||||
switch (mode)
|
||||
{
|
||||
case -1:
|
||||
break;
|
||||
case 0:
|
||||
this.ContextWireframe.Enabled=false;
|
||||
this.ContextShading.Enabled=true;
|
||||
this.ContMenTranc.Enabled=false;
|
||||
break;
|
||||
case 1:
|
||||
this.ContextShading.Enabled=false;
|
||||
this.ContextWireframe.Enabled=true;
|
||||
this.ContMenTranc.Enabled=true;
|
||||
break;
|
||||
case 10:
|
||||
this.ContextShading.Enabled=true;;
|
||||
this.ContextWireframe.Enabled=true;
|
||||
this.ContMenTranc.Enabled=true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public shell View
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.myView;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.myView=value;
|
||||
}
|
||||
}
|
||||
|
||||
public void InitView()
|
||||
{
|
||||
this.myView.InitOCCViewer();
|
||||
}
|
||||
|
||||
public void SetContext(shell View)
|
||||
{
|
||||
this.myView.SetAISContext(View);
|
||||
}
|
||||
|
||||
private void Form2_Closed(object sender, System.EventArgs e)
|
||||
{
|
||||
IE.Form1 parent = (IE.Form1) this.ParentForm;
|
||||
parent.OnFileClose();
|
||||
}
|
||||
|
||||
public CurrentAction3d Mode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.myCurrentMode;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.myCurrentMode=value;
|
||||
}
|
||||
}
|
||||
|
||||
public float Zoom
|
||||
{
|
||||
set
|
||||
{
|
||||
this.myCurZoom=value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool DegenerateMode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.myDegenerateModeIsOn;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.myDegenerateModeIsOn=value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
357
samples/CSharp/IE/Form2.resx
Executable file
@@ -0,0 +1,357 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 1.3
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">1.3</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1">this is my long string</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
[base64 mime encoded serialized .NET Framework object]
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
[base64 mime encoded string representing a byte array form of the .NET Framework object]
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used forserialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="imageList1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="imageList1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="imageList1.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</data>
|
||||
<data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>
|
||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFpTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0xLjAuNTAw
|
||||
MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZT
|
||||
eXN0ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMA
|
||||
AADoEgAAAk1TRnQBSQFMAgEBEAEAARMBAAEEAQABEAEAARABAAT/AQkBEAj/AUIBTQE2AQQGAAE2AQQC
|
||||
AAEoAwABQAMAAVADAAEBAQABCAYAARQYAAGAAgABgAM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fMB
|
||||
+gG/AecB8wHwAQMB8AEDAfwBfwHwAQMB/wHvAfoBvwH+BP8B9wH+Bv8B+wH+Af8BHwH4Af8B/QT/AT8B
|
||||
/AHcAQABfwH/Af4B/wEfAfoBzwH9AT8B/wH8AX8BzwH3AecB/QGfAf8B+gG/AecB/wHzAf0BzwH9Af4B
|
||||
/wHyAQ8BuQENAeQBGAH+Af8B+QH3AbwB9QHzAe0B3wH3AvsBvQH5AvcBvwH7AfMB+QG5AfkB5wHzAQcB
|
||||
wQH3Af0BuwH9Ae8BGwG/AfsB9wH9AbsB/QHsAfsB3gH3AfMB+QG5AfkB9wHzAf4B/wHrAfsBvQH5AvcB
|
||||
/gH/AV0B8gG+AfUBGwHvAfoBvwE+AQwCAQH8AR8B/AF/AR8B+AG/A/8B/gH/FgAL
|
||||
</value>
|
||||
</data>
|
||||
<data name="myPopup.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="myPopup.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>122, 17</value>
|
||||
</data>
|
||||
<data name="myPopup.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="menuItem1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="myPopupObject.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="myPopupObject.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>220, 17</value>
|
||||
</data>
|
||||
<data name="myPopupObject.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContextWireframe.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContextWireframe.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContextShading.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContextShading.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContextColor.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContextColor.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContextMaterial.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContextMaterial.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMatBrass.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMatBrass.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenBronze.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenBronze.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenCopper.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenCopper.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenGold.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenGold.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenPewt.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenPewt.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenPlaster.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenPlaster.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenPlastic.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenPlastic.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenSilver.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenSilver.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenTranc.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenTranc.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenDelete.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="ContMenDelete.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>(Default)</value>
|
||||
</data>
|
||||
<data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Name">
|
||||
<value>Form2</value>
|
||||
</data>
|
||||
<data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>8, 8</value>
|
||||
</data>
|
||||
<data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>80</value>
|
||||
</data>
|
||||
<data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAIAICAQAAAAAADoAgAAJgAAABAQEAAAAAAAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAIAC
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/
|
||||
AAAA//8A/wAAAP8A/wD//wAA////AAiIiIAAiIgAAAAAAAAAAAAAAACIgAAIiAAAAAAAAAAAD///AA//
|
||||
8AiIAAAAAAAAAA////////8ACIgAAAAAAAAP//////////AIgAAAAAAAD///////////AIgAAAAAAA//
|
||||
//////////AIAAAAAAAP////////////CIAAAAAAD///+IiIiIiIiACIiIiAAA/////////////wAAAA
|
||||
iAAP////////////////8AiAD/////////////////8AgA//////////////////8IAP////////////
|
||||
//////CID//////////////////wCA////iIiIiIiIiIiIiIiAgP//////////////////8ID///////
|
||||
////////////CA///////////////////wgP//////////////////8ID///////////////////CA//
|
||||
/////////////////wgP///4iIiIiIiIiIiIiIgID///////////////////CA////mZ//mf+Zn/mZ//
|
||||
/wgP///5/5+f+fn///n///8ID///+f+fn/n5///5////CA////n/n5/5+f//+f///wgP///5mf/5n/mZ
|
||||
/5n///8ID///////////////////CA///////////////////wgAAAAAAAAAAAAAAAAAAAAAgcP//wAA
|
||||
//8AAD//AAAP/wAAB/8AAAP/AAAD/wAAAf8AAAAHAAAAAwAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAEoAAAAEAAAACAAAAABAAQAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAA
|
||||
AACAAIAAgIAAAMDAwACAgIAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAd3B3AAAAAAAAdwAHcA
|
||||
AAAP8A//AHAAAA//////AAZgD/d3d3cHd2AP/////wAHcA////////AAD/d3d3d3dwcP////////Bw//
|
||||
//////8HD5n/+f/5nwcPn5+fn5//Bw+fn5+fn/8HD5n/+f/5nwcP////////BwAAAAAAAAAAif8AAAA/
|
||||
AAAAHwAAABkAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAA==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
174
samples/CSharp/IE/IE.csproj
Executable file
@@ -0,0 +1,174 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectType>Local</ProjectType>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}</ProjectGuid>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ApplicationIcon>App.ico</ApplicationIcon>
|
||||
<AssemblyKeyContainerName>
|
||||
</AssemblyKeyContainerName>
|
||||
<AssemblyName>IE</AssemblyName>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<DefaultClientScript>JScript</DefaultClientScript>
|
||||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
||||
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
||||
<DelaySign>false</DelaySign>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>IE</RootNamespace>
|
||||
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<Optimize>false</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DebugType>full</DebugType>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
||||
<ConfigurationOverrideFile>
|
||||
</ConfigurationOverrideFile>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
<NoStdLib>false</NoStdLib>
|
||||
<NoWarn>
|
||||
</NoWarn>
|
||||
<Optimize>true</Optimize>
|
||||
<RegisterForComInterop>false</RegisterForComInterop>
|
||||
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DebugType>none</DebugType>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<BaseAddress>285212672</BaseAddress>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>
|
||||
</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System">
|
||||
<Name>System</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Data">
|
||||
<Name>System.Data</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Drawing">
|
||||
<Name>System.Drawing</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Windows.Forms">
|
||||
<Name>System.Windows.Forms</Name>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml">
|
||||
<Name>System.XML</Name>
|
||||
</Reference>
|
||||
<ProjectReference Include="..\OCC\OCC.vcproj">
|
||||
<Name>OCC</Name>
|
||||
<Project>{DCB139CF-2190-412E-B72F-8B080CC01422}</Project>
|
||||
<Package>{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}</Package>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\shell\shell.vcproj">
|
||||
<Name>shell</Name>
|
||||
<Project>{969912D9-78E7-4AB8-B4FF-6B52B4F03991}</Project>
|
||||
<Package>{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}</Package>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AboutDialog.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form2.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MaterialDialog.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TransparencyDialog.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="AboutDialog.resx">
|
||||
<DependentUpon>AboutDialog.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form2.resx">
|
||||
<DependentUpon>Form2.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="MaterialDialog.resx">
|
||||
<DependentUpon>MaterialDialog.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TransparencyDialog.resx">
|
||||
<DependentUpon>TransparencyDialog.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<None Include="app.config" />
|
||||
<Content Include="App.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
56
samples/CSharp/IE/IE.sln
Executable file
@@ -0,0 +1,56 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IE", "IE.csproj", "{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OCC", "..\OCC\OCC.vcproj", "{DCB139CF-2190-412E-B72F-8B080CC01422}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "shell", "..\shell\shell.vcproj", "{969912D9-78E7-4AB8-B4FF-6B52B4F03991}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422} = {DCB139CF-2190-412E-B72F-8B080CC01422}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|Mixed Platforms = Release|Mixed Platforms
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Debug|Win32.ActiveCfg = Debug|Any CPU
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Release|Win32.ActiveCfg = Release|Any CPU
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Debug|Any CPU.ActiveCfg = Debug|Win32
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Debug|Mixed Platforms.Build.0 = Debug|Win32
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Release|Any CPU.ActiveCfg = Release|Win32
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Release|Mixed Platforms.ActiveCfg = Release|Win32
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Release|Mixed Platforms.Build.0 = Release|Win32
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{DCB139CF-2190-412E-B72F-8B080CC01422}.Release|Win32.Build.0 = Release|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|Any CPU.ActiveCfg = Debug|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|Mixed Platforms.Build.0 = Debug|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|Any CPU.ActiveCfg = Release|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|Mixed Platforms.ActiveCfg = Release|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|Mixed Platforms.Build.0 = Release|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
248
samples/CSharp/IE/MaterialDialog.cs
Executable file
@@ -0,0 +1,248 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace IE
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for MaterialDialog.
|
||||
/// </summary>
|
||||
public class MaterialDialog : System.Windows.Forms.Form
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.Container components = null;
|
||||
|
||||
public MaterialDialog()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
//
|
||||
// TODO: Add any constructor code after InitializeComponent call
|
||||
//
|
||||
this.myView=null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
protected override void Dispose( bool disposing )
|
||||
{
|
||||
if( disposing )
|
||||
{
|
||||
if(components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MaterialDialog));
|
||||
this.BTN_PLASTER = new System.Windows.Forms.Button();
|
||||
this.BTN_BRASS = new System.Windows.Forms.Button();
|
||||
this.BTN_BRONZE = new System.Windows.Forms.Button();
|
||||
this.BTN_COPPER = new System.Windows.Forms.Button();
|
||||
this.BTN_GOLD = new System.Windows.Forms.Button();
|
||||
this.BTN_PEWTER = new System.Windows.Forms.Button();
|
||||
this.BTN_PLASTIC = new System.Windows.Forms.Button();
|
||||
this.BTN_SILVER = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// BTN_PLASTER
|
||||
//
|
||||
this.BTN_PLASTER.Location = new System.Drawing.Point(16, 8);
|
||||
this.BTN_PLASTER.Name = "BTN_PLASTER";
|
||||
this.BTN_PLASTER.Size = new System.Drawing.Size(80, 24);
|
||||
this.BTN_PLASTER.TabIndex = 0;
|
||||
this.BTN_PLASTER.Text = "Plaster";
|
||||
this.BTN_PLASTER.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// BTN_BRASS
|
||||
//
|
||||
this.BTN_BRASS.Location = new System.Drawing.Point(16, 40);
|
||||
this.BTN_BRASS.Name = "BTN_BRASS";
|
||||
this.BTN_BRASS.Size = new System.Drawing.Size(80, 24);
|
||||
this.BTN_BRASS.TabIndex = 1;
|
||||
this.BTN_BRASS.Text = "Brass";
|
||||
this.BTN_BRASS.Click += new System.EventHandler(this.BTN_BRASS_Click);
|
||||
//
|
||||
// BTN_BRONZE
|
||||
//
|
||||
this.BTN_BRONZE.Location = new System.Drawing.Point(16, 72);
|
||||
this.BTN_BRONZE.Name = "BTN_BRONZE";
|
||||
this.BTN_BRONZE.Size = new System.Drawing.Size(80, 24);
|
||||
this.BTN_BRONZE.TabIndex = 2;
|
||||
this.BTN_BRONZE.Text = "Bronze";
|
||||
this.BTN_BRONZE.Click += new System.EventHandler(this.BTN_BRONZE_Click);
|
||||
//
|
||||
// BTN_COPPER
|
||||
//
|
||||
this.BTN_COPPER.Location = new System.Drawing.Point(16, 104);
|
||||
this.BTN_COPPER.Name = "BTN_COPPER";
|
||||
this.BTN_COPPER.Size = new System.Drawing.Size(80, 24);
|
||||
this.BTN_COPPER.TabIndex = 3;
|
||||
this.BTN_COPPER.Text = "Copper";
|
||||
this.BTN_COPPER.Click += new System.EventHandler(this.BTN_COPPER_Click);
|
||||
//
|
||||
// BTN_GOLD
|
||||
//
|
||||
this.BTN_GOLD.Location = new System.Drawing.Point(16, 136);
|
||||
this.BTN_GOLD.Name = "BTN_GOLD";
|
||||
this.BTN_GOLD.Size = new System.Drawing.Size(80, 24);
|
||||
this.BTN_GOLD.TabIndex = 4;
|
||||
this.BTN_GOLD.Text = "Gold";
|
||||
this.BTN_GOLD.Click += new System.EventHandler(this.BTN_GOLD_Click);
|
||||
//
|
||||
// BTN_PEWTER
|
||||
//
|
||||
this.BTN_PEWTER.Location = new System.Drawing.Point(16, 168);
|
||||
this.BTN_PEWTER.Name = "BTN_PEWTER";
|
||||
this.BTN_PEWTER.Size = new System.Drawing.Size(80, 24);
|
||||
this.BTN_PEWTER.TabIndex = 5;
|
||||
this.BTN_PEWTER.Text = "Pewter";
|
||||
this.BTN_PEWTER.Click += new System.EventHandler(this.BTN_PEWTER_Click);
|
||||
//
|
||||
// BTN_PLASTIC
|
||||
//
|
||||
this.BTN_PLASTIC.Location = new System.Drawing.Point(16, 200);
|
||||
this.BTN_PLASTIC.Name = "BTN_PLASTIC";
|
||||
this.BTN_PLASTIC.Size = new System.Drawing.Size(80, 24);
|
||||
this.BTN_PLASTIC.TabIndex = 6;
|
||||
this.BTN_PLASTIC.Text = "Plastic";
|
||||
this.BTN_PLASTIC.Click += new System.EventHandler(this.BTN_PLASTIC_Click);
|
||||
//
|
||||
// BTN_SILVER
|
||||
//
|
||||
this.BTN_SILVER.Location = new System.Drawing.Point(16, 232);
|
||||
this.BTN_SILVER.Name = "BTN_SILVER";
|
||||
this.BTN_SILVER.Size = new System.Drawing.Size(80, 24);
|
||||
this.BTN_SILVER.TabIndex = 7;
|
||||
this.BTN_SILVER.Text = "Silver";
|
||||
this.BTN_SILVER.Click += new System.EventHandler(this.BTN_SILVER_Click);
|
||||
//
|
||||
// MaterialDialog
|
||||
//
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.ClientSize = new System.Drawing.Size(112, 273);
|
||||
this.Controls.Add(this.BTN_SILVER);
|
||||
this.Controls.Add(this.BTN_PLASTIC);
|
||||
this.Controls.Add(this.BTN_PEWTER);
|
||||
this.Controls.Add(this.BTN_GOLD);
|
||||
this.Controls.Add(this.BTN_COPPER);
|
||||
this.Controls.Add(this.BTN_BRONZE);
|
||||
this.Controls.Add(this.BTN_BRASS);
|
||||
this.Controls.Add(this.BTN_PLASTER);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "MaterialDialog";
|
||||
this.Text = "MaterialDialog";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button BTN_PLASTER;
|
||||
private System.Windows.Forms.Button BTN_BRASS;
|
||||
private System.Windows.Forms.Button BTN_BRONZE;
|
||||
private System.Windows.Forms.Button BTN_COPPER;
|
||||
private System.Windows.Forms.Button BTN_GOLD;
|
||||
private System.Windows.Forms.Button BTN_PEWTER;
|
||||
private System.Windows.Forms.Button BTN_PLASTIC;
|
||||
private System.Windows.Forms.Button BTN_SILVER;
|
||||
|
||||
private int myMaterial;
|
||||
private shell myView;
|
||||
|
||||
private void button1_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myMaterial=5;
|
||||
ChangeMaterial();
|
||||
}
|
||||
|
||||
private void BTN_BRASS_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myMaterial=0;
|
||||
ChangeMaterial();
|
||||
}
|
||||
|
||||
private void BTN_BRONZE_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myMaterial=1;
|
||||
ChangeMaterial();
|
||||
}
|
||||
|
||||
private void BTN_COPPER_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myMaterial=2;
|
||||
ChangeMaterial();
|
||||
}
|
||||
|
||||
private void BTN_GOLD_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myMaterial=3;
|
||||
ChangeMaterial();
|
||||
}
|
||||
|
||||
private void BTN_PEWTER_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myMaterial=4;
|
||||
ChangeMaterial();
|
||||
}
|
||||
|
||||
private void BTN_PLASTIC_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myMaterial=6;
|
||||
ChangeMaterial();
|
||||
}
|
||||
|
||||
private void BTN_SILVER_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
this.myMaterial=7;
|
||||
ChangeMaterial();
|
||||
}
|
||||
|
||||
public int Material
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.myMaterial;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.myMaterial=value;
|
||||
}
|
||||
}
|
||||
|
||||
public void ChangeMaterial()
|
||||
{
|
||||
if (myView==null)
|
||||
return;
|
||||
myView.SetMaterial(this.myMaterial);
|
||||
|
||||
}
|
||||
|
||||
public shell View
|
||||
{
|
||||
set
|
||||
{
|
||||
this.myView=value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
269
samples/CSharp/IE/MaterialDialog.resx
Executable file
@@ -0,0 +1,269 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 1.3
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">1.3</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1">this is my long string</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
[base64 mime encoded serialized .NET Framework object]
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
[base64 mime encoded string representing a byte array form of the .NET Framework object]
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used forserialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="BTN_PLASTER.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="BTN_PLASTER.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_PLASTER.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_BRASS.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="BTN_BRASS.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_BRASS.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_BRONZE.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="BTN_BRONZE.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_BRONZE.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_COPPER.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="BTN_COPPER.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_COPPER.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_GOLD.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="BTN_GOLD.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_GOLD.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_PEWTER.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="BTN_PEWTER.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_PEWTER.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_PLASTIC.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="BTN_PLASTIC.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_PLASTIC.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_SILVER.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="BTN_SILVER.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="BTN_SILVER.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>(Default)</value>
|
||||
</data>
|
||||
<data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>8, 8</value>
|
||||
</data>
|
||||
<data name="$this.Name">
|
||||
<value>MaterialDialog</value>
|
||||
</data>
|
||||
<data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>80</value>
|
||||
</data>
|
||||
<data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAMDAAAAAAAACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAgAoAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW
|
||||
FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA
|
||||
MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz/wAAZgAAAGYzAABmZgAAZpkAAGbMAABm
|
||||
/wAAmQAAAJkzAACZZgAAmZkAAJnMAACZ/wAAzAAAAMwzAADMZgAAzJkAAMzMAADM/wAA/2YAAP+ZAAD/
|
||||
zAAzAAAAMwAzADMAZgAzAJkAMwDMADMA/wAzMwAAMzMzADMzZgAzM5kAMzPMADMz/wAzZgAAM2YzADNm
|
||||
ZgAzZpkAM2bMADNm/wAzmQAAM5kzADOZZgAzmZkAM5nMADOZ/wAzzAAAM8wzADPMZgAzzJkAM8zMADPM
|
||||
/wAz/zMAM/9mADP/mQAz/8wAM///AGYAAABmADMAZgBmAGYAmQBmAMwAZgD/AGYzAABmMzMAZjNmAGYz
|
||||
mQBmM8wAZjP/AGZmAABmZjMAZmZmAGZmmQBmZswAZpkAAGaZMwBmmWYAZpmZAGaZzABmmf8AZswAAGbM
|
||||
MwBmzJkAZszMAGbM/wBm/wAAZv8zAGb/mQBm/8wAzAD/AP8AzACZmQAAmTOZAJkAmQCZAMwAmQAAAJkz
|
||||
MwCZAGYAmTPMAJkA/wCZZgAAmWYzAJkzZgCZZpkAmWbMAJkz/wCZmTMAmZlmAJmZmQCZmcwAmZn/AJnM
|
||||
AACZzDMAZsxmAJnMmQCZzMwAmcz/AJn/AACZ/zMAmcxmAJn/mQCZ/8wAmf//AMwAAACZADMAzABmAMw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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP///////wAA////////
|
||||
AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
|
||||
/////wAA//8AAH//AAD//wAAf/8AAP//4AP//wAA///4B///AAD///gP//8AAP///B///wAA///8H///
|
||||
AAD///wf//8AAP///h///wAA///8H///AAD//+AD//8AAP//wAD//wAA//4AAD//AAD//AAAB/8AAP/w
|
||||
AAAAAwAA/8AAAAABAADAAAAAADgAAMAAAAAAPAAAwAAAAAA8AADAAAAAIDgAAP///j/+AQAA///+P/+D
|
||||
AAD///4///8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
|
||||
/////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
108
samples/CSharp/IE/TransparencyDialog.cs
Executable file
@@ -0,0 +1,108 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace IE
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for TransparencyDialog.
|
||||
/// </summary>
|
||||
public class TransparencyDialog : System.Windows.Forms.Form
|
||||
{
|
||||
private System.Windows.Forms.NumericUpDown MyTransparency;
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.Container components = null;
|
||||
private shell myView;
|
||||
|
||||
public TransparencyDialog()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
|
||||
//
|
||||
// TODO: Add any constructor code after InitializeComponent call
|
||||
//
|
||||
myView=null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
protected override void Dispose( bool disposing )
|
||||
{
|
||||
if( disposing )
|
||||
{
|
||||
if(components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TransparencyDialog));
|
||||
this.MyTransparency = new System.Windows.Forms.NumericUpDown();
|
||||
((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// MyTransparency
|
||||
//
|
||||
this.MyTransparency.Location = new System.Drawing.Point(16, 16);
|
||||
this.MyTransparency.Maximum = new System.Decimal(new int[] {
|
||||
10,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.MyTransparency.Name = "MyTransparency";
|
||||
this.MyTransparency.Size = new System.Drawing.Size(96, 20);
|
||||
this.MyTransparency.TabIndex = 0;
|
||||
this.MyTransparency.ValueChanged += new System.EventHandler(this.MyTransparency_ValueChanged);
|
||||
//
|
||||
// TransparencyDialog
|
||||
//
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
||||
this.ClientSize = new System.Drawing.Size(128, 53);
|
||||
this.Controls.Add(this.MyTransparency);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "TransparencyDialog";
|
||||
this.Text = "TransparencyDialog";
|
||||
((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void MyTransparency_ValueChanged(object sender, System.EventArgs e)
|
||||
{
|
||||
if (this.myView==null)
|
||||
return;
|
||||
int transp = (int)this.MyTransparency.Value;
|
||||
this.myView.SetTransparency(transp);
|
||||
}
|
||||
|
||||
public shell View
|
||||
{
|
||||
set
|
||||
{
|
||||
this.myView=value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
206
samples/CSharp/IE/TransparencyDialog.resx
Executable file
@@ -0,0 +1,206 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 1.3
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">1.3</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1">this is my long string</data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
[base64 mime encoded serialized .NET Framework object]
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
[base64 mime encoded string representing a byte array form of the .NET Framework object]
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used forserialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>1.3</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="MyTransparency.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="MyTransparency.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="MyTransparency.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>(Default)</value>
|
||||
</data>
|
||||
<data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>8, 8</value>
|
||||
</data>
|
||||
<data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>80</value>
|
||||
</data>
|
||||
<data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>Private</value>
|
||||
</data>
|
||||
<data name="$this.Name">
|
||||
<value>TransparencyDialog</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAMDAAAAAAAACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAgAoAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW
|
||||
FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA
|
||||
MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz/wAAZgAAAGYzAABmZgAAZpkAAGbMAABm
|
||||
/wAAmQAAAJkzAACZZgAAmZkAAJnMAACZ/wAAzAAAAMwzAADMZgAAzJkAAMzMAADM/wAA/2YAAP+ZAAD/
|
||||
zAAzAAAAMwAzADMAZgAzAJkAMwDMADMA/wAzMwAAMzMzADMzZgAzM5kAMzPMADMz/wAzZgAAM2YzADNm
|
||||
ZgAzZpkAM2bMADNm/wAzmQAAM5kzADOZZgAzmZkAM5nMADOZ/wAzzAAAM8wzADPMZgAzzJkAM8zMADPM
|
||||
/wAz/zMAM/9mADP/mQAz/8wAM///AGYAAABmADMAZgBmAGYAmQBmAMwAZgD/AGYzAABmMzMAZjNmAGYz
|
||||
mQBmM8wAZjP/AGZmAABmZjMAZmZmAGZmmQBmZswAZpkAAGaZMwBmmWYAZpmZAGaZzABmmf8AZswAAGbM
|
||||
MwBmzJkAZszMAGbM/wBm/wAA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8AAP//4AP//wAA///4B///AAD///gP//8AAP///B///wAA///8H///
|
||||
AAD///wf//8AAP///h///wAA///8H///AAD//+AD//8AAP//wAD//wAA//4AAD//AAD//AAAB/8AAP/w
|
||||
AAAAAwAA/8AAAAABAADAAAAAADgAAMAAAAAAPAAAwAAAAAA8AADAAAAAIDgAAP///j/+AQAA///+P/+D
|
||||
AAD///4///8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
|
||||
/////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
25
samples/CSharp/IE/app.config
Executable file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<!-- User application and configured property settings go here.-->
|
||||
<!-- Example: <add key="settingName" value="settingValue"/> -->
|
||||
<add key="New.Visible" value="True" />
|
||||
<add key="About.Visible" value="True" />
|
||||
<add key="delete.Enabled" value="False" />
|
||||
<add key="delete.Visible" value="False" />
|
||||
<add key="transparency.Enabled" value="False" />
|
||||
<add key="transparency.Visible" value="False" />
|
||||
<add key="marerial.Enabled" value="False" />
|
||||
<add key="marerial.Visible" value="True" />
|
||||
<add key="color.Enabled" value="False" />
|
||||
<add key="color.Visible" value="False" />
|
||||
<add key="shading.Enabled" value="False" />
|
||||
<add key="shading.Pushed" value="False" />
|
||||
<add key="shading.Visible" value="False" />
|
||||
<add key="wireframe.Enabled" value="False" />
|
||||
<add key="wireframe.Pushed" value="False" />
|
||||
<add key="wireframe.Visible" value="False" />
|
||||
<add key="material.Enabled" value="False" />
|
||||
<add key="material.Visible" value="False" />
|
||||
</appSettings>
|
||||
</configuration>
|
BIN
samples/CSharp/IE/res/MainFrame.ico
Executable file
After Width: | Height: | Size: 3.7 KiB |
BIN
samples/CSharp/IE/res/document.ico
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
samples/CSharp/IE/res/document.png
Executable file
After Width: | Height: | Size: 241 B |
BIN
samples/CSharp/IE/res/help.png
Executable file
After Width: | Height: | Size: 214 B |
BIN
samples/CSharp/IE/res/lamp.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
samples/CSharp/IE/res/new.png
Executable file
After Width: | Height: | Size: 177 B |
BIN
samples/CSharp/IE/res/occ_logo.bmp
Executable file
After Width: | Height: | Size: 57 KiB |
BIN
samples/CSharp/IE/res/tool_color.png
Executable file
After Width: | Height: | Size: 283 B |
BIN
samples/CSharp/IE/res/tool_delete.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
samples/CSharp/IE/res/tool_material.png
Executable file
After Width: | Height: | Size: 283 B |
BIN
samples/CSharp/IE/res/tool_shading.png
Executable file
After Width: | Height: | Size: 256 B |
BIN
samples/CSharp/IE/res/tool_transparency.png
Executable file
After Width: | Height: | Size: 234 B |
BIN
samples/CSharp/IE/res/tool_wireframe.png
Executable file
After Width: | Height: | Size: 186 B |
BIN
samples/CSharp/IE/res/view_axo.png
Executable file
After Width: | Height: | Size: 262 B |
BIN
samples/CSharp/IE/res/view_back.png
Executable file
After Width: | Height: | Size: 233 B |
BIN
samples/CSharp/IE/res/view_bottom.png
Executable file
After Width: | Height: | Size: 233 B |
BIN
samples/CSharp/IE/res/view_comp_off.png
Executable file
After Width: | Height: | Size: 199 B |
BIN
samples/CSharp/IE/res/view_comp_on.png
Executable file
After Width: | Height: | Size: 180 B |
BIN
samples/CSharp/IE/res/view_fitall.png
Executable file
After Width: | Height: | Size: 231 B |
BIN
samples/CSharp/IE/res/view_fitarea.png
Executable file
After Width: | Height: | Size: 224 B |
BIN
samples/CSharp/IE/res/view_front.png
Executable file
After Width: | Height: | Size: 238 B |
BIN
samples/CSharp/IE/res/view_glpan.png
Executable file
After Width: | Height: | Size: 205 B |
BIN
samples/CSharp/IE/res/view_left.png
Executable file
After Width: | Height: | Size: 231 B |
BIN
samples/CSharp/IE/res/view_pan.png
Executable file
After Width: | Height: | Size: 178 B |
BIN
samples/CSharp/IE/res/view_reset.png
Executable file
After Width: | Height: | Size: 204 B |
BIN
samples/CSharp/IE/res/view_right.png
Executable file
After Width: | Height: | Size: 230 B |
BIN
samples/CSharp/IE/res/view_rotate.png
Executable file
After Width: | Height: | Size: 224 B |
BIN
samples/CSharp/IE/res/view_top.png
Executable file
After Width: | Height: | Size: 235 B |
BIN
samples/CSharp/IE/res/view_zoom.png
Executable file
After Width: | Height: | Size: 222 B |
15
samples/CSharp/OCC/OCC.cpp
Executable file
@@ -0,0 +1,15 @@
|
||||
// OCC.cpp : Defines the entry point for the DLL application.
|
||||
//
|
||||
//__declspec(dllexport)
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "OCCViewer.h"
|
||||
#pragma unmanaged
|
||||
BOOL APIENTRY DllMain( HANDLE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
248
samples/CSharp/OCC/OCC.vcproj
Executable file
@@ -0,0 +1,248 @@
|
||||
<?xml version="1.0" encoding="windows-1251"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="OCC"
|
||||
ProjectGUID="{DCB139CF-2190-412E-B72F-8B080CC01422}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="$(CASROOT)\inc"
|
||||
PreprocessorDefinitions="WNT"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="TKV3d.lib TKV2d.lib TKHLR.lib TKService.lib TKBool.lib TKPShape.lib TKMath.lib TKBO.lib TKernel.lib TKPrim.lib TKTopAlgo.lib TKBRep.lib TKGeomAlgo.lib TKG2d.lib TKG3d.lib PTKernel.lib TKShapeSchema.lib TKXSBase.lib TKIGES.lib TKSTEP.lib TKSTEP209.lib TKSTEPAttr.lib TKSTEPBase.lib TKShHealing.lib TKSTL.lib TKVRML.lib"
|
||||
OutputFile="$(OutDir)/OCC.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="$(CASROOT)\win32\vc8\lib"
|
||||
GenerateDebugInformation="true"
|
||||
AssemblyDebug="1"
|
||||
ProgramDatabaseFile="$(OutDir)/OCC.pdb"
|
||||
SubSystem="2"
|
||||
ResourceOnlyDLL="false"
|
||||
ImportLibrary="$(OutDir)/OCC.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="$(CASROOT)\inc"
|
||||
PreprocessorDefinitions="WNT"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="TKV3d.lib TKV2d.lib TKHLR.lib TKService.lib TKBool.lib TKPShape.lib TKMath.lib TKBO.lib TKernel.lib TKPrim.lib TKTopAlgo.lib TKBRep.lib TKGeomAlgo.lib TKG2d.lib TKG3d.lib PTKernel.lib TKShapeSchema.lib TKXSBase.lib TKIGES.lib TKSTEP.lib TKSTEP209.lib TKSTEPAttr.lib TKSTEPBase.lib TKShHealing.lib TKSTL.lib TKVRML.lib"
|
||||
OutputFile="$(OutDir)/OCC.dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="$(CASROOT)\win32\vc8\lib"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(OutDir)/OCC.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\OCC.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\OCCViewer.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\stdafx.cpp"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\OCCViewer.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\stdafx.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\ReadMe.txt"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
573
samples/CSharp/OCC/OCCViewer.cpp
Executable file
@@ -0,0 +1,573 @@
|
||||
#include "StdAfx.h"
|
||||
#include ".\occviewer.h"
|
||||
|
||||
#pragma warning( disable : 4800 )
|
||||
OCCViewer::OCCViewer(void)
|
||||
{
|
||||
myGraphicDevice=NULL;
|
||||
myViewer=NULL;
|
||||
myView=NULL;
|
||||
myAISContext=NULL;
|
||||
}
|
||||
|
||||
OCCViewer::~OCCViewer(void)
|
||||
{
|
||||
myView->Remove();
|
||||
}
|
||||
|
||||
bool OCCViewer::InitViewer(void* wnd)
|
||||
{
|
||||
try {
|
||||
myGraphicDevice = new Graphic3d_WNTGraphicDevice();
|
||||
} catch (Standard_Failure) {
|
||||
return false;
|
||||
}
|
||||
TCollection_ExtendedString a3DName("Visu3D");
|
||||
myViewer = new V3d_Viewer( myGraphicDevice, a3DName.ToExtString(),"", 1000.0,
|
||||
V3d_XposYnegZpos, Quantity_NOC_GRAY30,
|
||||
V3d_ZBUFFER,V3d_GOURAUD,V3d_WAIT,
|
||||
Standard_True, Standard_False);
|
||||
|
||||
myViewer->Init();
|
||||
myViewer->SetDefaultLights();
|
||||
myViewer->SetLightOn();
|
||||
myView = myViewer->CreateView();
|
||||
Handle(WNT_Window) aWNTWindow = new WNT_Window(myGraphicDevice, reinterpret_cast<HWND> (wnd));
|
||||
myView->SetWindow(aWNTWindow);
|
||||
if (!aWNTWindow->IsMapped())
|
||||
aWNTWindow->Map();
|
||||
myAISContext = new AIS_InteractiveContext(myViewer);
|
||||
myAISContext->UpdateCurrentViewer();
|
||||
myView->Redraw();
|
||||
myView->MustBeResized();
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
bool OCCViewer::ImportBRep(char* filename)
|
||||
{
|
||||
Standard_CString aFileName = (Standard_CString) filename;
|
||||
TopoDS_Shape aShape;
|
||||
BRep_Builder aBuilder;
|
||||
Standard_Boolean result = BRepTools::Read(aShape,aFileName,aBuilder);
|
||||
if (!result)
|
||||
return false;
|
||||
if(myAISContext->HasOpenedContext())
|
||||
myAISContext->CloseLocalContext();
|
||||
myAISContext->Display(new AIS_Shape(aShape));
|
||||
return true;
|
||||
}
|
||||
|
||||
void OCCViewer::UpdateView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->MustBeResized();
|
||||
}
|
||||
|
||||
void OCCViewer::RedrawView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->Redraw();
|
||||
}
|
||||
|
||||
void OCCViewer::SetDegenerateModeOn(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetDegenerateModeOn();
|
||||
}
|
||||
|
||||
void OCCViewer::SetDegenerateModeOff(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetDegenerateModeOff();
|
||||
}
|
||||
|
||||
void OCCViewer::WindowFitAll(int Xmin, int Ymin, int Xmax, int Ymax)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->WindowFitAll(Xmin, Ymin, Xmax, Ymax);
|
||||
}
|
||||
|
||||
void OCCViewer::Place(int x, int y, float zoomFactor)
|
||||
{
|
||||
Quantity_Factor aZoomFactor = zoomFactor;
|
||||
if (!myView.IsNull())
|
||||
myView->Place(x, y, aZoomFactor);
|
||||
}
|
||||
|
||||
void OCCViewer::Zoom(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->Zoom(x1, y1, x2, y2);
|
||||
}
|
||||
|
||||
void OCCViewer::Pan(int x, int y)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->Pan(x, y);
|
||||
}
|
||||
|
||||
void OCCViewer::Rotation(int x, int y)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->Rotation(x, y);
|
||||
}
|
||||
|
||||
void OCCViewer::StartRotation(int x, int y)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->StartRotation(x, y);
|
||||
}
|
||||
|
||||
void OCCViewer::Select(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
if (!myAISContext.IsNull())
|
||||
myAISContext->Select(x1, y1, x2, y2, myView);
|
||||
}
|
||||
|
||||
void OCCViewer::Select(void)
|
||||
{
|
||||
if (!myAISContext.IsNull())
|
||||
myAISContext->Select();
|
||||
}
|
||||
|
||||
void OCCViewer::MoveTo(int x, int y)
|
||||
{
|
||||
if ((!myAISContext.IsNull()) && (!myView.IsNull()))
|
||||
myAISContext->MoveTo(x, y, myView);
|
||||
}
|
||||
|
||||
void OCCViewer::ShiftSelect(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
if ((!myAISContext.IsNull()) && (!myView.IsNull()))
|
||||
myAISContext->ShiftSelect(x1, y1, x2, y2, myView);
|
||||
}
|
||||
|
||||
void OCCViewer::ShiftSelect(void)
|
||||
{
|
||||
if (!myAISContext.IsNull())
|
||||
myAISContext->ShiftSelect();
|
||||
}
|
||||
|
||||
void OCCViewer::BackgroundColor(int& r, int& g, int& b)
|
||||
{
|
||||
Standard_Real R1;
|
||||
Standard_Real G1;
|
||||
Standard_Real B1;
|
||||
if (!myView.IsNull())
|
||||
myView->BackgroundColor(Quantity_TOC_RGB,R1,G1,B1);
|
||||
r = (int)R1*255;
|
||||
g = (int)G1*255;
|
||||
b = (int)B1*255;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void OCCViewer::UpdateCurrentViewer(void)
|
||||
{
|
||||
if (!myAISContext.IsNull())
|
||||
myAISContext->UpdateCurrentViewer();
|
||||
}
|
||||
|
||||
void OCCViewer::FrontView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetProj(V3d_Xpos);
|
||||
}
|
||||
|
||||
void OCCViewer::TopView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetProj(V3d_Zpos);
|
||||
}
|
||||
|
||||
void OCCViewer::LeftView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetProj(V3d_Ypos);
|
||||
}
|
||||
|
||||
void OCCViewer::BackView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetProj(V3d_Xneg);
|
||||
}
|
||||
|
||||
void OCCViewer::RightView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetProj(V3d_Yneg);
|
||||
}
|
||||
|
||||
void OCCViewer::BottomView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetProj(V3d_Zneg);
|
||||
}
|
||||
|
||||
void OCCViewer::AxoView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetProj(V3d_XposYnegZpos);
|
||||
}
|
||||
|
||||
void OCCViewer::ZoomAllView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
{
|
||||
myView->FitAll();
|
||||
myView->ZFitAll();
|
||||
}
|
||||
}
|
||||
|
||||
float OCCViewer::Scale(void)
|
||||
{
|
||||
if (myView.IsNull())
|
||||
return -1;
|
||||
else
|
||||
return (float)myView->Scale();
|
||||
}
|
||||
|
||||
void OCCViewer::ResetView(void)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->Reset();
|
||||
}
|
||||
|
||||
void OCCViewer::SetDisplayMode(int aMode)
|
||||
{
|
||||
if (myAISContext.IsNull())
|
||||
return;
|
||||
AIS_DisplayMode CurrentMode;
|
||||
if (aMode == 0)
|
||||
CurrentMode=AIS_WireFrame;
|
||||
else
|
||||
CurrentMode=AIS_Shaded;
|
||||
if(myAISContext->NbCurrents()==0 || myAISContext->NbSelected()==0)
|
||||
myAISContext->SetDisplayMode(CurrentMode);
|
||||
else
|
||||
{
|
||||
for(myAISContext->InitCurrent();myAISContext->MoreCurrent();myAISContext->NextCurrent())
|
||||
myAISContext->SetDisplayMode(myAISContext->Current(),aMode,Standard_False);
|
||||
|
||||
}
|
||||
myAISContext->UpdateCurrentViewer();
|
||||
}
|
||||
|
||||
void OCCViewer::SetColor(int r, int g, int b)
|
||||
{
|
||||
if (myAISContext.IsNull())
|
||||
return;
|
||||
Quantity_Color col = Quantity_Color(r/255.,g/255.,b/255.,Quantity_TOC_RGB);
|
||||
for (;myAISContext->MoreCurrent ();myAISContext->NextCurrent ())
|
||||
myAISContext->SetColor (myAISContext->Current(),col.Name());
|
||||
}
|
||||
|
||||
void OCCViewer::ObjectColor(int& r, int& g, int& b)
|
||||
{
|
||||
if (myAISContext.IsNull())
|
||||
return;
|
||||
r=255;
|
||||
g=255;
|
||||
b=255;
|
||||
Handle_AIS_InteractiveObject Current ;
|
||||
Quantity_Color ObjCol;
|
||||
myAISContext->InitCurrent();
|
||||
if (!myAISContext->MoreCurrent())
|
||||
return;
|
||||
Current = myAISContext->Current();
|
||||
if ( Current->HasColor () ) {
|
||||
ObjCol = myAISContext->Color(myAISContext->Current());
|
||||
Quantity_Parameter r1, r2, r3;
|
||||
ObjCol.Values(r1, r2, r3, Quantity_TOC_RGB);
|
||||
r=(int)r1*255;
|
||||
g=(int)r2*255;
|
||||
b=(int)r3*255;
|
||||
}
|
||||
}
|
||||
|
||||
void OCCViewer::SetBackgroundColor(int r, int g, int b)
|
||||
{
|
||||
if (!myView.IsNull())
|
||||
myView->SetBackgroundColor(Quantity_TOC_RGB,r/255.,g/255.,b/255.);
|
||||
}
|
||||
|
||||
void OCCViewer::EraseObjects(void)
|
||||
{
|
||||
if (myAISContext.IsNull())
|
||||
return;
|
||||
for(myAISContext->InitCurrent();myAISContext->MoreCurrent();myAISContext->NextCurrent())
|
||||
myAISContext->Erase(myAISContext->Current(),Standard_True,Standard_False);
|
||||
myAISContext->ClearCurrents();
|
||||
}
|
||||
|
||||
float OCCViewer::GetVersion(void)
|
||||
{
|
||||
return (float)OCC_VERSION;
|
||||
}
|
||||
|
||||
void OCCViewer::SetMaterial(int theMaterial)
|
||||
{
|
||||
if (myAISContext.IsNull())
|
||||
return;
|
||||
for ( myAISContext->InitCurrent(); myAISContext->MoreCurrent (); myAISContext->NextCurrent () )
|
||||
myAISContext->SetMaterial( myAISContext->Current(), (Graphic3d_NameOfMaterial)theMaterial );
|
||||
myAISContext->UpdateCurrentViewer();
|
||||
}
|
||||
|
||||
void OCCViewer::SetTransparency(int theTrans)
|
||||
{
|
||||
if (myAISContext.IsNull())
|
||||
return;
|
||||
for( myAISContext->InitCurrent(); myAISContext->MoreCurrent(); myAISContext->NextSelected() )
|
||||
myAISContext->SetTransparency( myAISContext->Current(), ((Standard_Real)theTrans) / 10.0 );
|
||||
}
|
||||
|
||||
bool OCCViewer::ImportCsfdb(char* filename)
|
||||
{
|
||||
Standard_CString aFileName = (Standard_CString) filename;
|
||||
if ( FSD_File::IsGoodFileType(aFileName) != Storage_VSOk )
|
||||
return false;
|
||||
|
||||
static FSD_File fileDriver;
|
||||
TCollection_AsciiString aName( aFileName );
|
||||
if ( fileDriver.Open( aName, Storage_VSRead ) != Storage_VSOk )
|
||||
return false;
|
||||
|
||||
Handle(ShapeSchema) schema = new ShapeSchema();
|
||||
Handle(Storage_Data) data = schema->Read( fileDriver );
|
||||
if ( data->ErrorStatus() != Storage_VSOk )
|
||||
return false;
|
||||
fileDriver.Close();
|
||||
|
||||
Handle(Storage_HSeqOfRoot) roots = data->Roots();
|
||||
for ( int i = 1; i <= roots->Length() ; i++ )
|
||||
{
|
||||
Handle(Storage_Root) r = roots->Value( i );
|
||||
Handle(Standard_Persistent) p = r->Object();
|
||||
Handle(PTopoDS_HShape) aPShape = Handle(PTopoDS_HShape)::DownCast(p);
|
||||
if ( !aPShape.IsNull() )
|
||||
{
|
||||
PTColStd_PersistentTransientMap aMap;
|
||||
TopoDS_Shape aTShape;
|
||||
MgtBRep::Translate( aPShape, aMap, aTShape, MgtBRep_WithTriangle );
|
||||
myAISContext->Display(new AIS_Shape(aTShape));
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OCCViewer::ImportIges(char* filename)
|
||||
{
|
||||
Standard_CString aFileName = (Standard_CString) filename;
|
||||
IGESControl_Reader Reader;
|
||||
int status = Reader.ReadFile( aFileName );
|
||||
|
||||
if ( status == IFSelect_RetDone )
|
||||
{
|
||||
Reader.TransferRoots();
|
||||
TopoDS_Shape aShape = Reader.OneShape();
|
||||
myAISContext->Display(new AIS_Shape(aShape));
|
||||
} else
|
||||
return false;
|
||||
myAISContext->UpdateCurrentViewer();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OCCViewer::ImportStep(char* filename)
|
||||
{
|
||||
Standard_CString aFileName = (Standard_CString) filename;
|
||||
STEPControl_Reader aReader;
|
||||
IFSelect_ReturnStatus status = aReader.ReadFile(aFileName);
|
||||
if ( status == IFSelect_RetDone )
|
||||
{
|
||||
bool failsonly = false;
|
||||
aReader.PrintCheckLoad( failsonly, IFSelect_ItemsByEntity );
|
||||
|
||||
int nbr = aReader.NbRootsForTransfer();
|
||||
aReader.PrintCheckTransfer( failsonly, IFSelect_ItemsByEntity );
|
||||
for ( Standard_Integer n = 1; n <= nbr; n++ )
|
||||
{
|
||||
Standard_Boolean ok = aReader.TransferRoot( n );
|
||||
int nbs = aReader.NbShapes();
|
||||
if ( nbs > 0 )
|
||||
{
|
||||
for ( int i = 1; i <= nbs; i++ )
|
||||
{
|
||||
TopoDS_Shape shape = aReader.Shape( i );
|
||||
myAISContext->Display(new AIS_Shape(shape));
|
||||
}
|
||||
}
|
||||
}
|
||||
} else
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OCCViewer::ExportBRep(char* filename)
|
||||
{
|
||||
myAISContext->InitCurrent();
|
||||
if (!myAISContext->MoreCurrent())
|
||||
return false;
|
||||
Handle_AIS_InteractiveObject anIO = myAISContext->Current();
|
||||
Handle_AIS_Shape anIS=Handle_AIS_Shape::DownCast(anIO);
|
||||
return (bool)BRepTools::Write( anIS->Shape(), (Standard_CString)filename ); ;
|
||||
}
|
||||
|
||||
|
||||
bool OCCViewer::ExportIges(char* filename)
|
||||
{
|
||||
IGESControl_Controller::Init();
|
||||
IGESControl_Writer writer( Interface_Static::CVal( "XSTEP.iges.unit" ),
|
||||
Interface_Static::IVal( "XSTEP.iges.writebrep.mode" ) );
|
||||
|
||||
|
||||
for ( myAISContext->InitCurrent(); myAISContext->MoreCurrent(); myAISContext->NextCurrent() )
|
||||
{
|
||||
Handle_AIS_InteractiveObject anIO = myAISContext->Current();
|
||||
Handle_AIS_Shape anIS=Handle_AIS_Shape::DownCast(anIO);
|
||||
TopoDS_Shape shape = anIS->Shape();
|
||||
writer.AddShape ( shape );
|
||||
}
|
||||
writer.ComputeModel();
|
||||
return (bool)writer.Write( (Standard_CString)filename );
|
||||
}
|
||||
|
||||
bool OCCViewer::ExpotStep(char* filename)
|
||||
{
|
||||
STEPControl_StepModelType type = STEPControl_AsIs;
|
||||
IFSelect_ReturnStatus status;
|
||||
STEPControl_Writer writer;
|
||||
for ( myAISContext->InitCurrent(); myAISContext->MoreCurrent(); myAISContext->NextCurrent() )
|
||||
{
|
||||
Handle_AIS_InteractiveObject anIO = myAISContext->Current();
|
||||
Handle_AIS_Shape anIS=Handle_AIS_Shape::DownCast(anIO);
|
||||
TopoDS_Shape shape = anIS->Shape();
|
||||
status = writer.Transfer( shape , type );
|
||||
if ( status != IFSelect_RetDone )
|
||||
return false;
|
||||
}
|
||||
|
||||
status = writer.Write( (Standard_CString)filename );
|
||||
if ( status != IFSelect_RetDone )
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OCCViewer::ExportStl(char* filename)
|
||||
{
|
||||
TopoDS_Compound comp;
|
||||
BRep_Builder builder;
|
||||
builder.MakeCompound( comp );
|
||||
|
||||
for ( myAISContext->InitCurrent(); myAISContext->MoreCurrent(); myAISContext->NextCurrent() )
|
||||
{
|
||||
Handle_AIS_InteractiveObject anIO = myAISContext->Current();
|
||||
Handle_AIS_Shape anIS=Handle_AIS_Shape::DownCast(anIO);
|
||||
TopoDS_Shape shape = anIS->Shape();
|
||||
if ( shape.IsNull() )
|
||||
return false;
|
||||
builder.Add( comp, shape );
|
||||
}
|
||||
|
||||
StlAPI_Writer writer;
|
||||
writer.Write( comp, (Standard_CString)filename );
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OCCViewer::ExportVrml(char* filename)
|
||||
{
|
||||
TopoDS_Compound res;
|
||||
BRep_Builder builder;
|
||||
builder.MakeCompound( res );
|
||||
|
||||
for ( myAISContext->InitCurrent(); myAISContext->MoreCurrent(); myAISContext->NextCurrent() )
|
||||
{
|
||||
Handle_AIS_InteractiveObject anIO = myAISContext->Current();
|
||||
Handle_AIS_Shape anIS=Handle_AIS_Shape::DownCast(anIO);
|
||||
TopoDS_Shape shape = anIS->Shape();
|
||||
if ( shape.IsNull() )
|
||||
return false;
|
||||
|
||||
builder.Add( res, shape );
|
||||
}
|
||||
|
||||
VrmlAPI_Writer writer;
|
||||
writer.Write( res, (Standard_CString)filename );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OCCViewer::Dump(char *filename)
|
||||
{
|
||||
if (myView.IsNull())
|
||||
return false;
|
||||
myView->Redraw();
|
||||
return (bool)myView->Dump(filename);
|
||||
}
|
||||
|
||||
bool OCCViewer::IsObjectSelected(void)
|
||||
{
|
||||
if (myAISContext.IsNull())
|
||||
return false;
|
||||
myAISContext->InitCurrent();
|
||||
return (bool)myAISContext->MoreCurrent();
|
||||
}
|
||||
|
||||
int OCCViewer::DisplayMode(void)
|
||||
{
|
||||
if (myAISContext.IsNull())
|
||||
return -1;
|
||||
int mode = -1;
|
||||
bool OneOrMoreInShading=false;
|
||||
bool OneOrMoreInWireframe=false;
|
||||
for (myAISContext->InitCurrent(); myAISContext->MoreCurrent(); myAISContext->NextCurrent())
|
||||
{
|
||||
if ( myAISContext->IsDisplayed( myAISContext->Current(), 1 ) )
|
||||
OneOrMoreInShading = true;
|
||||
if ( myAISContext->IsDisplayed( myAISContext->Current(), 0 ) )
|
||||
OneOrMoreInWireframe = true;
|
||||
}
|
||||
if (OneOrMoreInShading&&OneOrMoreInWireframe)
|
||||
mode=10;
|
||||
else if(OneOrMoreInShading)
|
||||
mode=1;
|
||||
else if (OneOrMoreInWireframe)
|
||||
mode=0;
|
||||
return mode;
|
||||
}
|
||||
|
||||
void OCCViewer::CreateNewView(void* wnd)
|
||||
{
|
||||
if (myAISContext.IsNull())
|
||||
return;
|
||||
myView = myAISContext->CurrentViewer()->CreateView();
|
||||
if (myGraphicDevice.IsNull())
|
||||
myGraphicDevice = new Graphic3d_WNTGraphicDevice();
|
||||
Handle(WNT_Window) aWNTWindow = new WNT_Window(myGraphicDevice, reinterpret_cast<HWND> (wnd));
|
||||
myView->SetWindow(aWNTWindow);
|
||||
Standard_Integer w=100, h=100;
|
||||
aWNTWindow->Size(w,h);
|
||||
if (!aWNTWindow->IsMapped())
|
||||
aWNTWindow->Map();
|
||||
}
|
||||
|
||||
bool OCCViewer::SetAISContext(OCCViewer* Viewer)
|
||||
{
|
||||
this->myAISContext=Viewer->GetAISContext();
|
||||
if (myAISContext.IsNull())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Handle_AIS_InteractiveContext OCCViewer::GetAISContext(void)
|
||||
{
|
||||
return myAISContext;
|
||||
}
|
||||
|
||||
int OCCViewer::CharToInt(char symbol)
|
||||
{
|
||||
TCollection_AsciiString msg = symbol;
|
||||
return msg.IntegerValue();
|
||||
}
|
69
samples/CSharp/OCC/OCCViewer.h
Executable file
@@ -0,0 +1,69 @@
|
||||
#pragma once
|
||||
#include "stdafx.h"
|
||||
|
||||
|
||||
class OCCViewer
|
||||
{
|
||||
public:
|
||||
__declspec(dllexport) OCCViewer(void);
|
||||
__declspec(dllexport) ~OCCViewer(void);
|
||||
private:
|
||||
Handle_V3d_Viewer myViewer;
|
||||
Handle_V3d_View myView;
|
||||
Handle_AIS_InteractiveContext myAISContext;
|
||||
Handle_Graphic3d_WNTGraphicDevice myGraphicDevice;
|
||||
public:
|
||||
__declspec(dllexport) bool InitViewer(void* wnd);
|
||||
__declspec(dllexport) bool ImportBRep(char* filename);
|
||||
__declspec(dllexport) void UpdateView(void);
|
||||
__declspec(dllexport) void RedrawView(void);
|
||||
__declspec(dllexport) void SetDegenerateModeOn(void);
|
||||
__declspec(dllexport) void SetDegenerateModeOff(void);
|
||||
__declspec(dllexport) void WindowFitAll(int Xmin, int Ymin, int Xmax, int Ymax);
|
||||
__declspec(dllexport) void Place(int x, int y, float zoomFactor);
|
||||
__declspec(dllexport) void Zoom(int x1, int y1, int x2, int y2);
|
||||
__declspec(dllexport) void Pan(int x, int y);
|
||||
__declspec(dllexport) void Rotation(int x, int y);
|
||||
__declspec(dllexport) void StartRotation(int x, int y);
|
||||
__declspec(dllexport) void Select(int x1, int y1, int x2, int y2);
|
||||
__declspec(dllexport) void Select(void);
|
||||
__declspec(dllexport) void MoveTo(int x, int y);
|
||||
__declspec(dllexport) void ShiftSelect(int x1, int y1, int x2, int y2);
|
||||
__declspec(dllexport) void ShiftSelect(void);
|
||||
__declspec(dllexport) void BackgroundColor(int& r, int& g, int& b);
|
||||
__declspec(dllexport) void UpdateCurrentViewer(void);
|
||||
__declspec(dllexport) void FrontView(void);
|
||||
__declspec(dllexport) void TopView(void);
|
||||
__declspec(dllexport) void LeftView(void);
|
||||
__declspec(dllexport) void BackView(void);
|
||||
__declspec(dllexport) void RightView(void);
|
||||
__declspec(dllexport) void BottomView(void);
|
||||
__declspec(dllexport) void AxoView(void);
|
||||
__declspec(dllexport) void ZoomAllView(void);
|
||||
__declspec(dllexport) float Scale(void);
|
||||
__declspec(dllexport) void PanGloView(void);
|
||||
__declspec(dllexport) void ResetView(void);
|
||||
__declspec(dllexport) void SetDisplayMode(int aMode);
|
||||
__declspec(dllexport) void SetColor(int r, int g, int b);
|
||||
__declspec(dllexport) void ObjectColor(int& r, int& g, int& b);
|
||||
__declspec(dllexport) void SetBackgroundColor(int r, int g, int b);
|
||||
__declspec(dllexport) void EraseObjects(void);
|
||||
__declspec(dllexport) float GetVersion(void);
|
||||
__declspec(dllexport) void SetMaterial(int theMaterial);
|
||||
__declspec(dllexport) void SetTransparency(int theTrans);
|
||||
__declspec(dllexport) bool ImportCsfdb(char* filename);
|
||||
__declspec(dllexport) bool ImportIges(char* filename);
|
||||
__declspec(dllexport) bool ImportStep(char* filename);
|
||||
__declspec(dllexport) bool ExportBRep(char* filename);
|
||||
__declspec(dllexport) bool ExportIges(char* filename);
|
||||
__declspec(dllexport) bool ExpotStep(char* filename);
|
||||
__declspec(dllexport) bool ExportStl(char* filename);
|
||||
__declspec(dllexport) bool ExportVrml(char* filename);
|
||||
__declspec(dllexport) bool Dump(char* filename);
|
||||
__declspec(dllexport) bool IsObjectSelected(void);
|
||||
__declspec(dllexport) int DisplayMode(void);
|
||||
__declspec(dllexport) void CreateNewView(void* wnd);
|
||||
__declspec(dllexport) bool SetAISContext(OCCViewer* Viewer);
|
||||
Handle_AIS_InteractiveContext GetAISContext(void);
|
||||
__declspec(dllexport) int CharToInt(char symbol);
|
||||
};
|
40
samples/CSharp/OCC/ReadMe.txt
Executable file
@@ -0,0 +1,40 @@
|
||||
========================================================================
|
||||
DYNAMIC LINK LIBRARY : OCC Project Overview
|
||||
========================================================================
|
||||
|
||||
AppWizard has created this OCC DLL for you.
|
||||
This file contains a summary of what you will find in each of the files that
|
||||
make up your OCC application.
|
||||
|
||||
|
||||
OCC.vcproj
|
||||
This is the main project file for VC++ projects generated using an Application Wizard.
|
||||
It contains information about the version of Visual C++ that generated the file, and
|
||||
information about the platforms, configurations, and project features selected with the
|
||||
Application Wizard.
|
||||
|
||||
OCC.cpp
|
||||
This is the main DLL source file.
|
||||
|
||||
When created, this DLL does not export any symbols. As a result, it
|
||||
will not produce a .lib file when it is built. If you wish this project
|
||||
to be a project dependency of some other project, you will either need to
|
||||
add code to export some symbols from the DLL so that an export library
|
||||
will be produced, or you can set the Ignore Input Library property to Yes
|
||||
on the General propert page of the Linker folder in the project's Property
|
||||
Pages dialog box.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
Other standard files:
|
||||
|
||||
StdAfx.h, StdAfx.cpp
|
||||
These files are used to build a precompiled header (PCH) file
|
||||
named OCC.pch and a precompiled types file named StdAfx.obj.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
Other notes:
|
||||
|
||||
AppWizard uses "TODO:" comments to indicate parts of the source code you
|
||||
should add to or customize.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
8
samples/CSharp/OCC/stdafx.cpp
Executable file
@@ -0,0 +1,8 @@
|
||||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// OCC.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
// TODO: reference any additional headers you need in STDAFX.H
|
||||
// and not in this file
|
72
samples/CSharp/OCC/stdafx.h
Executable file
@@ -0,0 +1,72 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
// Windows Header Files:
|
||||
#include <windows.h>
|
||||
//standard OCC types
|
||||
#pragma warning( disable : 4311 )
|
||||
#pragma warning( disable : 4312 )
|
||||
#pragma warning( disable : 4267 )
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Version.hxx>
|
||||
#include <Standard_Persistent.hxx>
|
||||
//collections
|
||||
#include <TCollection_ExtendedString.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <PTColStd_PersistentTransientMap.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
//for OCC graphic
|
||||
#include <WNT_Window.hxx>
|
||||
#include <Graphic3d_WNTGraphicDevice.hxx>
|
||||
#include <Quantity_NameOfColor.hxx>
|
||||
#include <Graphic3d_NameOfMaterial.hxx>
|
||||
//for object display
|
||||
#include <V3d_Viewer.hxx>
|
||||
#include <V3d_View.hxx>
|
||||
#include <AIS_InteractiveContext.hxx>
|
||||
#include <AIS_Shape.hxx>
|
||||
#include <AIS_Trihedron.hxx>
|
||||
#include <AIS_DisplayMode.hxx>
|
||||
#include <V3d_TypeOfOrientation.hxx>
|
||||
#include <V3d_TypeOfVisualization.hxx>
|
||||
#include <V3d_TypeOfShadingModel.hxx>
|
||||
#include <V3d_TypeOfUpdate.hxx>
|
||||
//topology
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS_Compound.hxx>
|
||||
//brep tools
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
#include <MgtBRep.hxx>
|
||||
//geometry
|
||||
#include <gp_Ax2.hxx>
|
||||
#include <Geom_Axis2Placement.hxx>
|
||||
//csfdb I/E
|
||||
#include <FSD_File.hxx>
|
||||
#include <ShapeSchema.hxx>
|
||||
#include <Storage_Data.hxx>
|
||||
#include <Storage_Error.hxx>
|
||||
#include <Storage_HSeqOfRoot.hxx>
|
||||
#include <Storage_Root.hxx>
|
||||
#include <PTopoDS_HShape.hxx>
|
||||
#include <PTColStd_TransientPersistentMap.hxx>
|
||||
// iges I/E
|
||||
#include <IGESControl_Reader.hxx>
|
||||
#include <IGESControl_Controller.hxx>
|
||||
#include <IGESControl_Writer.hxx>
|
||||
#include <IFSelect_ReturnStatus.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
//step I/E
|
||||
#include <STEPControl_Reader.hxx>
|
||||
#include <STEPControl_Writer.hxx>
|
||||
//for stl export
|
||||
#include <StlAPI_Writer.hxx>
|
||||
//for vrml export
|
||||
#include <VrmlAPI_Writer.hxx>
|
19
samples/CSharp/Run_MSVC.bat
Executable file
@@ -0,0 +1,19 @@
|
||||
@echo off
|
||||
rem Launch MS VC with environment prepared for building OCCT C# sample
|
||||
|
||||
rem Set build environment
|
||||
call %~dp0..\..\ros\env_build.bat vc8 win32
|
||||
|
||||
rem Define path to project file
|
||||
set PRJFILE=%~dp0IE\IE.sln
|
||||
|
||||
rem Launch Visual Studio - either professional (devenv) or Express, as available
|
||||
if exist %DevEnvDir%\devenv.exe (
|
||||
start %DevEnvDir%\devenv.exe %PRJFILE% /useenv
|
||||
) else if exist %DevEnvDir%\VCExpress.exe (
|
||||
start %DevEnvDir%\VCExpress.exe %PRJFILE% /useenv
|
||||
) else (
|
||||
echo Error: Could not find MS Visual Studio ^(%VCVER%^)
|
||||
echo Check relevant environment variable ^(e.g. VS80COMNTOOLS for vc8^)
|
||||
)
|
||||
|
3
samples/CSharp/env.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
@ECHO OFF
|
||||
|
||||
call "%~dp0..\..\ros\env.bat"
|
2
samples/CSharp/shell/shell.cpp
Executable file
@@ -0,0 +1,2 @@
|
||||
#include ".\shell.h"
|
||||
|
391
samples/CSharp/shell/shell.h
Executable file
@@ -0,0 +1,391 @@
|
||||
#pragma once
|
||||
#using <mscorlib.dll>
|
||||
#include "OCCViewer.h"
|
||||
#include "StdAfx.h"
|
||||
|
||||
public ref class shell
|
||||
{
|
||||
|
||||
private:
|
||||
OCCViewer* myOCCViewer;
|
||||
public:
|
||||
|
||||
bool InitViewer(System::IntPtr wnd)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
return myOCCViewer->InitViewer(wnd.ToPointer());
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ImportBrep(System::String^ filename)
|
||||
{
|
||||
if (myOCCViewer == NULL)
|
||||
return false;
|
||||
int length = filename->Length;
|
||||
char * fname = new char[length+1];
|
||||
for(int i = 0; i<length; i++)
|
||||
fname[i] = (char)filename->ToCharArray()[i];
|
||||
|
||||
fname[length] = '\0';
|
||||
bool res = myOCCViewer->ImportBRep(fname);
|
||||
delete [] fname;
|
||||
return res;
|
||||
}
|
||||
|
||||
void RedrawView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->RedrawView();
|
||||
}
|
||||
|
||||
void UpdateView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->UpdateView();
|
||||
}
|
||||
|
||||
void SetDegenerateModeOn(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->SetDegenerateModeOn();
|
||||
}
|
||||
|
||||
void SetDegenerateModeOff(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->SetDegenerateModeOff();
|
||||
}
|
||||
|
||||
void WindowFitAll(int Xmin, int Ymin, int Xmax, int Ymax)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->WindowFitAll(Xmin, Ymin, Xmax, Ymax);
|
||||
}
|
||||
|
||||
void Place(int x, int y, float zoomFactor)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->Place(x, y, zoomFactor);
|
||||
}
|
||||
|
||||
void Zoom(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->Zoom(x1, y1, x2, y2);
|
||||
}
|
||||
|
||||
void Pan(int x, int y)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->Pan(x, y);
|
||||
}
|
||||
|
||||
void Rotation(int x, int y)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->Rotation(x, y);
|
||||
}
|
||||
|
||||
void StartRotation(int x, int y)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->StartRotation(x, y);
|
||||
}
|
||||
|
||||
void Select(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->Select(x1, y1, x2, y2);
|
||||
}
|
||||
|
||||
void Select(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->Select();
|
||||
}
|
||||
|
||||
void MoveTo(int x, int y)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->MoveTo(x, y);
|
||||
}
|
||||
|
||||
void ShiftSelect(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->ShiftSelect(x1, y1, x2, y2);
|
||||
}
|
||||
|
||||
void ShiftSelect(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->ShiftSelect();
|
||||
}
|
||||
|
||||
int GetBGColR(void)
|
||||
{
|
||||
int r, b, g;
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->BackgroundColor(r,g,b);
|
||||
return r;
|
||||
}
|
||||
|
||||
int GetBGColG(void)
|
||||
{
|
||||
int r, b, g;
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->BackgroundColor(r,g,b);
|
||||
return g;
|
||||
}
|
||||
|
||||
int GetBGColB(void)
|
||||
{
|
||||
int r, b, g;
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->BackgroundColor(r,g,b);
|
||||
return b;
|
||||
}
|
||||
|
||||
void UpdateCurrentViewer(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->UpdateCurrentViewer();
|
||||
}
|
||||
|
||||
void FrontView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->FrontView();
|
||||
}
|
||||
|
||||
void TopView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->TopView();
|
||||
}
|
||||
|
||||
void LeftView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->LeftView();
|
||||
}
|
||||
|
||||
void BackView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->BackView();
|
||||
}
|
||||
|
||||
void RightView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->RightView();
|
||||
}
|
||||
|
||||
void BottomView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->BottomView();
|
||||
}
|
||||
|
||||
void AxoView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->AxoView();
|
||||
}
|
||||
|
||||
float Scale(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
return myOCCViewer->Scale();
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
||||
void ZoomAllView(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->ZoomAllView();
|
||||
}
|
||||
|
||||
void Reset(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->ResetView();
|
||||
}
|
||||
|
||||
void SetDisplayMode(int aMode)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->SetDisplayMode(aMode);
|
||||
}
|
||||
|
||||
void SetColor(int r, int g, int b)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->SetColor(r, g, b);
|
||||
}
|
||||
|
||||
int GetObjColR(void)
|
||||
{
|
||||
int r, g, b;
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->ObjectColor(r, g, b);
|
||||
return r;
|
||||
}
|
||||
|
||||
int GetObjColG(void)
|
||||
{
|
||||
int r, g, b;
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->ObjectColor(r, g, b);
|
||||
return g;
|
||||
}
|
||||
|
||||
int GetObjColB(void)
|
||||
{
|
||||
int r, g, b;
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->ObjectColor(r, g, b);
|
||||
return b;
|
||||
}
|
||||
|
||||
void SetBackgroundColor(int r, int g, int b)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->SetBackgroundColor(r, g, b);
|
||||
}
|
||||
|
||||
void EraseObjects(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->EraseObjects();
|
||||
}
|
||||
|
||||
float GetOCCVersion(void)
|
||||
{
|
||||
if (myOCCViewer == NULL)
|
||||
return 0.0;
|
||||
else
|
||||
return myOCCViewer->GetVersion();
|
||||
}
|
||||
|
||||
void SetMaterial(int theMaterial)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->SetMaterial(theMaterial);
|
||||
}
|
||||
|
||||
void SetTransparency(int TheTrans)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->SetTransparency(TheTrans);
|
||||
}
|
||||
|
||||
bool TranslateModel(System::String^ filename, int format, bool IsImport)
|
||||
{
|
||||
if (myOCCViewer == NULL)
|
||||
return false;
|
||||
int length = filename->Length;
|
||||
char * fname = new char[length+1];
|
||||
for(int i = 0; i<length; i++)
|
||||
fname[i] = (char)filename->ToCharArray()[i];
|
||||
|
||||
fname[length] = '\0';
|
||||
bool res;
|
||||
if (IsImport)
|
||||
{
|
||||
switch(format)
|
||||
{
|
||||
case 0:
|
||||
res=myOCCViewer->ImportBRep(fname);
|
||||
break;
|
||||
case 1:
|
||||
res=myOCCViewer->ImportCsfdb(fname);
|
||||
break;
|
||||
case 2:
|
||||
res=myOCCViewer->ImportStep(fname);
|
||||
break;
|
||||
case 3:
|
||||
res=myOCCViewer->ImportIges(fname);
|
||||
break;
|
||||
default:
|
||||
res=false;
|
||||
}
|
||||
} else
|
||||
{
|
||||
switch(format)
|
||||
{
|
||||
case 0:
|
||||
res=myOCCViewer->ExportBRep(fname);
|
||||
break;
|
||||
case 2:
|
||||
res=myOCCViewer->ExpotStep(fname);
|
||||
break;
|
||||
case 3:
|
||||
res=myOCCViewer->ExportIges(fname);
|
||||
break;
|
||||
case 4:
|
||||
res=myOCCViewer->ExportVrml(fname);
|
||||
break;
|
||||
case 5:
|
||||
res=myOCCViewer->ExportStl(fname);
|
||||
break;
|
||||
case 6:
|
||||
res=myOCCViewer->Dump(fname);
|
||||
default:
|
||||
res=false;
|
||||
}
|
||||
}
|
||||
delete [] fname;
|
||||
return res;
|
||||
}
|
||||
|
||||
bool IsObjectSelected(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
return myOCCViewer->IsObjectSelected();
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
int DisplayMode(void)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
return myOCCViewer->DisplayMode();
|
||||
else return -1;
|
||||
}
|
||||
|
||||
void CreateNewView(System::IntPtr wnd)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
myOCCViewer->CreateNewView(wnd.ToPointer());
|
||||
}
|
||||
|
||||
bool SetAISContext(shell^ v)
|
||||
{
|
||||
if (myOCCViewer != NULL)
|
||||
return this->myOCCViewer->SetAISContext(v->GetOCCViewer());
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
OCCViewer* GetOCCViewer(void)
|
||||
{
|
||||
return myOCCViewer;
|
||||
}
|
||||
|
||||
void InitOCCViewer(void)
|
||||
{
|
||||
myOCCViewer = new OCCViewer();
|
||||
}
|
||||
|
||||
int CharToInt(System::String^ symbol)
|
||||
{
|
||||
if (myOCCViewer == NULL)
|
||||
return -1;
|
||||
char s = (char)symbol->ToCharArray()[0];
|
||||
return myOCCViewer->CharToInt(s);
|
||||
}
|
||||
};
|
215
samples/CSharp/shell/shell.vcproj
Executable file
@@ -0,0 +1,215 @@
|
||||
<?xml version="1.0" encoding="windows-1251"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="shell"
|
||||
ProjectGUID="{969912D9-78E7-4AB8-B4FF-6B52B4F03991}"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="Debug"
|
||||
IntermediateDirectory="Debug"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="..\OCC\;$(CASROOT)\inc"
|
||||
PreprocessorDefinitions="WNT"
|
||||
MinimalRebuild="false"
|
||||
BasicRuntimeChecks="0"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="OCC.lib TKV3d.lib TKV2d.lib TKHLR.lib TKService.lib PTKernel.lib TKShapeSchema.lib TKBool.lib TKMath.lib TKBO.lib TKernel.lib TKPrim.lib TKTopAlgo.lib TKBRep.lib TKGeomAlgo.lib TKPShape.lib TKXSBase.lib TKIGES.lib TKSTEP.lib TKSTEP209.lib TKSTEPAttr.lib TKSTEPBase.lib TKShHealing.lib TKSTL.lib TKVRML.lib"
|
||||
OutputFile="$(OutDir)/shell.dll"
|
||||
LinkIncremental="2"
|
||||
AdditionalLibraryDirectories="..\OCC\$(OutDir);$(CASROOT)\win32\lib"
|
||||
GenerateDebugInformation="true"
|
||||
AssemblyDebug="1"
|
||||
ProgramDatabaseFile="$(OutDir)/shell.pdb"
|
||||
SubSystem="2"
|
||||
ImportLibrary="$(OutDir)/shell.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="Release"
|
||||
IntermediateDirectory="Release"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
|
||||
CharacterSet="2"
|
||||
ManagedExtensions="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\OCC\;$(CASROOT)\inc"
|
||||
PreprocessorDefinitions="WNT"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="OCC.lib TKV3d.lib TKV2d.lib TKHLR.lib TKService.lib PTKernel.lib TKShapeSchema.lib TKBool.lib TKMath.lib TKBO.lib TKernel.lib TKPrim.lib TKTopAlgo.lib TKBRep.lib TKGeomAlgo.lib TKPShape.lib TKXSBase.lib TKIGES.lib TKSTEP.lib TKSTEP209.lib TKSTEPAttr.lib TKSTEPBase.lib TKShHealing.lib TKSTL.lib TKVRML.lib"
|
||||
OutputFile="$(OutDir)/shell.dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories="..\OCC\$(OutDir);$(CASROOT)\win32\vc8\lib"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
ImportLibrary="$(OutDir)/shell.lib"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\shell.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\shell.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|