def __init__(self, shallow=False): self.shallow = shallow self.array = _ArraySerializer() self.atom = _AtomSerializerID() self.bond = _BondSerializer() self.color = _ColorSerializer() self.string = _StringSerializer()
class _VolumeLayerSerializer(_TypeSerializer): __color = _ColorSerializer() def __init__(self): pass def version(self): return 0 def name(self): return "VolumeLayer" def serialize(self, version, value, context): context.write_using_serializer(_VolumeLayerSerializer.__color, value._color) context.write_float(value._rmsd) def deserialize(self, version, context): raise NotImplementedError
def __init__(self): self.data = _ArraySerializer() self.data.set_type(_ByteSerializer()) self.color = _ColorSerializer() self.string = _StringSerializer()
def __init__(self): self.string = _StringSerializer() self.color = _ColorSerializer() self.vector = _Vector3Serializer()
def __init__(self): self.color = _ColorSerializer() self.string = _StringSerializer() self.vector = _Vector3Serializer() self.array = _ArraySerializer() self.bool = _BoolSerializer()
def __init__(self): self.color = _ColorSerializer()