// //********************************************************************************************** // // Class TPlotToShow // Part of : TDRFree // Function : Indicates which plot to show // Author : Jan G. Wesseling // Date : April 9th, 2013 // //********************************************************************************************** // public TPlotToShow() { PlotId = -1; ItemToVisualize = TItemToVisualize.Nothing; }
// //********************************************************************************************** // public void PrepareAndDrawGrid(TItemToVisualize aItem) { CorrectTop(); if (aItem == TItemToVisualize.MoistureContent) { MoistureDrawing.Scale(Top, Right, Bottom, Left); MoistureDrawing.DrawContours(); MoistureDrawing.DrawElements(Element); MoistureDrawing.DrawNodes(Node); } else { DerivedDrawing.Scale(Top, Right, Bottom, Left); DerivedDrawing.DrawContours(); DerivedDrawing.DrawElements(Element); DerivedDrawing.DrawNodes(Node); } FindNumberOfNodes(); }
// //********************************************************************************************** // public void ProcessTheta(Double[] aTheta, ProgressBar brPoints, List<TMoistureClass> aMoistureClass, List<TDerivedClass> aDerivedClass, TItemToVisualize aItem) { ComputeVirtualTheta(aTheta); if (aItem == TItemToVisualize.MoistureContent) { MoistureDrawing.DrawMoistureContents(Top, brPoints, Element, aMoistureClass, aTheta); } else { DerivedDrawing.DrawDerivedData(Top, brPoints, Element, aDerivedClass, aTheta, ValuesForDerivation, DerivationLimits); } // MyDrawing.DrawElements(Element); // MyDrawing.DrawNodes(Node); }
// //********************************************************************************************** // public Bitmap GetBitmap(TItemToVisualize aItem) { Bitmap MyBitmap; if (aItem == TItemToVisualize.MoistureContent) { MyBitmap = GetMoistureBitmap(false); } else { MyBitmap = GetDerivedBitmap(false); } return MyBitmap; }