Esempio n. 1
0
 private void RenderDoses(IRenderContext context)
 {
     if (context != null)
     {
         for (int i = 0; i < ContouredDoses.Count; i++)
         {
             DoseRenderer?.Render(ContouredDoses[i], Camera, context, new Rectd(0, 0, 1, 1), (LineType)i);
         }
     }
 }
Esempio n. 2
0
 public DicomPanelModel()
 {
     Camera           = new Camera();
     ImageRenderer    = new ImageRenderer();
     DoseRenderer     = new DoseRenderer();
     ROIRenderer      = new ROIRenderer();
     VectorRenderer   = new VoxelFieldRenderer();
     ROIs             = new List <RegionOfInterest>();
     POIs             = new List <PointOfInterest>();
     ContouredDoses   = new List <IDoseObject>();
     BeamRenderer     = new BeamRenderer();
     Beams            = new List <Beam>();
     OrthogonalModels = new List <DicomPanelModel>();
     Overlays         = new List <IOverlay>();
     ToolBox          = new ToolBox();
     Overlays.Add(new ScaleOverlay());
     SpyGlass         = new Rectd(0, 0, 1, 1);
     AdditionalImages = new List <RenderableImage>();
     VectorFields     = new List <VectorField>();
 }