コード例 #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
ファイル: SwComponent.cs プロジェクト: persadewh/xcad
        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
ファイル: SwComponent.cs プロジェクト: EddyAlleman/xcad
        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>();
        }