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; }
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(); }
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); }
public DX3DHost() { image = new Image(); d3dimage = new D3DImage(); image.Source = d3dimage; this.Content = image; this.components = new DrawableComponentsManager(); this.camera = new Camera(); }