예제 #1
0
 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
        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
        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
 public ExGripDrag(FullSubentityPath entPath, ExGripManager pOwner)
 {
     subentPath = entPath;
     m_pOwner   = pOwner;
 }
예제 #8
0
 public void uninit()
 {
     cloneEnt = null;
     m_pOwner = null;
 }
예제 #9
0
 public ExGripDrag()
 {
     m_pOwner = null;
 }