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

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