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_MATERIALATTRIBUTE3D_HXX 25 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_MATERIALATTRIBUTE3D_HXX 26 27 #include <drawinglayer/drawinglayerdllapi.h> 28 ////////////////////////////////////////////////////////////////////////////// 29 // predefines 30 31 namespace drawinglayer { namespace attribute { 32 class ImpMaterialAttribute3D; 33 }} 34 35 namespace basegfx { 36 class BColor; 37 } 38 39 ////////////////////////////////////////////////////////////////////////////// 40 41 namespace drawinglayer 42 { 43 namespace attribute 44 { 45 class DRAWINGLAYER_DLLPUBLIC MaterialAttribute3D 46 { 47 private: 48 ImpMaterialAttribute3D* mpMaterialAttribute3D; 49 50 public: 51 // constructors/destructor 52 MaterialAttribute3D( 53 const basegfx::BColor& rColor, 54 const basegfx::BColor& rSpecular, 55 const basegfx::BColor& rEmission, 56 sal_uInt16 nSpecularIntensity); 57 MaterialAttribute3D(const basegfx::BColor& rColor); 58 MaterialAttribute3D(); 59 MaterialAttribute3D(const MaterialAttribute3D& rCandidate); 60 ~MaterialAttribute3D(); 61 62 // assignment operator 63 MaterialAttribute3D& operator=(const MaterialAttribute3D& rCandidate); 64 65 // checks if the incarnation is default constructed 66 bool isDefault() const; 67 68 // compare operator 69 bool operator==(const MaterialAttribute3D& rCandidate) const; 70 71 // data read access 72 const basegfx::BColor& getColor() const; 73 const basegfx::BColor& getSpecular() const; 74 const basegfx::BColor& getEmission() const; 75 sal_uInt16 getSpecularIntensity() const; 76 }; 77 } // end of namespace attribute 78 } // end of namespace drawinglayer 79 80 ////////////////////////////////////////////////////////////////////////////// 81 82 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_MATERIALATTRIBUTE3D_HXX 83 84 // eof 85