1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_STROKEATTRIBUTE_HXX 25 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_STROKEATTRIBUTE_HXX 26 27 #include <drawinglayer/drawinglayerdllapi.h> 28 #include <vector> 29 30 ////////////////////////////////////////////////////////////////////////////// 31 // predefines 32 33 namespace drawinglayer { namespace attribute { 34 class ImpStrokeAttribute; 35 }} 36 37 ////////////////////////////////////////////////////////////////////////////// 38 39 namespace drawinglayer 40 { 41 namespace attribute 42 { 43 class DRAWINGLAYER_DLLPUBLIC StrokeAttribute 44 { 45 private: 46 ImpStrokeAttribute* mpStrokeAttribute; 47 48 public: 49 /// constructors/assignmentoperator/destructor 50 StrokeAttribute( 51 const ::std::vector< double >& rDotDashArray, 52 double fFullDotDashLen = 0.0); 53 StrokeAttribute(); 54 StrokeAttribute(const StrokeAttribute& rCandidate); 55 StrokeAttribute& operator=(const StrokeAttribute& rCandidate); 56 ~StrokeAttribute(); 57 58 // checks if the incarnation is default constructed 59 bool isDefault() const; 60 61 // compare operator 62 bool operator==(const StrokeAttribute& rCandidate) const; 63 64 // data read access 65 const ::std::vector< double >& getDotDashArray() const; 66 double getFullDotDashLen() const; 67 }; 68 } // end of namespace attribute 69 } // end of namespace drawinglayer 70 71 ////////////////////////////////////////////////////////////////////////////// 72 73 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_STROKEATTRIBUTE_HXX 74 75 // eof 76