LibreOffice Module drawinglayer (master) 1
textureprimitive3d.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
26
27
29 {
37 {
38 private:
41
43 bool mbModulate : 1;
44
46 bool mbFilter : 1;
47
48 public:
51 const Primitive3DContainer& rChildren,
52 const basegfx::B2DVector& rTextureSize,
53 bool bModulate,
54 bool bFilter);
55
58 bool getModulate() const { return mbModulate; }
59 bool getFilter() const { return mbFilter; }
60
62 virtual bool operator==(const BasePrimitive3D& rPrimitive) const override;
63 };
64
65} // end of namespace drawinglayer::primitive3d
66
67
69 {
77 {
78 private:
81
82 public:
85 double fTransparence,
86 const Primitive3DContainer& rChildren);
87
89 double getTransparence() const { return mfTransparence; }
90
92 virtual bool operator==(const BasePrimitive3D& rPrimitive) const override;
93
95 virtual basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& rViewInformation) const override;
96
98 virtual Primitive3DContainer get3DDecomposition(const geometry::ViewInformation3D& rViewInformation) const override;
99
102 };
103
104} // end of namespace drawinglayer::primitive3d
105
106
108 {
116 {
117 private:
120
121 public:
125 const Primitive3DContainer& rChildren,
126 const basegfx::B2DVector& rTextureSize,
127 bool bModulate,
128 bool bFilter);
129
132
134 virtual bool operator==(const BasePrimitive3D& rPrimitive) const override;
135
138 };
139
140} // end of namespace drawinglayer::primitive3d
141
142
144 {
152 {
153 private:
156
157 public:
160 const attribute::FillGraphicAttribute& rFillGraphicAttribute,
161 const Primitive3DContainer& rChildren,
162 const basegfx::B2DVector& rTextureSize,
163 bool bModulate,
164 bool bFilter);
165
168
170 virtual bool operator==(const BasePrimitive3D& rPrimitive) const override;
171
174 };
175
176} // end of namespace drawinglayer::primitive3d
177
178
180 {
189 {
190 public:
193 const attribute::FillGradientAttribute& rGradient,
194 const Primitive3DContainer& rChildren,
195 const basegfx::B2DVector& rTextureSize);
196
198 virtual bool operator==(const BasePrimitive3D& rPrimitive) const override;
199
202 };
203
204} // end of namespace drawinglayer::primitive3d
205
206
207/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define DeclPrimitive3DIDBlock()
defines for DeclPrimitive3DIDBlock and ImplPrimitive3DIDBlock Added to be able to simply change ident...
BitmapTexturePrimitive3D(const attribute::FillGraphicAttribute &rFillGraphicAttribute, const Primitive3DContainer &rChildren, const basegfx::B2DVector &rTextureSize, bool bModulate, bool bFilter)
constructor
attribute::FillGraphicAttribute maFillGraphicAttribute
bitmap fill attribute
const attribute::FillGraphicAttribute & getFillGraphicAttribute() const
data read access
virtual bool operator==(const BasePrimitive3D &rPrimitive) const override
compare operator
GradientTexturePrimitive3D(attribute::FillGradientAttribute aGradient, const Primitive3DContainer &rChildren, const basegfx::B2DVector &rTextureSize, bool bModulate, bool bFilter)
constructor
attribute::FillGradientAttribute maGradient
the gradient definition
const attribute::FillGradientAttribute & getGradient() const
data read access
virtual bool operator==(const BasePrimitive3D &rPrimitive) const override
compare operator
bool mbFilter
flag if texture shall be filtered
const basegfx::B2DVector & getTextureSize() const
data read access
TexturePrimitive3D(const Primitive3DContainer &rChildren, const basegfx::B2DVector &rTextureSize, bool bModulate, bool bFilter)
constructor
basegfx::B2DVector maTextureSize
texture geometry definition
virtual bool operator==(const BasePrimitive3D &rPrimitive) const override
compare operator
bool mbModulate
flag if texture shall be modulated with white interpolated color
TransparenceTexturePrimitive3D(const attribute::FillGradientAttribute &rGradient, const Primitive3DContainer &rChildren, const basegfx::B2DVector &rTextureSize)
constructor
virtual bool operator==(const BasePrimitive3D &rPrimitive) const override
compare operator
virtual basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D &rViewInformation) const override
own getB3DRange implementation to include transparent geometries to BoundRect calculations
UnifiedTransparenceTexturePrimitive3D(double fTransparence, const Primitive3DContainer &rChildren)
constructor
virtual bool operator==(const BasePrimitive3D &rPrimitive) const override
compare operator
virtual Primitive3DContainer get3DDecomposition(const geometry::ViewInformation3D &rViewInformation) const override
local decomposition.
SdrPrimitive3D class.