data class for graphics 3D
Exemplo n.º 1
0
        /// <summary>
        /// update current Sketch3D using current UCS and settings
        /// </summary>
        private void UpdateSketch3D()
        {
            if (m_displayKind == DisplayKinds.GeometryModel)
            {
                GeometryData geomFactory;
                if (m_isSelectView)
                {
                    geomFactory   = new GeometryData(m_selected, m_currentView);
                    m_detailLevel = ViewDetailLevel.Undefined;
                }
                else
                {
                    geomFactory = new GeometryData(m_selected, m_detailLevel, m_currentView);
                }

                Graphics3DData geom3DData = geomFactory.Data3D;
                Graphics3DData old3DData  = m_currentSketch3D.Data3D;
                geom3DData.CurrentUCS    = old3DData.CurrentUCS;
                m_currentSketch3D.Data3D = geom3DData;
                m_currentSketch3D.Data2D = Graphics2DData.Empty;
            }
            else if (m_displayKind == DisplayKinds.AnalyticalModel)
            {
                ModelData      modelFactory = new ModelData(m_selected);
                Graphics3DData model3DData  = modelFactory.Data3D;
                Graphics2DData model2DData  = modelFactory.Data2D;
                Graphics3DData old3DData    = m_currentSketch3D.Data3D;
                model3DData.CurrentUCS   = old3DData.CurrentUCS;
                m_currentSketch3D.Data3D = model3DData;
                m_currentSketch3D.Data2D = model2DData;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// The default constructor
 /// </summary>
 /// <param name="data3D">a list contain all the 3d data</param>
 /// <param name="data2D">a list contain all the 3d data</param>
 public Sketch3D(Graphics3DData data3D, Graphics2DData data2D)
 {
     m_data3D = data3D;
     m_data2D = data2D;
     Calculate3DTransform();
     Calculate2DTransform();
     UpdateDataAndEvent();
 }
Exemplo n.º 3
0
Arquivo: Sketch.cs Projeto: AMEE/revit
 /// <summary>
 /// The default constructor
 /// </summary>
 /// <param name="data3D">a list contain all the 3d data</param>
 /// <param name="data2D">a list contain all the 3d data</param>
 public Sketch3D(Graphics3DData data3D, Graphics2DData data2D)
 {
     m_data3D = data3D;
     m_data2D = data2D;
     Calculate3DTransform();
     Calculate2DTransform();
     UpdateDataAndEvent();
 }