コード例 #1
0
ファイル: ExGripDrag.cs プロジェクト: mzh3511/OdExamplesMgd
 public ExGripDrag(ObjectId id, ExGripManager pOwner)
 {
     ObjectId[] arrId = new ObjectId[1];
     arrId[0]   = id;
     subentPath = new FullSubentityPath(arrId, SubentityId.Null);
     m_pOwner   = pOwner;
 }
コード例 #2
0
 public ExGripData(FullSubentityPath entPath, GripData pData, Point3d pt, ExGripManager pOwner)
 {
     m_status     = GripData.DrawType.WarmGrip;
     m_bInvisible = false;
     m_bShared    = false;
     m_point      = pt;
     m_pData      = pData;
     m_entPath    = entPath;
     m_pOwner     = pOwner;
 }
コード例 #3
0
 public ExGripData()
 {
     m_status     = GripData.DrawType.WarmGrip;
     m_bInvisible = false;
     m_bShared    = false;
     m_point      = Point3d.Origin;
     m_entPath    = new FullSubentityPath();
     m_pOwner     = null;
     m_pData      = null;
 }
コード例 #4
0
 public ExGripData(ObjectId id, Point3d pt, ExGripManager pOwner)
 {
     m_status     = GripData.DrawType.WarmGrip;
     m_bInvisible = false;
     m_bShared    = false;
     m_point      = pt;
     ObjectId[] arrId = new ObjectId[1];
     arrId[0]  = id;
     m_entPath = new FullSubentityPath(arrId, SubentityId.Null);
     m_pOwner  = pOwner;
     m_pData   = null;
 }
コード例 #5
0
ファイル: Form1.cs プロジェクト: mzh3511/OdExamplesMgd
        public Form1()
        {
            dd = new Teigha.Runtime.Services();
            SystemObjects.DynamicLinker.LoadApp("GripPoints", false, false);
            SystemObjects.DynamicLinker.LoadApp("PlotSettingsValidator", false, false);
            InitializeComponent();
            this.MouseWheel += new MouseEventHandler(Form1_MouseWheel);

            HostApplicationServices.Current = new HostAppServ(dd);
            Environment.SetEnvironmentVariable("DDPLOTSTYLEPATHS", ((HostAppServ)HostApplicationServices.Current).FindConfigPath(String.Format("PrinterStyleSheetDir")));

            gripManager = new ExGripManager();
            mouseMode   = Mode.Quiescent;
            //DisableAero();
        }
コード例 #6
0
ファイル: Form1.cs プロジェクト: mzh3511/OdExamplesMgd
        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (selRect != null)
            {
                helperDevice.ActiveView.Erase(selRect);
            }
            selRect = null;

            gripManager.uninit();
            gripManager = null;
            if (graphics != null)
            {
                graphics.Dispose();
            }
            if (helperDevice != null)
            {
                helperDevice.Dispose();
            }
            if (database != null)
            {
                database.Dispose();
            }
            dd.Dispose();
        }
コード例 #7
0
ファイル: ExGripDrag.cs プロジェクト: mzh3511/OdExamplesMgd
 public ExGripDrag(FullSubentityPath entPath, ExGripManager pOwner)
 {
     subentPath = entPath;
     m_pOwner   = pOwner;
 }
コード例 #8
0
ファイル: ExGripDrag.cs プロジェクト: mzh3511/OdExamplesMgd
 public void uninit()
 {
     cloneEnt = null;
     m_pOwner = null;
 }
コード例 #9
0
ファイル: ExGripDrag.cs プロジェクト: mzh3511/OdExamplesMgd
 public ExGripDrag()
 {
     m_pOwner = null;
 }