コード例 #1
0
ファイル: Qsmq.cs プロジェクト: DenyCZ/IVA-Studio
    public override int GetHashCode()
    {
        int hash = 1;

        if (ClassId != 0)
        {
            hash ^= ClassId.GetHashCode();
        }
        if (Score != 0F)
        {
            hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Score);
        }
        if (bbox_ != null)
        {
            hash ^= Bbox.GetHashCode();
        }
        if (segm_ != null)
        {
            hash ^= Segm.GetHashCode();
        }
        if (florplanpoint_ != null)
        {
            hash ^= Florplanpoint.GetHashCode();
        }
        if (Features.Length != 0)
        {
            hash ^= Features.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
コード例 #2
0
ファイル: Qsmq.cs プロジェクト: DenyCZ/IVA-Studio
 public void MergeFrom(ObjectAnnotation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ClassId != 0)
     {
         ClassId = other.ClassId;
     }
     if (other.Score != 0F)
     {
         Score = other.Score;
     }
     if (other.bbox_ != null)
     {
         if (bbox_ == null)
         {
             bbox_ = new global::BBox();
         }
         Bbox.MergeFrom(other.Bbox);
     }
     if (other.segm_ != null)
     {
         if (segm_ == null)
         {
             segm_ = new global::SegmObject();
         }
         Segm.MergeFrom(other.Segm);
     }
     if (other.florplanpoint_ != null)
     {
         if (florplanpoint_ == null)
         {
             florplanpoint_ = new global::Point();
         }
         Florplanpoint.MergeFrom(other.Florplanpoint);
     }
     if (other.Features.Length != 0)
     {
         Features = other.Features;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }