public void SetBlockDimensions(PhysicalDimensions pd) { if (!textBoxXOrigin_isDirty) { textBoxXOrigin.Text = "" + pd.originX; } if (!textBoxYOrigin_isDirty) { textBoxYOrigin.Text = "" + pd.originY; } if (!textBoxZOrigin_isDirty) { textBoxZOrigin.Text = "" + pd.originZ; } if (!textBoxXWidth_isDirty) { textBoxXWidth.Text = "" + pd.blockXWidth; } if (!textBoxYWidth_isDirty) { textBoxYWidth.Text = "" + pd.blockYWidth; } if (!textBoxZWidth_isDirty) { textBoxZWidth.Text = "" + pd.blockZWidth; } }
public PhysicalDimensions GetBlockDimensions() { PhysicalDimensions pd = new PhysicalDimensions(); pd.originX = GetValAsDouble(textBoxXOrigin); pd.originY = GetValAsDouble(textBoxYOrigin); pd.originZ = GetValAsDouble(textBoxZOrigin); pd.blockXWidth = GetValAsDouble(textBoxXWidth); pd.blockYWidth = GetValAsDouble(textBoxYWidth); pd.blockZWidth = GetValAsDouble(textBoxZWidth); return(pd); }
internal PhysicalDimensions QueryLocationColumns(int xCol, int yCol, int zCol, DataRecords.ColumnManager columnManager) { ColumnStats x = columnManager.GetXYZColumnData(xCol); ColumnStats y = columnManager.GetXYZColumnData(yCol); ColumnStats z = columnManager.GetXYZColumnData(zCol); PhysicalDimensions dim = new PhysicalDimensions(); dim.originX = x.min; dim.originY = y.min; dim.originZ = z.min; dim.maximumX = x.max; dim.maximumY = y.max; dim.maximumZ = z.max; return(dim); }