build fix: no comphelper/profilezone.hxx in this branch
[LibreOffice.git] / include / drawinglayer / primitive3d / groupprimitive3d.hxx
blob3e07c86ed799d46fbce0449f6f9b350a5dcfc694
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_GROUPPRIMITIVE3D_HXX
21 #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_GROUPPRIMITIVE3D_HXX
23 #include <drawinglayer/drawinglayerdllapi.h>
25 #include <drawinglayer/primitive3d/baseprimitive3d.hxx>
28 namespace drawinglayer
30 namespace primitive3d
32 /** GroupPrimitive3D class
34 Baseclass for all grouping 3D primitives
36 The description/functionality is identical with the 2D case in groupprimitive2d.hxx,
37 please see there for detailed information.
39 Current Basic 3D StatePrimitives are:
41 - ModifiedColorPrimitive3D (for a stack of color modifications)
42 - ShadowPrimitive3D (for 3D objects with shadow; this is a special case
43 since the shadow of a 3D primitive is a 2D primitive set)
44 - TexturePrimitive3D (with the following variations)
45 - GradientTexturePrimitive3D (for 3D gradient fill)
46 - BitmapTexturePrimitive3D (for 3D Bitmap fill)
47 - TransparenceTexturePrimitive3D (for 3D transparence)
48 - HatchTexturePrimitive3D (for 3D hatch fill)
49 - TransformPrimitive3D (for a transformation stack)
51 class DRAWINGLAYER_DLLPUBLIC GroupPrimitive3D : public BasePrimitive3D
53 private:
54 /// the children. Declared private since this shall never be changed at all after construction
55 Primitive3DContainer maChildren;
57 public:
58 /// constructor
59 explicit GroupPrimitive3D(const Primitive3DContainer& rChildren);
61 /// data read access
62 const Primitive3DContainer& getChildren() const { return maChildren; }
64 /// compare operator
65 virtual bool operator==( const BasePrimitive3D& rPrimitive ) const override;
67 /// local decomposition. Implementation will just return children
68 virtual Primitive3DContainer get3DDecomposition(const geometry::ViewInformation3D& rViewInformation) const override;
70 /// provide unique ID
71 DeclPrimitive3DIDBlock()
73 } // end of namespace primitive3d
74 } // end of namespace drawinglayer
77 #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_GROUPPRIMITIVE3D_HXX
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */