예제 #1
0
 public void setActiveShape(string name)
 {
     if (Classifier.hasAttribute(name))
     {
         Slot s = getProperty(name);
         if (s != null)
         {
             activeShape = (ShapeSpecification)s.getValue();
             if (activeShape != null)
             {
                 activeShape.setEntity(this);
             }
             else
             {
                 System.Console.WriteLine(this.name + ".setActiveShape(" + name + ") : the property is undefined");
             }
         }
     }
 }
예제 #2
0
 public ShapeGeometry()
     : base()
 {
     shape = null;
 }
예제 #3
0
 public ShapeGeometry()
     : base()
 {
     shape = null;
 }
예제 #4
0
        //callbakcs operation

        public abstract void setShape(ShapeSpecification shape);
예제 #5
0
 //callbakcs operation
 public abstract void setShape(ShapeSpecification shape);
예제 #6
0
        public void setActiveShape(string name)
        {
            if (Classifier.hasAttribute(name))
            {
                Slot s = getProperty(name);
                if (s != null)
                {
                    activeShape = (ShapeSpecification)s.getValue();
                    if (activeShape != null)
                        activeShape.setEntity(this);
                    else
                        System.Console.WriteLine(this.name + ".setActiveShape(" + name + ") : the property is undefined");

                }
            }
        }