ShapeTarget.h
Go to the documentation of this file.00001
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);
00018
00019
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
00024 Shape<TargetData>(const TargetData& newData) : ShapeRoot(addShape(new TargetData(newData))) {}
00025
00026 };
00027
00028 }
00029
00030 #endif