Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / chart2 / source / view / axes / VPolarGrid.hxx
blob8f327085306277241ceda9371256160d3f045215
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 #ifndef INCLUDED_CHART2_SOURCE_VIEW_AXES_VPOLARGRID_HXX
20 #define INCLUDED_CHART2_SOURCE_VIEW_AXES_VPOLARGRID_HXX
22 #include "VAxisOrGridBase.hxx"
23 #include "Tickmarks.hxx"
24 #include <VLineProperties.hxx>
25 #include <com/sun/star/drawing/PointSequenceSequence.hpp>
26 #include <memory>
28 namespace chart
31 class PolarPlottingPositionHelper;
33 class VPolarGrid : public VAxisOrGridBase
35 // public methods
36 public:
37 VPolarGrid( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount
38 , const css::uno::Sequence<
39 css::uno::Reference< css::beans::XPropertySet > > & rGridPropertiesList //main grid, subgrid, subsubgrid etc
41 virtual ~VPolarGrid() override;
43 virtual void createShapes() override;
45 void setIncrements( const 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 css::uno::Sequence<
57 css::uno::Reference< css::beans::XPropertySet > > m_aGridPropertiesList;//main grid, subgrid, subsubgrid etc
58 std::unique_ptr<PolarPlottingPositionHelper> m_pPosHelper;
59 std::vector< ExplicitIncrementData > m_aIncrements;
61 void getAllTickInfos( sal_Int32 nDimensionIndex, TickInfoArraysType& rAllTickInfos ) const;
63 void create2DRadiusGrid( const css::uno::Reference<css::drawing::XShapes>& xLogicTarget
64 , TickInfoArraysType& rRadiusTickInfos
65 , TickInfoArraysType& rAngleTickInfos
66 , const std::vector<VLineProperties>& rLinePropertiesList );
69 } //namespace chart
70 #endif
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */