1*4bfbcde8SAndrew Rist /************************************************************** 2*4bfbcde8SAndrew Rist * 3*4bfbcde8SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*4bfbcde8SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*4bfbcde8SAndrew Rist * distributed with this work for additional information 6*4bfbcde8SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*4bfbcde8SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*4bfbcde8SAndrew Rist * "License"); you may not use this file except in compliance 9*4bfbcde8SAndrew Rist * with the License. You may obtain a copy of the License at 10*4bfbcde8SAndrew Rist * 11*4bfbcde8SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*4bfbcde8SAndrew Rist * 13*4bfbcde8SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*4bfbcde8SAndrew Rist * software distributed under the License is distributed on an 15*4bfbcde8SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*4bfbcde8SAndrew Rist * KIND, either express or implied. See the License for the 17*4bfbcde8SAndrew Rist * specific language governing permissions and limitations 18*4bfbcde8SAndrew Rist * under the License. 19*4bfbcde8SAndrew Rist * 20*4bfbcde8SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDROBJECTATTRIBUTE3D_HXX 23cdf0e10cSrcweir #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDROBJECTATTRIBUTE3D_HXX 24cdf0e10cSrcweir 25090f0eb8SEike Rathke #include <drawinglayer/drawinglayerdllapi.h> 26cdf0e10cSrcweir #include <com/sun/star/drawing/NormalsKind.hpp> 27cdf0e10cSrcweir #include <com/sun/star/drawing/TextureProjectionMode.hpp> 28cdf0e10cSrcweir #include <com/sun/star/drawing/TextureKind2.hpp> 29cdf0e10cSrcweir #include <com/sun/star/drawing/TextureMode.hpp> 30cdf0e10cSrcweir 31cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 32cdf0e10cSrcweir // predefines 33cdf0e10cSrcweir 34cdf0e10cSrcweir namespace drawinglayer { namespace attribute { 35cdf0e10cSrcweir class ImpSdr3DObjectAttribute; 36cdf0e10cSrcweir class MaterialAttribute3D; 37cdf0e10cSrcweir }} 38cdf0e10cSrcweir 39cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 40cdf0e10cSrcweir 41cdf0e10cSrcweir namespace drawinglayer 42cdf0e10cSrcweir { 43cdf0e10cSrcweir namespace attribute 44cdf0e10cSrcweir { 45090f0eb8SEike Rathke class DRAWINGLAYER_DLLPUBLIC Sdr3DObjectAttribute 46cdf0e10cSrcweir { 47cdf0e10cSrcweir private: 48cdf0e10cSrcweir ImpSdr3DObjectAttribute* mpSdr3DObjectAttribute; 49cdf0e10cSrcweir 50cdf0e10cSrcweir public: 51cdf0e10cSrcweir // constructors/destructor 52cdf0e10cSrcweir Sdr3DObjectAttribute( 53cdf0e10cSrcweir ::com::sun::star::drawing::NormalsKind aNormalsKind, 54cdf0e10cSrcweir ::com::sun::star::drawing::TextureProjectionMode aTextureProjectionX, 55cdf0e10cSrcweir ::com::sun::star::drawing::TextureProjectionMode aTextureProjectionY, 56cdf0e10cSrcweir ::com::sun::star::drawing::TextureKind2 aTextureKind, 57cdf0e10cSrcweir ::com::sun::star::drawing::TextureMode aTextureMode, 58cdf0e10cSrcweir const MaterialAttribute3D& rMaterial, 59cdf0e10cSrcweir bool bNormalsInvert, 60cdf0e10cSrcweir bool bDoubleSided, 61cdf0e10cSrcweir bool bShadow3D, 62cdf0e10cSrcweir bool bTextureFilter, 63cdf0e10cSrcweir bool bReducedLineGeometry); 64cdf0e10cSrcweir Sdr3DObjectAttribute(); 65cdf0e10cSrcweir Sdr3DObjectAttribute(const Sdr3DObjectAttribute& rCandidate); 66cdf0e10cSrcweir ~Sdr3DObjectAttribute(); 67cdf0e10cSrcweir 68cdf0e10cSrcweir // assignment operator 69cdf0e10cSrcweir Sdr3DObjectAttribute& operator=(const Sdr3DObjectAttribute& rCandidate); 70cdf0e10cSrcweir 71cdf0e10cSrcweir // checks if the incarnation is default constructed 72cdf0e10cSrcweir bool isDefault() const; 73cdf0e10cSrcweir 74cdf0e10cSrcweir // compare operator 75cdf0e10cSrcweir bool operator==(const Sdr3DObjectAttribute& rCandidate) const; 76cdf0e10cSrcweir 77cdf0e10cSrcweir // data read access 78cdf0e10cSrcweir ::com::sun::star::drawing::NormalsKind getNormalsKind() const; 79cdf0e10cSrcweir ::com::sun::star::drawing::TextureProjectionMode getTextureProjectionX() const; 80cdf0e10cSrcweir ::com::sun::star::drawing::TextureProjectionMode getTextureProjectionY() const; 81cdf0e10cSrcweir ::com::sun::star::drawing::TextureKind2 getTextureKind() const; 82cdf0e10cSrcweir ::com::sun::star::drawing::TextureMode getTextureMode() const; 83cdf0e10cSrcweir const MaterialAttribute3D& getMaterial() const; 84cdf0e10cSrcweir bool getNormalsInvert() const; 85cdf0e10cSrcweir bool getDoubleSided() const; 86cdf0e10cSrcweir bool getShadow3D() const; 87cdf0e10cSrcweir bool getTextureFilter() const; 88cdf0e10cSrcweir bool getReducedLineGeometry() const; 89cdf0e10cSrcweir }; 90cdf0e10cSrcweir } // end of namespace attribute 91cdf0e10cSrcweir } // end of namespace drawinglayer 92cdf0e10cSrcweir 93cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 94cdf0e10cSrcweir 95cdf0e10cSrcweir #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDROBJECTATTRIBUTE3D_HXX 96cdf0e10cSrcweir 97cdf0e10cSrcweir // eof 98