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); } } }
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>(); }