ICylinderShape IFactoryOf <ICylinderShape, CylinderShapeDescriptor> .Create(CylinderShapeDescriptor descriptor)
        {
            var cylinderShape = new CylinderShape(descriptor);

            Store(cylinderShape.WrappedCylinderShape);
            return(cylinderShape);
        }
예제 #2
0
 public static ICylinderShape CreateCylinder(this IFactory <IShape> factory,
                                             CylinderShapeDescriptor descriptor)
 {
     return(factory.Create <ICylinderShape, CylinderShapeDescriptor>(descriptor));
 }
예제 #3
0
 public CylinderShape(CylinderShapeDescriptor descriptor)
 {
     WrappedCylinderShape = new global::DigitalRune.Geometry.Shapes.CylinderShape(descriptor.Radius, descriptor.Height);
     UserData             = descriptor.UserData;
 }
 public DefaultCylinderShape(CylinderShapeDescriptor descriptor)
 {
     Descriptor = descriptor;
 }