예제 #1
0
파일: SwComponent.cs 프로젝트: windygu/xcad
 internal SwComponent(IComponent2 comp, ISwAssembly parentAssembly) : base(comp)
 {
     m_ParentAssembly = parentAssembly;
     Component        = comp;
     Children         = new SwChildComponentsCollection(parentAssembly, comp);
     Features         = new ComponentFeatureRepository(parentAssembly, comp);
     Bodies           = new SwComponentBodyCollection(comp, parentAssembly);
 }
예제 #2
0
        internal SwComponent(IComponent2 comp, SwAssembly rootAssembly) : base(comp)
        {
            m_RootAssembly = rootAssembly;
            Component      = comp;
            Children       = new SwChildComponentsCollection(rootAssembly, comp);
            m_Features     = new Lazy <ISwFeatureManager>(() => new ComponentFeatureRepository(rootAssembly, comp));
            Bodies         = new SwComponentBodyCollection(comp, rootAssembly);

            m_FilePathResolver = m_RootAssembly.App.Services.GetService <IFilePathResolver>();
        }
예제 #3
0
        internal SwComponent(IComponent2 comp, SwAssembly parentAssembly) : base(comp)
        {
            m_ParentAssembly = parentAssembly;
            Component        = comp;
            Children         = new SwChildComponentsCollection(parentAssembly, comp);
            Features         = new ComponentFeatureRepository(parentAssembly, comp);
            Bodies           = new SwComponentBodyCollection(comp, parentAssembly);

            m_FilePathResolver = m_ParentAssembly.App.Services.GetService <IFilePathResolver>();
        }
예제 #4
0
        internal SwComponent(IComponent2 comp, SwAssembly rootAssembly, ISwApplication app) : base(comp, rootAssembly, app)
        {
            m_RootAssembly   = rootAssembly;
            Component        = comp;
            Children         = new SwChildComponentsCollection(rootAssembly, this);
            m_FeaturesLazy   = new Lazy <ISwFeatureManager>(() => new SwComponentFeatureManager(this, rootAssembly, app));
            m_DimensionsLazy = new Lazy <ISwDimensionsCollection>(() => new SwFeatureManagerDimensionsCollection(Features));

            m_MathUtils = app.Sw.IGetMathUtility();

            Bodies = new SwComponentBodyCollection(comp, rootAssembly);

            m_FilePathResolver = ((SwApplication)OwnerApplication).Services.GetService <IFilePathResolver>();
        }