Beispiel #1
0
        internal SwStandardView(IModelView view, ISwDocument doc, ISwApplication app, StandardViewType_e type)
            : base(view, doc, app, GetStandardViewName(doc.Model, type))
        {
            Type = type;

            switch (Type)
            {
            case StandardViewType_e.Back:
                SwViewType = swStandardViews_e.swBackView;
                break;

            case StandardViewType_e.Bottom:
                SwViewType = swStandardViews_e.swBottomView;
                break;

            case StandardViewType_e.Dimetric:
                SwViewType = swStandardViews_e.swDimetricView;
                break;

            case StandardViewType_e.Front:
                SwViewType = swStandardViews_e.swFrontView;
                break;

            case StandardViewType_e.Isometric:
                SwViewType = swStandardViews_e.swIsometricView;
                break;

            case StandardViewType_e.Left:
                SwViewType = swStandardViews_e.swLeftView;
                break;

            case StandardViewType_e.Right:
                SwViewType = swStandardViews_e.swRightView;
                break;

            case StandardViewType_e.Top:
                SwViewType = swStandardViews_e.swTopView;
                break;

            case StandardViewType_e.Trimetric:
                SwViewType = swStandardViews_e.swTrimetricView;
                break;
            }
        }
Beispiel #2
0
        internal SwStandardView(IModelDoc2 model, IModelView view, IMathUtility mathUtils, StandardViewType_e type)
            : base(model, view, mathUtils, GetStandardViewName(model, type))
        {
            Type = type;

            switch (Type)
            {
            case StandardViewType_e.Back:
                SwViewType = swStandardViews_e.swBackView;
                break;

            case StandardViewType_e.Bottom:
                SwViewType = swStandardViews_e.swBottomView;
                break;

            case StandardViewType_e.Dimetric:
                SwViewType = swStandardViews_e.swDimetricView;
                break;

            case StandardViewType_e.Front:
                SwViewType = swStandardViews_e.swFrontView;
                break;

            case StandardViewType_e.Isometric:
                SwViewType = swStandardViews_e.swIsometricView;
                break;

            case StandardViewType_e.Left:
                SwViewType = swStandardViews_e.swLeftView;
                break;

            case StandardViewType_e.Right:
                SwViewType = swStandardViews_e.swRightView;
                break;

            case StandardViewType_e.Top:
                SwViewType = swStandardViews_e.swTopView;
                break;

            case StandardViewType_e.Trimetric:
                SwViewType = swStandardViews_e.swTrimetricView;
                break;
            }
        }