fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / drawinglayer / primitive3d / polypolygonprimitive3d.hxx
blobcec15ed93b167deb3b43924badebce3f2dc5f38b
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_PRIMITIVE3D_POLYPOLYGONPRIMITIVE3D_HXX
21 #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_POLYPOLYGONPRIMITIVE3D_HXX
23 #include <drawinglayer/drawinglayerdllapi.h>
25 #include <drawinglayer/primitive3d/baseprimitive3d.hxx>
26 #include <basegfx/polygon/b3dpolypolygon.hxx>
27 #include <drawinglayer/attribute/materialattribute3d.hxx>
29 //////////////////////////////////////////////////////////////////////////////
31 namespace drawinglayer
33 namespace primitive3d
35 /** PolyPolygonMaterialPrimitive3D class
37 This primitive defines a planar 3D PolyPolygon filled with a single color.
38 This is one of the non-decomposable primitives, so a renderer
39 should proccess it.
41 It is assumed here that the PolyPolgon is a single plane in 3D.
43 class DRAWINGLAYER_DLLPUBLIC PolyPolygonMaterialPrimitive3D : public BasePrimitive3D
45 private:
46 /// the PolyPolygon geometry
47 basegfx::B3DPolyPolygon maPolyPolygon;
49 /// the fill parameters
50 attribute::MaterialAttribute3D maMaterial;
52 /// bitfield
53 unsigned mbDoubleSided : 1;
55 public:
56 /// constructor
57 PolyPolygonMaterialPrimitive3D(
58 const basegfx::B3DPolyPolygon& rPolyPolygon,
59 const attribute::MaterialAttribute3D& rMaterial,
60 bool bDoubleSided);
62 /// data read access
63 const basegfx::B3DPolyPolygon& getB3DPolyPolygon() const { return maPolyPolygon; }
64 const attribute::MaterialAttribute3D& getMaterial() const { return maMaterial; }
65 bool getDoubleSided() const { return mbDoubleSided; }
67 /// compare operator
68 virtual bool operator==(const BasePrimitive3D& rPrimitive) const;
70 /// get range
71 virtual basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& rViewInformation) const;
73 /// provide unique ID
74 DeclPrimitive3DIDBlock()
76 } // end of namespace primitive3d
77 } // end of namespace drawinglayer
79 //////////////////////////////////////////////////////////////////////////////
81 #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_POLYPOLYGONPRIMITIVE3D_HXX
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */