00001
00002
00003
00004
00005
00006
00007
00008
00010
00012
00018 #ifndef _seDRMPolar2DLocation_h
00019 #define _seDRMPolar2DLocation_h
00020
00021 #include "seDRMLocation2D.h"
00022
00023 namespace sedris {
00024
00030 class seDRMPolar2DLocation : public seDRMLocation2D
00031 {
00032 public:
00033
00035 seDRMPolar2DLocation() {}
00036
00038 seDRMPolar2DLocation( const seObject &other ) : seDRMLocation2D(other) {}
00039
00041 const SRM_Polar_2D_Coordinate& get_coordinate() { DRMBASE_RET_FIELDS(Polar_2D_Location, coordinate); }
00042
00044 void set_coordinate( const SRM_Polar_2D_Coordinate &val ) { DRMBASE_SET_FIELDS(Polar_2D_Location, coordinate, val); }
00045
00047 void set_coordinate( SRM_Long_Float angle, SRM_Long_Float radius ) {
00048 DRMBASE_ALLOC_FIELDS;
00049 DRMBASE_SET_FIELDS_S(Polar_2D_Location, coordinate, angle, angle);
00050 DRMBASE_SET_FIELDS_S(Polar_2D_Location, coordinate, radius, radius);
00051 }
00052
00054 virtual SE_DRM_Class getClassType() const { return SE_DRM_CLS_POLAR_2D_LOCATION; }
00055
00056 };
00057
00058 }
00059
00060 #endif // _seDRMPolar2DLocation_h