Class Dataset
Last update: 09.03.2026Namespace: OpenTD.PostProcessing
Assembly: OpenTD.dll
Client-side representation of a dataset (solution results) in a TD instance.
[DataContract]
public class Dataset : UniqueNameObject, IUpdatable
Inheritance
object ← OpenTDObject ← UniqueNameObject ← Dataset
Implements
Inherited Members
UniqueNameObject.Name, UniqueNameObject.Rename(string), UniqueNameObject.ToString(), UniqueNameObject.ModifyName(string), UniqueNameObject.ProxyRename(string, string), UniqueNameObject._n, OpenTDObject.SetFrom(OpenTDObject), OpenTDObject.Update(), OpenTDObject.UpdateFromTD(), OpenTDObject.UpdateIn(ThermalDesktop), OpenTDObject.CreateIn(ThermalDesktop), OpenTDObject.TdProxy, object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Constructors
Dataset()
public Dataset()
Properties
AdditionalInfo
Type-specific information about the dataset.
[DataMember]
public AdditionalDatasetInfoHolder AdditionalInfo { get; set; }
Property Value
AdditionalDatasetInfoHolder
Comment
[DataMember]
public string Comment { get; set; }
Property Value
CurrentTimeIndex
Set this to choose what timestep/record will be displayed when post-processed.
[DataMember]
public int CurrentTimeIndex { get; set; }
Property Value
OffsetTime
[DataMember]
public Dimensional<Time> OffsetTime { get; set; }
Property Value
OffsetTimeExp
[DataMember]
public ExpressionData OffsetTimeExp { get; set; }
Property Value
OrbitName
[DataMember]
public string OrbitName { get; set; }
Property Value
Pathname
public string Pathname { get; }
Property Value
PlotMLINodes
[DataMember]
public Dataset.PlotMliNodes PlotMLINodes { get; set; }
Property Value
SmartColorBarCycle
[DataMember]
public int SmartColorBarCycle { get; set; }
Property Value
SourceType
Read only. The type of dataset. For example, SF for Sinda results.
[DataMember]
public Dataset.DataSourceTypes SourceType { get; set; }
Property Value
Times
Read only. Time values associated with each timestep/record in the dataset, in the current WorkingUnits.
[DataMember]
public DimensionalList<Time> Times { get; set; }
Property Value
UseOrbit
[DataMember]
public int UseOrbit { get; set; }
Property Value
Methods
CreateIn(ThermalDesktop)
Creates the TD entity in the specified TD instance.
public override void CreateIn(ThermalDesktop td)
Parameters
ProxyRename(string, string)
protected override void ProxyRename(string from, string to)
Parameters
from string
to string
SetCurrent()
public void SetCurrent()
ShowContourPlot()
public void ShowContourPlot()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
TrySetCurrentTimeIndex(double, double)
Use this to indirectly set CurrentTimeIndex by specifying a time in the current WorkingUnits. Returns true if able to find a time in Times within the percent tolerance specified (defaults to 1%).
public bool TrySetCurrentTimeIndex(double time, double percentTolerance = 1)
Parameters
time double
percentTolerance double
Returns
Update()
Updates the TD entity with the latest client data.
public override void Update()
UpdateFromTD()
Updates the client-side instance with the latest data from the TD entity.
public override void UpdateFromTD()