Пример #1
0
        }                          // default constructor needed to keep XMLSerialization working. DO NOT REMOVE

        public GeoObj(string figName, Vector3 position, GeoObjDef def, GeoObjType type)
        {
            this.figName           = figName;
            this.position          = position;
            this.definition        = def;
            this.type              = type;
            this.constructionIndex = int.Parse(new string (figName.ToCharArray().Where(c => Char.IsDigit(c)).ToArray()));
            this.currTime          = System.DateTime.Now;
            if (alphabetLabel.firstLabelMade && alphabetLabel.labelDict.ContainsKey(figName))
            {
                this.label = alphabetLabel.labelDict[figName];
            }
        }
Пример #2
0
 public GeoObj(string name, Vector3 position, Quaternion rotation, figData.revSurf revSurf, GeoObjDef def, List <string> dependencyList, GeoObjType type) : this(name, position, rotation, def, type)
 {
     this.revSurfData  = revSurf;
     this.dependencies = dependencyList;
 }
Пример #3
0
 public GeoObj(string name, Vector3 position, Quaternion rotation, figData.prism prismData, GeoObjDef def, GeoObjType type) : this(name, position, rotation, def, type)
 {
     this.prismData = prismData;
 }
Пример #4
0
 public GeoObj(string name, Vector3 position, Quaternion rotation, figData.sphere sphere, GeoObjDef def, List <string> dependencyList, GeoObjType type) : this(name, position, rotation, def, type)
 {
     this.sphereData   = sphere;
     this.dependencies = dependencyList;
     this.type         = type;
 }
Пример #5
0
 public GeoObj(string name, Vector3 position, Quaternion rotation, figData.pyramid pyramid, GeoObjDef def, List <string> dependencyList, GeoObjType type) : this(name, position, rotation, def, type)
 {
     this.pyramidData  = pyramid;
     this.dependencies = dependencyList;
     this.type         = type;
 }
Пример #6
0
 public GeoObj(string name, Vector3 position, Quaternion rotation, figData.polygon polygon, GeoObjDef def, List <string> dependencyList, GeoObjType type) : this(name, position, rotation, def, type)
 {
     this.polygonData  = polygon;
     this.dependencies = dependencyList;
 }
Пример #7
0
 public GeoObj(string name, Vector3 position, Quaternion rotation, figData.line line, GeoObjDef def, List <string> dependencyList, GeoObjType type) : this(name, position, def, type)
 {
     this.rotation     = rotation;
     this.dependencies = dependencyList;
     this.lineData     = line;
 }
Пример #8
0
 public GeoObj(string name, Vector3 position, Quaternion rotation, GeoObjDef def, GeoObjType type) : this(name, position, def, type)
 {
     this.rotation = rotation;
 }