Nov 29, 2016 at 3:06 PM

I have a question about the SetVoxels method in the EvaluationDose class.
The declaration looks like this:
public class EvaluationDose : Dose

    public void SetVoxels(int planeIndex, int[,] values);
    public override void WriteXml(XmlWriter writer);

So, as far as I've understood from the code, when I want to populate my EvaluationDose with actual dose values I have to use the SetVoxels method, which then sets the dose slice by slice. The method expects an 2D array of integers. How am I supposed to convert my floating point dose values to the integer representation within EvaluationDose?
Is this representation described somewhere?
How does this representation relate to the DoseValue class?

I can find the inverse operation in the Dose class:

public DoseValue VoxelToDoseValue(int voxelValue);

What I think I'm looking for is a int DoseToVoxel(DoseValue value).

Does this exist? If not, what's the conversion that I need to do?


/Peter Kimstrand