public XYZObjectSettingPage(XYZObject xyzObject) { this.InitializeComponent(); // _xyzObject = xyzObject; // XTextBox.Text = xyzObject.X.ToString(CultureInfo.InvariantCulture); YTextBox.Text = xyzObject.Y.ToString(CultureInfo.InvariantCulture); ZTextBox.Text = xyzObject.Z.ToString(CultureInfo.InvariantCulture); RadiusTextBox.Text = xyzObject.Radius.ToString(CultureInfo.InvariantCulture); }
internal SoXYZNode(XYZObject xyzObject, Window3D window) { _xyzObject = xyzObject; _window = window; // // subscribe to property changed o fthe object _xyzObject.PropertyChanged += XyzObjectOnPropertyChanged; // // create a translation _translation = new SoTranslation(); UpdateSoTranslation(); this.AddChild(_translation); // // create a sphere _sphere = new SoSphere(); UpdateSoSphere(); this.AddChild(_sphere); }