Click here to Skip to main content
15,886,362 members
Articles / Multimedia / OpenGL

Universal Framework for Science and Engineering - Part 7: Virtual Reality at Once

Rate me:
Please Sign up or sign in to vote.
4.96/5 (105 votes)
19 Nov 2010CPOL25 min read 187.1K   14.4K   212  
An article on framework applications to virtual reality
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

using DiagramUI;
using DiagramUI.Factory;


namespace DataPerformerUI.Factory
{
    /// <summary>
    /// Static factory for data performer
    /// </summary>
    public static class StaticFactory
    {

     /// <summary>
     /// Buttons of general objects
     /// </summary>
        public static readonly ButtonWrapper[] GeneralObjectsButtons = new ButtonWrapper[]
        {
            DefaultFactory.DefaultObjectButtons[0],  DefaultFactory.DefaultObjectButtons[1],
            new ButtonWrapper(typeof(DataPerformer.ObjectTransformer), "",
                      "Object transformer", ResourceImage.Transform.ToBitmap(), null, true, false),
            new ButtonWrapper(typeof(DataPerformer.VectorFormulaConsumer), 
                       "Mv", "Vector perfomer", ResourceImage.FormulaEditor, null, true, false),
            new ButtonWrapper(typeof(DataPerformer.Recursive), "",
                "Recursive", ResourceImage.Recursive.ToBitmap(),  null, true, false),
          //   new ButtonWrapper(typeof(DataPerformer.Recursive), "",
           //   "Recursive", ResourceImage.LIGHTON.ToBitmap(),  null, true, false),
           new ButtonWrapper(typeof(DataPerformer.DifferentialEquationSolver), "", 
                "Differential equation system", ResourceImage.ODE.ToBitmap(),  null, true, false),
          //    new ButtonWrapper(typeof(DataPerformer.DifferentialEquationSolver), "", 
           //     "Differential equation system", ResourceImage._1324.ToBitmap(),  null, true, false),
          new ButtonWrapper(typeof(DataPerformer.VectorAssembly), "", 
                "Vector", ResourceImage.Vector, null, true, false),
          //  new ButtonWrapper(typeof(DataPerformer.VectorAssembly), "", 
          //      "Vector", ResourceImage._2337, null, true, false),
            new ButtonWrapper(typeof(DataPerformer.MatrixAssembly), "", 
                "Matrix", ResourceImage.Matrix, null, true, false),
          //  new ButtonWrapper(typeof(DataPerformer.MatrixAssembly), "", 
           //     "Matrix", ResourceImage.SUN, null, true, false),
            new ButtonWrapper(typeof(DataPerformer.ArrayDisassembly), "", 
                "Components of array", ResourceImage.ArrayDisassembly.ToBitmap(),  null, true, false),
            new ButtonWrapper(typeof(DataPerformer.ArrayTransformer), "", 
                "Array transformer", ResourceImage.VectorToArray,  null, true, false),
            new ButtonWrapper(typeof(DataPerformer.FunctionAccumulator), "", 
                "Accumulator function", ResourceImage.Accumulator, null, true, false),
            new ButtonWrapper(typeof(DataPerformer.Advanced.Accumulators.AccumulatorSeriesArgument), "", 
                "Accumulator with series argument", ResourceImage.AccumSeries.ToBitmap(), null, true, false),
            new ButtonWrapper(typeof(DataPerformer.Advanced.DynamicFunction), "", 
                "Delay accumulator function", ResourceImage.AccumulatorDelay, null, true, false),
            new ButtonWrapper(typeof(DataPerformer.DataConsumer), "", 
                "Graph representation", ResourceImage.Graph.ToBitmap(), null, true, false),
            new ButtonWrapper(typeof(DataPerformer.Series), "", 
                "Series", ResourceImage.Series.ToBitmap(), null, true, false),
            new ButtonWrapper(typeof(DataPerformer.Table2D), "", 
                "Series", ResourceImage.Table2D.ToBitmap(), null, true, false),
            new ButtonWrapper(typeof(DataPerformer.RandomGenerator), "", 
                "Random generator", ResourceImage.Random.ToBitmap(), null, true, false),
            new ButtonWrapper(typeof(DataPerformer.DoubleSeries), "", 
                "Series from two sources", ResourceImage.DoubleSeries.ToBitmap(), null, true, false),
            new ButtonWrapper(typeof(DataPerformer.SeriesVectorData), "", 
                "Vector data", ResourceImage.SeriesVector.ToBitmap(), null, true, false),
            new ButtonWrapper(typeof(Chart.Objects.DrawSeries), "", 
                "Point series", ResourceImage.PointSeries, null, true, false),
            new ButtonWrapper(typeof(DataPerformer.FormulaFilterIterator), "", 
                "Formula filter", ResourceImage.FormulaFilter.ToBitmap(), null, true, false),
           new ButtonWrapper(typeof(DataPerformer.Helpers.KalmanFilter), "", 
                "Kalman filter", ResourceImage.KalmanFilter.ToBitmap(), null, true, false),

 
             new ButtonWrapper(typeof(DataPerformer.Helpers.DataPerformerCollectionStateTransformer), "", 
                "Collection object transformer", ResourceImage.Collection.ToBitmap(), null, true, false)

        };

        /// <summary>
        /// Dictionary of images
        /// </summary>
        static public readonly Dictionary<Type, Image> ButtonImages =
            ButtonWrapper.CreateImageDictionary(GeneralObjectsButtons);

     }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Russian Federation Russian Federation
Ph. D. Petr Ivankov worked as scientific researcher at Russian Mission Control Centre since 1978 up to 2000. Now he is engaged by Aviation training simulators http://dinamika-avia.com/ . His additional interests are:

1) Noncommutative geometry

http://front.math.ucdavis.edu/author/P.Ivankov

2) Literary work (Russian only)

http://zhurnal.lib.ru/editors/3/3d_m/

3) Scientific articles
http://arxiv.org/find/all/1/au:+Ivankov_Petr/0/1/0/all/0/1

Comments and Discussions