1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
34 namespace drawinglayer::attribute
{
35 class ImpSdr3DObjectAttribute
;
36 class MaterialAttribute3D
;
40 namespace drawinglayer::attribute
42 class DRAWINGLAYER_DLLPUBLIC Sdr3DObjectAttribute
45 typedef o3tl::cow_wrapper
< ImpSdr3DObjectAttribute
> ImplType
;
48 ImplType mpSdr3DObjectAttribute
;
51 // constructors/destructor
53 css::drawing::NormalsKind aNormalsKind
,
54 css::drawing::TextureProjectionMode aTextureProjectionX
,
55 css::drawing::TextureProjectionMode aTextureProjectionY
,
56 css::drawing::TextureKind2 aTextureKind
,
57 css::drawing::TextureMode aTextureMode
,
58 const MaterialAttribute3D
& rMaterial
,
63 bool bReducedLineGeometry
);
64 Sdr3DObjectAttribute(const Sdr3DObjectAttribute
&);
65 ~Sdr3DObjectAttribute();
67 // assignment operator
68 Sdr3DObjectAttribute
& operator=(const Sdr3DObjectAttribute
&);
71 bool operator==(const Sdr3DObjectAttribute
& rCandidate
) const;
74 css::drawing::NormalsKind
getNormalsKind() const;
75 css::drawing::TextureProjectionMode
getTextureProjectionX() const;
76 css::drawing::TextureProjectionMode
getTextureProjectionY() const;
77 css::drawing::TextureKind2
getTextureKind() const;
78 css::drawing::TextureMode
getTextureMode() const;
79 const MaterialAttribute3D
& getMaterial() const;
80 bool getNormalsInvert() const;
81 bool getDoubleSided() const;
82 bool getShadow3D() const;
83 bool getTextureFilter() const;
84 bool getReducedLineGeometry() const;
87 } // end of namespace drawinglayer::attribute
90 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDROBJECTATTRIBUTE3D_HXX
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */