Пример #1
0
 ///<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
 ///<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
 ///<exclude/>
 public bool Equals(Pose other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.position.Equals(position) && other.orientation.Equals(orientation);
 }