public GeometricRelationship(string _name, Relation2GeomState _state, Point4D _ids, Matrix3D _cs, Matrix3D _tr_WC2LC, Matrix3D _tr_LC2WC) { // general this.ID = (++GeometricRelationship.NR_GEOMETRICRELATIONSHIPS); this.Name = (string.IsNullOrEmpty(_name)) ? "Geometry" : _name; this.State = _state; this.GeomIDs = _ids; this.GeomCS = _cs; this.TRm_WC2LC = _tr_WC2LC; this.TRm_LC2WC = _tr_LC2WC; // instance information this.instance_size = new List <double>(); this.instance_size_transfer_settings = new List <GeomSizeTransferDef>(); this.instance_nwe_id = -1L; this.instance_nwe_name = "NW_Element"; this.InstancePath = new List <Point3D>(); this.InstanceParamValues = new Dictionary <string, double>(); // transient! this.UpdateState = GeometricRelationshipUpdateState.NEUTRAL; }
internal void Reset() { // general Relation2GeomState state_old = this.State; this.state = new Relation2GeomState { IsRealized = false, Type = state_old.Type }; this.GeomIDs = new Point4D(-1, -1, -1, -1); this.GeomCS = Matrix3D.Identity; this.TRm_WC2LC = Matrix3D.Identity; this.TRm_LC2WC = Matrix3D.Identity; // instance information this.instance_size = new List <double>(); this.instance_size_transfer_settings = new List <GeomSizeTransferDef>(); this.instance_nwe_id = -1L; this.instance_nwe_name = "NW_Element"; this.InstancePath = new List <Point3D>(); this.InstanceParamValues = new Dictionary <string, double>(); // transient! this.UpdateState = GeometricRelationshipUpdateState.NEUTRAL; }