Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ShapeEllipse.ccGo to the documentation of this file.00001 //-*-c++-*- 00002 #include <iostream> 00003 00004 using namespace std; 00005 00006 #include "SketchSpace.h" 00007 #include "Region.h" 00008 00009 #include "ShapeEllipse.h" 00010 00011 namespace DualCoding { 00012 00013 SHAPESTUFF_CC(EllipseData); 00014 00015 Shape<EllipseData>::Shape(Region& region) 00016 : ShapeRoot(addShape(new EllipseData(region.getSpace().getDualSpace(), 00017 region.findCentroid()))) 00018 { 00019 (*this)->setSemimajor(region.findSemiMajorAxisLength()); 00020 (*this)->setSemiminor(region.findSemiMinorAxisLength()); 00021 (*this)->setOrientation(region.findPrincipalAxisOrientation()); 00022 }; 00023 00024 00025 } // namespace |
DualCoding 5.1CVS |
Generated Mon May 9 04:56:27 2016 by Doxygen 1.6.3 |