public MaterialsSteps(MaterialsContext materialsContext,
                       LightsContext lightsContext,
                       ColorsContext colorContext,
                       ComputationsContext computationsContext,
                       SphereContext sphereContext)
 {
     _computationsContext = computationsContext;
     _sphereContext       = sphereContext;
     _colorsContext       = colorContext;
     _lightsContext       = lightsContext;
     _materialsContext    = materialsContext;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a new <see cref="App"/> instance.
        /// </summary>
        public App()
        {
            InitializeComponent();

            // Create a WebContext and add it to the ApplicationLifetimeObjects collection.
            // This will then be available as WebContext.Current.
            WebContext webContext = new WebContext();

            webContext.Authentication = new FormsAuthentication();
            //webContext.Authentication = new WindowsAuthentication();
            this.ApplicationLifetimeObjects.Add(webContext);

            MaterialsService = new MaterialsContext();
        }
Ejemplo n.º 3
0
 public ShapesSteps(ShapesContext shapesContext,
                    MaterialsContext materialsContext,
                    RayContext rayContext,
                    IntersectionsContext intersectionsContext,
                    VectorsContext vectorsContext,
                    TransformationsContext transformationsContext)
 {
     _transformationsContext = transformationsContext;
     _vectorsContext         = vectorsContext;
     _intersectionsContext   = intersectionsContext;
     _rayContext             = rayContext;
     _materialsContext       = materialsContext;
     _shapesContext          = shapesContext;
 }
 public MaterialRepository(MaterialsContext context)
 {
     _context = context;
 }