home *** CD-ROM | disk | FTP | other *** search
- //******************************************************************'
- //* *'
- //* TurboCAD for Windows *'
- //* Copyright (c) 1993 - 2004 *'
- //* International Microcomputer Software, Inc. *'
- //* (IMSI) *'
- //* All rights reserved. *'
- //* *'
- //******************************************************************'
- #pragma once
-
- using namespace System;
- using namespace System::ComponentModel;
- using namespace System::Collections;
- using namespace System::Diagnostics;
- using namespace Interop::IMSIGX ;
-
- namespace TcGeometryVC_Net
- {
- /// <summary>
- /// Summary for TcEngine
- /// </summary>
- __gc public class TcEngine : public System::ComponentModel::Component
- {
- public:
- TcEngine(void)
- : m_gxApp (NULL)
- , m_gxView(NULL)
- ,m_gxDrawing(NULL)
- {
- InitializeComponent();
- }
- TcEngine(System::ComponentModel::IContainer *container) : components(0)
- {
- /// <summary>
- /// Required for Windows.Forms Class Composition Designer support
- /// </summary>
-
- container->Add(this);
- InitializeComponent();
- }
-
- protected:
- void Dispose(Boolean disposing)
- {
- if (disposing && components)
- {
- components->Dispose();
- }
- __super::Dispose(disposing);
- }
-
- private:
- /// <summary>
- /// Required designer variable.
- /// </summary>
- System::ComponentModel::Container *components;
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- void InitializeComponent(void)
- {
- components = new System::ComponentModel::Container();
- }
- public:
-
- IApplication* m_gxApp;
- IDrawing* m_gxDrawing;
- View* m_gxView;
-
- // creates IMSIGX.XApplication
- void CreategxApp(void);
- // {
- // }
-
- void CreategxDrawing(void);
- // {
- // }
-
- void CreategxView(int hWnd);
- // {
- // }
- void Zoom(double dZoomFactor);
- IGraphic* SelectGraphic(double xScreen, double yScreen);
- IGraphic* AddCircleCenterAndPoint(double x1Screen, double y1Screen, double x2Screen, double y2Screen);
- IGraphic* AddLineSingle(double x1Screen, double y1Screen, double x2Screen, double y2Screen)
- ;
- };
- }