예제 #1
0
        public DrawableComponent(DX3DHost host, Visualization3DDataSource dataSource)
        {
            this.device = host.Device;
            this.camera = host.Camera;
            this.dataSource = dataSource;

            this.isEnabled = false;

            host.DeviceReset += OnDeviceReset;
            host.DeviceLost += OnDeviceLost;
            host.DeviceDestroyed += OnDeviceDestroyed;
        }
예제 #2
0
        public WiredCube(Device device, Effect effect, float width, float height, float depth, Color3 cubeColor, Camera camera)
        {
            this.device = device;
            this.effect = effect;

            this.width = width;
            this.height = height;
            this.depth = depth;

            this.color = (int)RgbPalette.ColorARGB(cubeColor);

            this.camera = camera;
            world = Matrix.Identity;
            SetUpBuffers();
        }
예제 #3
0
        public ParticleSystem3D(Device device, Effect effect, int particleNum, double[, ,] array, double missingValue, Camera camera)
        {
            this.device = device;
            this.array = array;
            this.particles = new List<Particle>();
            this.missingValue = missingValue;
            this.camera = camera;
            this.particleNum = particleNum;


            min = -0.1f;//(float)MathHelper.FindMin(array, missingValue);
            max = 0.1f;// (float)MathHelper.FindMax(array, missingValue);

           
        }
예제 #4
0
        public DX3DHost()
        {
            image = new Image();
            d3dimage = new D3DImage();
            image.Source = d3dimage;

            this.Content = image;
            this.components = new DrawableComponentsManager();
            this.camera = new Camera();

        }