Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ShapeTarget.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef _SHAPETARGET_H_
00003 #define _SHAPETARGET_H_
00004 
00005 #include "ShapeRoot.h"
00006 #include "TargetData.h"
00007 
00008 namespace DualCoding {
00009 
00010 class ShapeSpace;
00011 class Point;
00012 class EndPoint;
00013 
00014 template<>
00015 class Shape<TargetData> : public ShapeRoot {
00016 public:
00017   SHAPESTUFF_H(TargetData);  // defined in ShapeRoot.h
00018 
00019   //! Make a target from a point, two end points, and a height
00020   Shape<TargetData>(ShapeSpace &s, const EndPoint &frontLeftPt, const EndPoint &frontRightPt, const EndPoint &backLeftPt, const EndPoint &backRightPt, const EndPoint &frontIntersect, const EndPoint &backIntersect, const float height)
00021     : ShapeRoot(addShape(new TargetData(s, frontLeftPt, frontRightPt, backLeftPt, backRightPt, frontIntersect, backIntersect, height))) {}
00022   
00023   //! Copy constructor.
00024   Shape<TargetData>(const TargetData& newData) : ShapeRoot(addShape(new TargetData(newData))) {}
00025 
00026 };
00027 
00028 } // namespace
00029 
00030 #endif

DualCoding 5.1CVS
Generated Mon May 9 04:56:27 2016 by Doxygen 1.6.3