1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
32 class PolarPlottingPositionHelper
;
34 class VPolarGrid
: public VAxisOrGridBase
38 VPolarGrid( sal_Int32 nDimensionIndex
, sal_Int32 nDimensionCount
39 , const ::com::sun::star::uno::Sequence
<
40 ::com::sun::star::uno::Reference
<
41 ::com::sun::star::beans::XPropertySet
> > & rGridPropertiesList
//main grid, subgrid, subsubgrid etc
43 virtual ~VPolarGrid();
45 virtual void createShapes() SAL_OVERRIDE
;
47 void setIncrements( const std::vector
< ExplicitIncrementData
>& rIncrements
);
49 static void createLinePointSequence_ForAngleAxis(
50 ::com::sun::star::drawing::PointSequenceSequence
& rPoints
51 , TickInfoArraysType
& rAllTickInfos
52 , const ExplicitIncrementData
& rIncrement
53 , const ExplicitScaleData
& rScale
54 , PolarPlottingPositionHelper
* pPosHelper
55 , double fLogicRadius
, double fLogicZ
);
58 ::com::sun::star::uno::Sequence
<
59 ::com::sun::star::uno::Reference
<
60 ::com::sun::star::beans::XPropertySet
> > m_aGridPropertiesList
;//main grid, subgrid, subsubgrid etc
61 PolarPlottingPositionHelper
* m_pPosHelper
;
62 ::std::vector
< ExplicitIncrementData
> m_aIncrements
;
64 void getAllTickInfos( sal_Int32 nDimensionIndex
, TickInfoArraysType
& rAllTickInfos
) const;
66 void create2DRadiusGrid( const css::uno::Reference
<css::drawing::XShapes
>& xLogicTarget
67 , TickInfoArraysType
& rRadiusTickInfos
68 , TickInfoArraysType
& rAngleTickInfos
69 , const ::std::vector
<VLineProperties
>& rLinePropertiesList
);
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */