private static UIElement GetDefaultFrontMaterial(Shape3D shape) { ParametricShape3D _this = (ParametricShape3D)shape; return _this.GetDefaultMaterial(true); }
// All derived classes can use this as the property change handler for // properties that affect the model. protected static void OnPropertyChangedAffectsModel(Object sender, DependencyPropertyChangedEventArgs e) { Shape3D _this = (Shape3D)sender; _this.InvalidateModel(); }
private static UIElement GetDefaultBackMaterial(Shape3D shape) { ParametricShape3D _this = (ParametricShape3D)shape; return _this.GetDefaultMaterial(false); }
public Material GetMaterial(Shape3D shape) { if (_getMaterial != null) { return _getMaterial(shape); } return null; }
public UIElement GetElement(Shape3D shape) { if (_getElement != null) { return _getElement(shape); } return null; }
private static UIElement GetDefaultBackMaterial(Shape3D shape) { ParametricShape3D _this = (ParametricShape3D)shape; return(_this.GetDefaultMaterial(false)); }
private static UIElement GetDefaultFrontMaterial(Shape3D shape) { ParametricShape3D _this = (ParametricShape3D)shape; return(_this.GetDefaultMaterial(true)); }