24 #ifndef __IRefPointShape__ 25 #define __IRefPointShape__ 27 #include "AppFrameworkID.h" 28 #include "IPMUnknown.h" 30 #include "PMPolygon4.h" 47 enum { kDefaultIID = IID_IREFPOINTSHAPE };
84 namespace PMPolygon4Extras
111 return (bounds4[0] + bounds4[1]) / 2;
119 return (bounds4[0] + bounds4[3]) / 2;
123 return (bounds4[0] + bounds4[2]) / 2;
127 return (bounds4[1] + bounds4[2]) / 2;
135 return (bounds4[3] + bounds4[2]) / 2;
144 return bounds4[0].X();
148 return bounds4[0].Y();
152 return bounds4[2].X();
156 return bounds4[2].Y();
166 thePoint = PMPolygon4Extras::TopCenter(bounds4);
169 thePoint = PMPolygon4Extras::LeftCenter(bounds4);
172 thePoint = PMPolygon4Extras::BottomCenter(bounds4);
175 thePoint = PMPolygon4Extras::RightCenter(bounds4);
178 thePoint = PMPolygon4Extras::TopLeft(bounds4);
181 thePoint = PMPolygon4Extras::TopRight(bounds4);
184 thePoint = PMPolygon4Extras::BottomRight(bounds4);
187 thePoint = PMPolygon4Extras::BottomLeft(bounds4);
190 thePoint = PMPolygon4Extras::Center(bounds4);
193 ASSERT_FAIL(
"Invalid PointIndex in PMPolygon4Extras::GetPoint");
203 #endif // __IRefPointShape__