public DragMPPointCommand(WorldEditor worldEditor, MPPoint point)
 {
     this.app = worldEditor;
     this.obj = point;
     this.origPosition = point.Position;
     this.type = point.Type;
     this.pointNum = point.PointNum;
 }
 public DragMPPointCommand(WorldEditor worldEditor, MPPoint point)
 {
     this.app          = worldEditor;
     this.obj          = point;
     this.origPosition = point.Position;
     this.type         = point.Type;
     this.pointNum     = point.PointNum;
 }
 public MPPoint(int pointNum, PointCollection parent, WorldEditor worldEditor, string meshName, string meshMaterial, Vector3 position, MPPointType type)
 {
     this.PointNum = pointNum;
     this.parent = parent;
     this.app = worldEditor;
     this.meshName = meshName;
     this.meshMaterial = meshMaterial;
     this.position = position;
     this.type = type;
 }
 public MPPoint(int pointNum, PointCollection parent, WorldEditor worldEditor, string meshName, string meshMaterial, Vector3 position, MPPointType type)
 {
     this.PointNum     = pointNum;
     this.parent       = parent;
     this.app          = worldEditor;
     this.meshName     = meshName;
     this.meshMaterial = meshMaterial;
     this.position     = position;
     this.type         = type;
 }
 public PointCollection(IWorldContainer parent, WorldEditor worldEditor, bool noIntersect, bool displayMarkers, string markerMeshName, string markerMaterialName, MPPointType type)
 {
     this.parent             = parent;
     this.app                = worldEditor;
     this.noIntersect        = noIntersect;
     this.displayMarkers     = true;
     this.markerMeshName     = markerMeshName;
     this.markerMaterialName = markerMaterialName;
     points    = new List <MPPoint>();
     this.type = type;
 }
        public MPPoint(XmlTextReader r, int pointNum, PointCollection parent, WorldEditor worldEditor, string meshName, string meshMaterial, MPPointType type)
        {
            this.PointNum     = pointNum;
            this.parent       = parent;
            this.app          = worldEditor;
            this.meshName     = meshName;
            this.meshMaterial = meshMaterial;
            this.type         = type;

            position = parseVectorAttributes(r);
        }
        public MPPoint(XmlTextReader r, int pointNum, PointCollection parent, WorldEditor worldEditor, string meshName, string meshMaterial, MPPointType type)
        {
            this.PointNum = pointNum;
            this.parent = parent;
            this.app = worldEditor;
            this.meshName = meshName;
            this.meshMaterial = meshMaterial;
            this.type = type;

            position = parseVectorAttributes(r);
        }
        public PointCollection(IWorldContainer parent, WorldEditor worldEditor, bool noIntersect, bool displayMarkers, string markerMeshName, string markerMaterialName, MPPointType type, XmlReader r)
            :
            this(parent, worldEditor, noIntersect, displayMarkers, markerMeshName, markerMaterialName, type)
        {
            //
            // don't do the intersection test when adding points from xml
            //
            this.noIntersect = false;

            while (r.Read())
            {
                // look for the start of an element
                if (r.NodeType == XmlNodeType.Whitespace)
                {
                    continue;
                }
                if (r.NodeType == XmlNodeType.EndElement)
                {
                    break;
                }
                if (r.NodeType == XmlNodeType.Element)
                {
                    if (String.Equals(r.Name, "Point"))
                    {
                        Vector3 ptLoc = XmlHelperClass.ParseVectorAttributes(r);
                        int     pointNum;
                        AddPoint(ptLoc, out pointNum);
                    }
                }
            }

            this.noIntersect = noIntersect;
        }