LibreOffice Module chart2 (master) 1
PolarLabelPositionHelper.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#include <com/sun/star/awt/Point.hpp>
24
25namespace chart
26{
27
28class PolarPlottingPositionHelper;
29
31{
32public:
35 , sal_Int32 nDimensionCount
36 , const rtl::Reference<SvxShapeGroupAnyD>& xLogicTarget );
37 virtual ~PolarLabelPositionHelper() override;
38
40 LabelAlignment& rAlignment
41 , double fLogicValueOnAngleAxis
42 , double fLogicValueOnRadiusAxis
43 , double fLogicZ
44 , sal_Int32 nScreenValueOffsetInRadiusDirection ) const;
45
58 LabelAlignment& rAlignment, sal_Int32 nLabelPlacement /*see css::chart::DataLabelPlacement*/
59 , double fUnitCircleStartAngleDegree, double fUnitCircleWidthAngleDegree
60 , double fUnitCircleInnerRadius, double fUnitCircleOuterRadius
61 , double fLogicZ
62 , sal_Int32 nScreenValueOffsetInRadiusDirection ) const;
63
64private:
66};
67
68} //namespace chart
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
PolarLabelPositionHelper(PolarPlottingPositionHelper *pPosHelper, sal_Int32 nDimensionCount, const rtl::Reference< SvxShapeGroupAnyD > &xLogicTarget)
PolarPlottingPositionHelper * m_pPosHelper
css::awt::Point getLabelScreenPositionAndAlignmentForUnitCircleValues(LabelAlignment &rAlignment, sal_Int32 nLabelPlacement, double fUnitCircleStartAngleDegree, double fUnitCircleWidthAngleDegree, double fUnitCircleInnerRadius, double fUnitCircleOuterRadius, double fLogicZ, sal_Int32 nScreenValueOffsetInRadiusDirection) const
Calculate the anchor point position for a text label.
css::awt::Point getLabelScreenPositionAndAlignmentForLogicValues(LabelAlignment &rAlignment, double fLogicValueOnAngleAxis, double fLogicValueOnRadiusAxis, double fLogicZ, sal_Int32 nScreenValueOffsetInRadiusDirection) const