Beispiel #1
0
 public MarchingCubes( DatasetManager datasetManager )
 {
     Random rand = new Random();
     aa = rand.NextDouble();
     bb = rand.NextDouble();
     cc = rand.NextDouble();
 }
Beispiel #2
0
 public PluginManager( WindowManager wm, RenderWindowManager rwm, DatasetManager dsm, AnimationManager anim_man )
 {
     this.wm  = wm;
     this.rwm = rwm;
     this.dsm = dsm;
     this.anim_man = anim_man;
 }
Beispiel #3
0
        public MainWindow()
        {
            InitializeComponent();

            Logger logger = LogManager.GetCurrentClassLogger();
            logger.Trace( "Application Starting..." );

            lm = new LoggingManager();

            anim_manager = new AnimationManager();

            wm  = new WindowManager( RibbonBar, StatusBar, DockWindow, DockingWindowsManager );

            rwm = new RenderWindowManager();

            dsm = new DatasetManager();

            pm  = new PluginManager( this.wm, this.rwm, this.dsm, this.anim_manager );

            pm.loadPluginList( Directory.GetCurrentDirectory() );
        }
Beispiel #4
0
        public RayCaster(DatasetManager datasetManager)
        {
            ShaderPrograms = null;
            mRenderingParameters = new Dictionary<RenderingParameter, object>
                                    {
                                        { RenderingParameter.AmbientLightColor,		 new Vector3( 0.69f, 0.78f, 0.80f) },
                                        { RenderingParameter.AmbientLightCoeff,		 0.4f},

                                        { RenderingParameter.DiffuseLightColor,		 new Vector3( 0.25f, 0.28f, 0.99f) },
                                        { RenderingParameter.DiffuseLightCoeff,		 0.4f},

                                        { RenderingParameter.SpecularLightColor,	 new Vector3( 0.94f, 0.15f, 0.15f) },
                                        { RenderingParameter.SpecularLightCoeff,	 0.8f },
                                        { RenderingParameter.SpecularPowerFactor,    0.5f },

                                        { RenderingParameter.FinalAlphaMixColor,	 new Vector3( 1.0f, 1.0f, 1.0f) },
                                        { RenderingParameter.FinalAlphaMixFactor,	 0.50f },
                                        { RenderingParameter.FinalAlphaMixThreshold, 0.05f },
                                    };

            var configurationAppSettings = new System.Configuration.AppSettingsReader();

            if (firstRun == true)
            {
                AngleX = (float)configurationAppSettings.GetValue("RotateX", typeof(float));
                AngleY = (float)configurationAppSettings.GetValue("RotateY", typeof(float));
                AngleZ = (float)configurationAppSettings.GetValue("RotateZ", typeof(float));
                TranslateZ = (float)configurationAppSettings.GetValue("TranslateZ", typeof(float));
            }

            // NOTE: what for is this path?
            shaderPaths.Add(@"../../Data/Shaders/simple.frag");
            LocateShaders();

            this.mDatasetManager = datasetManager;
            offline_render = false;
        }
Beispiel #5
0
 public RayCaster(DatasetManager datasetManager, AnimationManager anim_man)
     : this(datasetManager)
 {
     this.anim_man = anim_man;
 }