LibreOffice Module chart2 (master) 1
VPolarGrid.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#pragma once
20
21#include "VAxisOrGridBase.hxx"
22#include "Tickmarks.hxx"
23#include <com/sun/star/drawing/PointSequenceSequence.hpp>
24#include <memory>
25
26namespace chart { struct VLineProperties; }
27
28namespace chart
29{
30class GridProperties;
31class PolarPlottingPositionHelper;
32
34{
35// public methods
36public:
37 VPolarGrid( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount
38 , std::vector<
39 rtl::Reference< ::chart::GridProperties > > aGridPropertiesList //main grid, subgrid, subsubgrid etc
40 );
41 virtual ~VPolarGrid() override;
42
43 virtual void createShapes() override;
44
45 void setIncrements( std::vector< ExplicitIncrementData >&& rIncrements );
46
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 );
54
55private: //member
56 std::vector<
58 std::unique_ptr<PolarPlottingPositionHelper> m_pPosHelper;
59 std::vector< ExplicitIncrementData > m_aIncrements;
60
61 void getAllTickInfos( sal_Int32 nDimensionIndex, TickInfoArraysType& rAllTickInfos ) const;
62
64 , TickInfoArraysType& rRadiusTickInfos
65 , TickInfoArraysType& rAngleTickInfos
66 , const std::vector<VLineProperties>& rLinePropertiesList );
67};
68
69} //namespace chart
70
71/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static void createLinePointSequence_ForAngleAxis(css::drawing::PointSequenceSequence &rPoints, TickInfoArraysType &rAllTickInfos, const ExplicitIncrementData &rIncrement, const ExplicitScaleData &rScale, PolarPlottingPositionHelper const *pPosHelper, double fLogicRadius, double fLogicZ)
Definition: VPolarGrid.cxx:66
std::unique_ptr< PolarPlottingPositionHelper > m_pPosHelper
Definition: VPolarGrid.hxx:58
std::vector< ExplicitIncrementData > m_aIncrements
Definition: VPolarGrid.hxx:59
VPolarGrid(sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount, std::vector< rtl::Reference< ::chart::GridProperties > > aGridPropertiesList)
Definition: VPolarGrid.cxx:41
virtual ~VPolarGrid() override
Definition: VPolarGrid.cxx:50
void create2DRadiusGrid(const rtl::Reference< SvxShapeGroupAnyD > &xLogicTarget, TickInfoArraysType &rRadiusTickInfos, TickInfoArraysType &rAngleTickInfos, const std::vector< VLineProperties > &rLinePropertiesList)
Definition: VPolarGrid.cxx:158
void getAllTickInfos(sal_Int32 nDimensionIndex, TickInfoArraysType &rAllTickInfos) const
Definition: VPolarGrid.cxx:59
std::vector< rtl::Reference< ::chart::GridProperties > > m_aGridPropertiesList
Definition: VPolarGrid.hxx:57
void setIncrements(std::vector< ExplicitIncrementData > &&rIncrements)
Definition: VPolarGrid.cxx:54
virtual void createShapes() override
Definition: VPolarGrid.cxx:219
std::vector< TickInfoArrayType > TickInfoArraysType
Definition: Tickmarks.hxx:59
describes how tickmarks are positioned on the scale of an axis.
This structure contains the explicit values for a scale like Minimum and Maximum.