コード例 #1
0
        public void Initialize()
        {
            canvas             = new Canvas();
            mockCurve          = new Mock <ICurve>();
            mockElementFactory = new Mock <IFactory <IFrameworkElementWrapper, ICurve> >();
            states             = new BuilderWorldObjectState[1];

            wpfRenderableFactory = new WpfCurveRenderableFactory(canvas, states, 2, 8);
        }
コード例 #2
0
        private WpfCurveRenderableFactory CreatePipeFactory()
        {
            var pipeStates = new BuilderWorldObjectState[1];

            pipeStates[(int)ActiveState.Normal] =
                new BuilderWorldObjectState(new ColorVector(0.8, 0.9, 1.0), new ColorVector(0.8, 0.9, 1.0));
            var pipeObjectFactory = new WpfCurveRenderableFactory(mainCanvas, pipeStates, 3, 8);

            return(pipeObjectFactory);
        }