private static UIElement GetDefaultFrontMaterial(Shape3D shape)
 {
     ParametricShape3D _this = (ParametricShape3D)shape;
     return _this.GetDefaultMaterial(true);
 }
Пример #2
0
        // 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;
 }
Пример #6
0
        private static UIElement GetDefaultBackMaterial(Shape3D shape)
        {
            ParametricShape3D _this = (ParametricShape3D)shape;

            return(_this.GetDefaultMaterial(false));
        }
Пример #7
0
        private static UIElement GetDefaultFrontMaterial(Shape3D shape)
        {
            ParametricShape3D _this = (ParametricShape3D)shape;

            return(_this.GetDefaultMaterial(true));
        }