public void ReadAtts(int index, CommunicationBuffer buf) { switch (index) { case 0: SetContourNLevels(buf.ReadInt()); break; case 1: SetContourValue(buf.ReadDoubleVector()); break; case 2: SetContourPercent(buf.ReadDoubleVector()); break; case 3: SetContourMethod(buf.ReadInt()); break; case 4: SetMinFlag(buf.ReadBool()); break; case 5: SetMaxFlag(buf.ReadBool()); break; case 6: SetMin(buf.ReadDouble()); break; case 7: SetMax(buf.ReadDouble()); break; case 8: SetScaling(buf.ReadInt()); break; case 9: SetVariable(buf.ReadString()); break; } }
public void ReadAtts(int index, CommunicationBuffer buf) { switch (index) { case 0: SetTypeNames(buf.ReadStringVector()); break; case 1: SetTypeIDs(buf.ReadStringVector()); break; case 2: { int len = buf.ReadInt(); openOptions.clear(); for (int j = 0; j < len; ++j) { DBOptionsAttributes tmp = new DBOptionsAttributes(); tmp.Read(buf); openOptions.addElement(tmp); } } Select(2); break; case 3: SetEnabled(buf.ReadIntVector()); break; case 4: SetPreferredIDs(buf.ReadStringVector()); break; } }
public void ReadAtts(int index, CommunicationBuffer buf) { switch (index) { case 0: SetOrigin(buf.ReadDoubleArray()); break; case 1: SetRadius(buf.ReadDouble()); break; } }
// Write and read methods. public void WriteAtts(CommunicationBuffer buf) { if (WriteSelect(0, buf)) buf.WriteStringVector(typeNames); if (WriteSelect(1, buf)) buf.WriteStringVector(typeIDs); if (WriteSelect(2, buf)) { buf.WriteInt(openOptions.size()); for (int i = 0; i < openOptions.size(); ++i) { DBOptionsAttributes tmp = (DBOptionsAttributes) openOptions.elementAt(i); tmp.Write(buf); } } if (WriteSelect(3, buf)) buf.WriteIntVector(Enabled); if (WriteSelect(4, buf)) buf.WriteStringVector(preferredIDs); }
// Write and read methods. public void WriteAtts(CommunicationBuffer buf) { if (WriteSelect(0, buf)) buf.WriteInt(contourNLevels); if (WriteSelect(1, buf)) buf.WriteDoubleVector(contourValue); if (WriteSelect(2, buf)) buf.WriteDoubleVector(contourPercent); if (WriteSelect(3, buf)) buf.WriteInt(contourMethod); if (WriteSelect(4, buf)) buf.WriteBool(minFlag); if (WriteSelect(5, buf)) buf.WriteBool(maxFlag); if (WriteSelect(6, buf)) buf.WriteDouble(min); if (WriteSelect(7, buf)) buf.WriteDouble(max); if (WriteSelect(8, buf)) buf.WriteInt(scaling); if (WriteSelect(9, buf)) buf.WriteString(variable); }
// Write and read methods. public void WriteAtts(CommunicationBuffer buf) { if (WriteSelect(0, buf)) buf.WriteDoubleArray(origin); if (WriteSelect(1, buf)) buf.WriteDouble(radius); }
public void ReadAtts(int index, CommunicationBuffer buf) { switch (index) { case 0: SetName(buf.ReadString()); break; case 1: SetVarnames(buf.ReadStringVector()); break; case 2: SetBinType(buf.ReadByteVector()); break; case 3: SetBinBoundaries(buf.ReadDoubleVector()); break; case 4: SetReductionOperator(buf.ReadInt()); break; case 5: SetVarForReductionOperator(buf.ReadString()); break; case 6: SetUndefinedValue(buf.ReadDouble()); break; case 7: SetBinningScheme(buf.ReadInt()); break; case 8: SetNumBins(buf.ReadIntVector()); break; case 9: SetOverTime(buf.ReadBool()); break; case 10: SetTimeStart(buf.ReadInt()); break; case 11: SetTimeEnd(buf.ReadInt()); break; case 12: SetTimeStride(buf.ReadInt()); break; case 13: SetOutOfBoundsBehavior(buf.ReadInt()); break; } }
// Write and read methods. public void WriteAtts(CommunicationBuffer buf) { if (WriteSelect(0, buf)) buf.WriteString(name); if (WriteSelect(1, buf)) buf.WriteStringVector(varnames); if (WriteSelect(2, buf)) buf.WriteByteVector(binType); if (WriteSelect(3, buf)) buf.WriteDoubleVector(binBoundaries); if (WriteSelect(4, buf)) buf.WriteInt(reductionOperator); if (WriteSelect(5, buf)) buf.WriteString(varForReductionOperator); if (WriteSelect(6, buf)) buf.WriteDouble(undefinedValue); if (WriteSelect(7, buf)) buf.WriteInt(binningScheme); if (WriteSelect(8, buf)) buf.WriteIntVector(numBins); if (WriteSelect(9, buf)) buf.WriteBool(overTime); if (WriteSelect(10, buf)) buf.WriteInt(timeStart); if (WriteSelect(11, buf)) buf.WriteInt(timeEnd); if (WriteSelect(12, buf)) buf.WriteInt(timeStride); if (WriteSelect(13, buf)) buf.WriteInt(outOfBoundsBehavior); }