コード例 #1
0
ファイル: Marker.cs プロジェクト: terakenxx/TukubaChallenge
 ///<exclude/>
 public Marker()
 {
     header = new Header();
     ns = string.Empty;
     pose = new Pose();
     scale = new Vector3();
     color = new ColorRGBA();
     points = new List<Point>();
     colors = new List<ColorRGBA>();
     text = string.Empty;
     mesh_resource = string.Empty;
 }
コード例 #2
0
ファイル: Marker.cs プロジェクト: terakenxx/TukubaChallenge
 ///<exclude/>
 public void Deserialize(BinaryReader br)
 {
     header = new Header(br);
     ns = br.ReadUtf8String();
     id = br.ReadInt32();
     type = br.ReadInt32();
     action = br.ReadInt32();
     pose = new Pose(br);
     scale = new Vector3(br);
     color = new ColorRGBA(br);
     lifetime = br.ReadTimeSpan();
     frame_locked = br.ReadBoolean();
     points = new List<Point>(br.ReadInt32()); for(int i=0; i<points.Capacity; i++) { var x = new Point(br);points.Add(x);}
     colors = new List<ColorRGBA>(br.ReadInt32()); for(int i=0; i<colors.Capacity; i++) { var x = new ColorRGBA(br);colors.Add(x);}
     text = br.ReadUtf8String();
     mesh_resource = br.ReadUtf8String();
     mesh_use_embedded_materials = br.ReadBoolean();
 }
コード例 #3
0
ファイル: ColorRGBA.cs プロジェクト: garaemon/RosSharp
 ///<exclude/>
 public bool Equals(ColorRGBA other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.r.Equals(r) && other.g.Equals(g) && other.b.Equals(b) && other.a.Equals(a);
 }