Example #1
0
        public static UnmanagedSourceDefinition ToUnmanagedSourceDefinition(this ISource source)
        {
            UnmanagedSourceDefinition unmanagedSourceDefinition = new UnmanagedSourceDefinition();

            // comment until rework
            //unmanagedSourceDefinition.num_photons = source.num_photons;
            //unmanagedSourceDefinition.beam_radius = source.beam_radius;
            //unmanagedSourceDefinition.beam_center_x = source.beam_center_x;
            //unmanagedSourceDefinition.beamtype = source.beamtype;
            //unmanagedSourceDefinition.src_NA = source.src_NA;
            //unmanagedSourceDefinition.z_focus = source.z_focus;
            //unmanagedSourceDefinition.Rspec = source.Rspec;
            return(unmanagedSourceDefinition);
        }
 public static extern void RunUnmanagedMC(ref UnmanagedPhoton unmanagedPhoton,
                                          ref UnmanagedTissue unmanagedTissue, ref UnmanagedSourceDefinition unmanagedSourceDefinition,
                                          ref UnmanagedOutput unmanagedOutput, ref UnmanagedHistory unmanagedHistory,
                                          ref UnmanagedFlags unmanagedFlags);