| OLD | NEW |
| 1 | 1 |
| 2 //---------------------------------------------------------------------------- | 2 //---------------------------------------------------------------------------- |
| 3 // Anti-Grain Geometry - Version 2.3 | 3 // Anti-Grain Geometry - Version 2.3 |
| 4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) | 4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) |
| 5 // | 5 // |
| 6 // Permission to copy, use, modify, sell and distribute this software | 6 // Permission to copy, use, modify, sell and distribute this software |
| 7 // is granted provided this copyright notice appears in all copies. | 7 // is granted provided this copyright notice appears in all copies. |
| 8 // This software is provided "as is" without express or implied | 8 // This software is provided "as is" without express or implied |
| 9 // warranty, and with no claim as to its suitability for any purpose. | 9 // warranty, and with no claim as to its suitability for any purpose. |
| 10 // | 10 // |
| 11 //---------------------------------------------------------------------------- | 11 //---------------------------------------------------------------------------- |
| 12 // Contact: mcseem@antigrain.com | 12 // Contact: mcseem@antigrain.com |
| 13 // mcseemagg@yahoo.com | 13 // mcseemagg@yahoo.com |
| 14 // http://www.antigrain.com | 14 // http://www.antigrain.com |
| 15 //---------------------------------------------------------------------------- | 15 //---------------------------------------------------------------------------- |
| 16 // | 16 // |
| 17 // Line dash generator | 17 // Line dash generator |
| 18 // | 18 // |
| 19 //---------------------------------------------------------------------------- | 19 //---------------------------------------------------------------------------- |
| 20 | 20 |
| 21 #include "agg_shorten_path.h" | 21 #include "agg_shorten_path.h" |
| 22 #include "agg_vcgen_dash.h" | 22 #include "agg_vcgen_dash.h" |
| 23 #include "core/fxcrt/include/fx_basic.h" | 23 #include "core/fxcrt/fx_basic.h" |
| 24 | 24 |
| 25 namespace agg | 25 namespace agg |
| 26 { | 26 { |
| 27 vcgen_dash::vcgen_dash() : | 27 vcgen_dash::vcgen_dash() : |
| 28 m_total_dash_len(0), | 28 m_total_dash_len(0), |
| 29 m_num_dashes(0), | 29 m_num_dashes(0), |
| 30 m_dash_start(0), | 30 m_dash_start(0), |
| 31 m_shorten(0), | 31 m_shorten(0), |
| 32 m_curr_dash_start(0), | 32 m_curr_dash_start(0), |
| 33 m_curr_dash(0), | 33 m_curr_dash(0), |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 169 } |
| 170 break; | 170 break; |
| 171 case stop: | 171 case stop: |
| 172 cmd = path_cmd_stop; | 172 cmd = path_cmd_stop; |
| 173 break; | 173 break; |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 return path_cmd_stop; | 176 return path_cmd_stop; |
| 177 } | 177 } |
| 178 } | 178 } |
| OLD | NEW |