LibreOffice Module drawinglayer (master) 1
polygontubeprimitive3d.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
23
24
26 {
35 {
38
40 double mfRadius;
44 css::drawing::LineCap maLineCap;
45
51
54
55 public:
58 const basegfx::B3DPolygon& rPolygon,
59 const basegfx::BColor& rBColor,
60 double fRadius,
61 basegfx::B2DLineJoin aLineJoin,
62 css::drawing::LineCap aLineCap,
63 double fDegreeStepWidth = basegfx::deg2rad(10.0),
64 double fMiterMinimumAngle = basegfx::deg2rad(15.0));
65
67 double getRadius() const { return mfRadius; }
68 double getDegreeStepWidth() const { return mfDegreeStepWidth; }
69 double getMiterMinimumAngle() const { return mfMiterMinimumAngle; }
71 css::drawing::LineCap getLineCap() const { return maLineCap; }
72
74 virtual bool operator==(const BasePrimitive3D& rPrimitive) const override;
75
79 virtual Primitive3DContainer get3DDecomposition(const geometry::ViewInformation3D& rViewInformation) const override;
80
83 };
84
85} // end of namespace drawinglayer::primitive3d
86
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define DeclPrimitive3DIDBlock()
defines for DeclPrimitive3DIDBlock and ImplPrimitive3DIDBlock Added to be able to simply change ident...
PolygonTubePrimitive3D(const basegfx::B3DPolygon &rPolygon, const basegfx::BColor &rBColor, double fRadius, basegfx::B2DLineJoin aLineJoin, css::drawing::LineCap aLineCap, double fDegreeStepWidth=basegfx::deg2rad(10.0), double fMiterMinimumAngle=basegfx::deg2rad(15.0))
constructor
Primitive3DContainer maLast3DDecomposition
hold the last decomposition since it's expensive
virtual Primitive3DContainer get3DDecomposition(const geometry::ViewInformation3D &rViewInformation) const override
local decomposition.
virtual bool operator==(const BasePrimitive3D &rPrimitive) const override
compare operator
const Primitive3DContainer & getLast3DDecomposition() const
access methods to maLast3DDecomposition.
Primitive3DContainer impCreate3DDecomposition(const geometry::ViewInformation3D &rViewInformation) const
local decomposition.
constexpr double deg2rad(double v)
SdrPrimitive3D class.