Branch libreoffice-5-0-4
[LibreOffice.git] / include / drawinglayer / attribute / sdrobjectattribute3d.hxx
blob872823505de72117c7cc4b079b1cbb1df77f57f3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDROBJECTATTRIBUTE3D_HXX
21 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDROBJECTATTRIBUTE3D_HXX
23 #include <drawinglayer/drawinglayerdllapi.h>
25 #include <com/sun/star/drawing/NormalsKind.hpp>
26 #include <com/sun/star/drawing/TextureProjectionMode.hpp>
27 #include <com/sun/star/drawing/TextureKind2.hpp>
28 #include <com/sun/star/drawing/TextureMode.hpp>
29 #include <o3tl/cow_wrapper.hxx>
32 // predefines
34 namespace drawinglayer { namespace attribute {
35 class ImpSdr3DObjectAttribute;
36 class MaterialAttribute3D;
41 namespace drawinglayer
43 namespace attribute
45 class DRAWINGLAYER_DLLPUBLIC Sdr3DObjectAttribute
47 public:
48 typedef o3tl::cow_wrapper< ImpSdr3DObjectAttribute > ImplType;
50 private:
51 ImplType mpSdr3DObjectAttribute;
53 public:
54 // constructors/destructor
55 Sdr3DObjectAttribute(
56 ::com::sun::star::drawing::NormalsKind aNormalsKind,
57 ::com::sun::star::drawing::TextureProjectionMode aTextureProjectionX,
58 ::com::sun::star::drawing::TextureProjectionMode aTextureProjectionY,
59 ::com::sun::star::drawing::TextureKind2 aTextureKind,
60 ::com::sun::star::drawing::TextureMode aTextureMode,
61 const MaterialAttribute3D& rMaterial,
62 bool bNormalsInvert,
63 bool bDoubleSided,
64 bool bShadow3D,
65 bool bTextureFilter,
66 bool bReducedLineGeometry);
67 Sdr3DObjectAttribute(const Sdr3DObjectAttribute& rCandidate);
68 ~Sdr3DObjectAttribute();
70 // assignment operator
71 Sdr3DObjectAttribute& operator=(const Sdr3DObjectAttribute& rCandidate);
73 // checks if the incarnation is default constructed
74 bool isDefault() const;
76 // compare operator
77 bool operator==(const Sdr3DObjectAttribute& rCandidate) const;
79 // data read access
80 ::com::sun::star::drawing::NormalsKind getNormalsKind() const;
81 ::com::sun::star::drawing::TextureProjectionMode getTextureProjectionX() const;
82 ::com::sun::star::drawing::TextureProjectionMode getTextureProjectionY() const;
83 ::com::sun::star::drawing::TextureKind2 getTextureKind() const;
84 ::com::sun::star::drawing::TextureMode getTextureMode() const;
85 const MaterialAttribute3D& getMaterial() const;
86 bool getNormalsInvert() const;
87 bool getDoubleSided() const;
88 bool getShadow3D() const;
89 bool getTextureFilter() const;
90 bool getReducedLineGeometry() const;
92 } // end of namespace attribute
93 } // end of namespace drawinglayer
97 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDROBJECTATTRIBUTE3D_HXX
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */