tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / view / axes / VPolarGrid.hxx
blob5c0a21bb47339fdedb41445d10bcc6bcfa084f0a
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 .
19 #pragma once
21 #include "VAxisOrGridBase.hxx"
22 #include "Tickmarks.hxx"
23 #include <PlottingPositionHelper.hxx>
24 #include <com/sun/star/drawing/PointSequenceSequence.hpp>
25 #include <memory>
27 namespace chart { struct VLineProperties; }
29 namespace chart
31 class GridProperties;
33 class VPolarGrid : public VAxisOrGridBase
35 // public methods
36 public:
37 VPolarGrid( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount
38 , std::vector<
39 rtl::Reference< ::chart::GridProperties > > aGridPropertiesList //main grid, subgrid, subsubgrid etc
41 virtual ~VPolarGrid() override;
43 virtual void createShapes() override;
45 void setIncrements( std::vector< ExplicitIncrementData >&& rIncrements );
47 static void createLinePointSequence_ForAngleAxis(
48 css::drawing::PointSequenceSequence& rPoints
49 , TickInfoArraysType& rAllTickInfos
50 , const ExplicitIncrementData& rIncrement
51 , const ExplicitScaleData& rScale
52 , PolarPlottingPositionHelper const * pPosHelper
53 , double fLogicRadius, double fLogicZ );
55 private: //member
56 std::vector<
57 rtl::Reference< ::chart::GridProperties > > m_aGridPropertiesList;//main grid, subgrid, subsubgrid etc
58 PolarPlottingPositionHelper m_aPosHelper;
59 std::vector< ExplicitIncrementData > m_aIncrements;
61 void getAllTickInfos( sal_Int32 nDimensionIndex, TickInfoArraysType& rAllTickInfos ) const;
63 void create2DRadiusGrid( const rtl::Reference<SvxShapeGroupAnyD>& xLogicTarget
64 , TickInfoArraysType& rRadiusTickInfos
65 , TickInfoArraysType& rAngleTickInfos
66 , const std::vector<VLineProperties>& rLinePropertiesList );
69 } //namespace chart
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */