コード例 #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
ファイル: WiredCube.cs プロジェクト: XiBeichuan/hydronumerics
        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
ファイル: DX3DHost.cs プロジェクト: XiBeichuan/hydronumerics
        public DX3DHost()
        {
            image = new Image();
            d3dimage = new D3DImage();
            image.Source = d3dimage;

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

        }