CigiBaseCircleSymbolData.cpp

Go to the documentation of this file.
00001 
00040 #define _EXPORT_CCL_
00041 
00042 
00043 #include "CigiBaseCircleSymbolData.h"
00044 #include "CigiExceptions.h"
00045 
00046 
00047 
00048 // ====================================================================
00049 // Construction/Destruction
00050 // ====================================================================
00051 
00052 // ================================================
00053 // CigiBaseEntityCtrl
00054 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00055 CigiBaseCircleSymbolData::CigiBaseCircleSymbolData(void)
00056 {
00057 }
00058 
00059 // ================================================
00060 // ~CigiBaseEntityCtrl
00061 // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
00062 CigiBaseCircleSymbolData::~CigiBaseCircleSymbolData(void)
00063 {
00064 }
00065 
00066 
00067 // ====================================================================
00068 // Accessors
00069 // ====================================================================
00070 
00071 // ================================================
00072 // SetRadius
00073 // ================================================
00074 int CigiBaseCircleSymbolData::SetRadius(const float RadiusIn, bool bndchk)
00075 {
00076 
00077 #ifndef CIGI_NO_BND_CHK
00078    if(bndchk && ((RadiusIn < 0.0)))
00079    {
00080 #ifndef CIGI_NO_EXCEPT
00081       throw CigiValueOutOfRangeException("RadiusIn", (int)RadiusIn,">=",0.0);
00082 #endif
00083       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00084    }
00085 #endif
00086 
00087    Radius = RadiusIn;
00088 
00089    return(CIGI_SUCCESS);
00090 
00091 }
00092 
00093 
00094 // ================================================
00095 // InnerRadius
00096 // ================================================
00097 int CigiBaseCircleSymbolData::SetInnerRadius(const float InnerRadiusIn, bool bndchk)
00098 {
00099 
00100 #ifndef CIGI_NO_BND_CHK
00101    if(bndchk && ((InnerRadiusIn < 0.0)))
00102    {
00103 #ifndef CIGI_NO_EXCEPT
00104       throw CigiValueOutOfRangeException("InnerRadiusIn", (int)InnerRadiusIn,">=",0.0);
00105 #endif
00106       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00107    }
00108 #endif
00109 
00110    InnerRadius = InnerRadiusIn;
00111 
00112    return(CIGI_SUCCESS);
00113 
00114 }
00115 
00116 
00117 // ================================================
00118 // StartAngle
00119 // ================================================
00120 int CigiBaseCircleSymbolData::SetStartAngle(const float StartAngleIn, bool bndchk)
00121 {
00122 
00123 #ifndef CIGI_NO_BND_CHK
00124    if(bndchk && ((StartAngleIn < 0.0)||(StartAngleIn > 360.0)))
00125    {
00126 #ifndef CIGI_NO_EXCEPT
00127       throw CigiValueOutOfRangeException("StartAngle", (double)StartAngleIn,0.0,360.0);
00128 #endif
00129       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00130    }
00131 #endif
00132 
00133    StartAngle = StartAngleIn;
00134 
00135    return(CIGI_SUCCESS);
00136 
00137 }
00138 
00139 
00140 // ================================================
00141 // EndAngle
00142 // ================================================
00143 int CigiBaseCircleSymbolData::SetEndAngle(const float EndAngleIn, bool bndchk)
00144 {
00145 
00146 #ifndef CIGI_NO_BND_CHK
00147    if(bndchk && ((EndAngleIn < 0.0)||(EndAngleIn > 360.0)))
00148    {
00149 #ifndef CIGI_NO_EXCEPT
00150       throw CigiValueOutOfRangeException("EndAngle", (double)EndAngleIn,0.0,360.0);
00151 #endif
00152       return(CIGI_ERROR_VALUE_OUT_OF_RANGE);
00153    }
00154 #endif
00155 
00156    EndAngle = EndAngleIn;
00157 
00158    return(CIGI_SUCCESS);
00159 
00160 }
00161 
00162 

Generated on Wed Apr 29 08:59:57 2009 for CCL by  doxygen 1.4.7