Exemplo n.º 1
0
 protected override bool Read(Rhino.FileIO.BinaryArchiveReader archive)
 {
     Rhino.Collections.ArchivableDictionary dict = archive.ReadDictionary();
     if (dict.ContainsKey("IntegerData") && dict.ContainsKey("StringData"))
     {
       IntegerData = (int)dict["IntegerData"];
       StringData = dict["StringData"] as String;
     }
     return true;
 }
Exemplo n.º 2
0
 protected override bool Read(Rhino.FileIO.BinaryArchiveReader archive)
 {
   Rhino.Collections.ArchivableDictionary dict = archive.ReadDictionary();
   if (dict.ContainsKey("Weight") && dict.ContainsKey("Density"))
   {
     Weight = (int)dict["Weight"];
     Density = (double)dict["Density"];
   }
   return true;
 }
Exemplo n.º 3
0
 protected override void ReadDocument(RhinoDoc doc, Rhino.FileIO.BinaryArchiveReader archive, Rhino.FileIO.FileReadOptions options)
 {
   m_dict = archive.ReadDictionary();
 }