[Igarden-commit] Garden/source/PlanTool PlanCanvasView.cpp, 1.13.2.3, 1.13.2.4 PlanCanvasDefs.h, 1.
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2007-01-12 00:13:52
|
Update of /cvsroot/igarden/Garden/source/PlanTool In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6772 Modified Files: Tag: Release_branch_v1 PlanCanvasView.cpp PlanCanvasDefs.h Log Message: Make a new drawing style with variable sized plants Index: PlanCanvasDefs.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/PlanCanvasDefs.h,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -C2 -d -r1.5.2.1 -r1.5.2.2 *** PlanCanvasDefs.h 15 Nov 2006 12:17:41 -0000 1.5.2.1 --- PlanCanvasDefs.h 12 Jan 2007 00:13:49 -0000 1.5.2.2 *************** *** 79,83 **** kStyleDisplayConceptSketchLine, kStyleDisplayColor, ! kStyleDisplay3D } styleCharacteristic_t; --- 79,84 ---- kStyleDisplayConceptSketchLine, kStyleDisplayColor, ! kStyleDisplay3D, ! kStyleVariableSizePlants } styleCharacteristic_t; Index: PlanCanvasView.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/PlanTool/PlanCanvasView.cpp,v retrieving revision 1.13.2.3 retrieving revision 1.13.2.4 diff -C2 -d -r1.13.2.3 -r1.13.2.4 *** PlanCanvasView.cpp 15 Nov 2006 12:17:41 -0000 1.13.2.3 --- PlanCanvasView.cpp 12 Jan 2007 00:13:49 -0000 1.13.2.4 *************** *** 586,590 **** void PlanCanvasView::SetItemPlantSize(double xSize, double ySize, double zSize, double fullSpread) { ! _curMD->SetPlantSize(xSize, ySize, zSize, fullSpread); } --- 586,593 ---- void PlanCanvasView::SetItemPlantSize(double xSize, double ySize, double zSize, double fullSpread) { ! if(_currentStylePlugin->ShouldDisplay(_stylePluginIndex, kStyleVariableSizePlants) != kAlwaysOff) ! _curMD->SetPlantSize(xSize, ySize, zSize, fullSpread); ! else ! _curMD->SetPlantSize(fullSpread, fullSpread, zSize, fullSpread); } |