示例#1
0
 public void SetToComposition(Composition comp)
 {
     this.name                        = comp.name;
     this.mode                        = comp.mode;
     this.compare_offset              = comp.compare_offset;
     this.show_diff_afterbefore       = comp.show_diff_afterbefore;
     this.show_diff_beforeafter       = comp.show_diff_beforeafter;
     this.show_intersect_beforeafter  = comp.show_intersect_beforeafter;
     this.show_after                  = comp.show_after;
     this.show_end                    = comp.show_end;
     this.separateviewports_use       = comp.separateviewports_use;
     this.selections                  = comp.selections;
     this.intervals_use               = comp.intervals_use;
     this.intervals_count             = comp.intervals_count;
     this.show_provenance             = comp.show_provenance;
     this.show_annotations_transforms = comp.show_annotations_transforms;
     FireChangeHandler();
 }
示例#2
0
        //public void WriteBinary(BinaryWriter bw)
        //{
        //    bw.WriteT(name);
        //    bw.WriteT(mode);
        //    bw.WriteT(compare_offset);
        //    bw.WriteParams(show_diff_afterbefore, show_diff_beforeafter, show_intersect_beforeafter);
        //    bw.WriteParams(show_before, show_after, show_end);
        //    bw.WriteT(separateviewports_use);
        //    bw.WriteT(selections);
        //    bw.WriteT(intervals_use);
        //    bw.WriteT(intervals_count);
        //    bw.WriteT(show_provenance);
        //    bw.WriteT(show_annotations_transforms);
        //}

        public void ReadBinary(BinaryReader br)
        {
            this.name                        = br.ReadString();
            this.mode                        = br.ReadEnum <ComparisonModes>();
            this.compare_offset              = br.ReadVec3f();
            this.show_diff_afterbefore       = br.ReadBoolean();
            this.show_diff_beforeafter       = br.ReadBoolean();
            this.show_intersect_beforeafter  = br.ReadBoolean();
            this.show_before                 = br.ReadBoolean();
            this.show_after                  = br.ReadBoolean();
            this.show_end                    = br.ReadBoolean();
            this.separateviewports_use       = br.ReadBoolean();
            this.selections                  = br.ReadEnum <SelectionChoices>();
            this.intervals_use               = br.ReadBoolean();
            this.intervals_count             = br.ReadInt32();
            this.show_provenance             = br.ReadBoolean();
            this.show_annotations_transforms = br.ReadBoolean();
            FireChangeHandler();
        }
示例#3
0
 public Compare(ComparisonModes mode)
 {
     this.mode = mode;
 }