update dev300-m58
[ooovba.git] / chart2 / source / view / axes / VPolarGrid.hxx
blobd6164d1d4966095df3c20f9f923e2e1ad68587b5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: VPolarGrid.hxx,v $
10 * $Revision: 1.5.44.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _CHART2_VPOLARGRID_HXX
31 #define _CHART2_VPOLARGRID_HXX
33 #include "VAxisOrGridBase.hxx"
34 #include "TickmarkHelper.hxx"
35 #include "VLineProperties.hxx"
36 #include <com/sun/star/drawing/PointSequenceSequence.hpp>
38 //.............................................................................
39 namespace chart
41 //.............................................................................
43 //-----------------------------------------------------------------------------
44 /**
46 class PolarPlottingPositionHelper;
48 class VPolarGrid : public VAxisOrGridBase
50 //-------------------------------------------------------------------------
51 // public methods
52 //-------------------------------------------------------------------------
53 public:
54 VPolarGrid( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount
55 , const ::com::sun::star::uno::Sequence<
56 ::com::sun::star::uno::Reference<
57 ::com::sun::star::beans::XPropertySet > > & rGridPropertiesList //main grid, subgrid, subsubgrid etc
59 virtual ~VPolarGrid();
61 virtual void SAL_CALL createShapes();
63 void setIncrements( const ::com::sun::star::uno::Sequence<
64 ::com::sun::star::chart2::ExplicitIncrementData >& rIncrements );
66 static void createLinePointSequence_ForAngleAxis(
67 ::com::sun::star::drawing::PointSequenceSequence& rPoints
68 , ::std::vector< ::std::vector< TickInfo > >& rAllTickInfos
69 , const ::com::sun::star::chart2::ExplicitIncrementData& rIncrement
70 , const ::com::sun::star::chart2::ExplicitScaleData& rScale
71 , PolarPlottingPositionHelper* pPosHelper
72 , double fLogicRadius, double fLogicZ );
74 private: //member
75 ::com::sun::star::uno::Sequence<
76 ::com::sun::star::uno::Reference<
77 ::com::sun::star::beans::XPropertySet > > m_aGridPropertiesList;//main grid, subgrid, subsubgrid etc
78 PolarPlottingPositionHelper* m_pPosHelper;
79 ::com::sun::star::uno::Sequence<
80 ::com::sun::star::chart2::ExplicitIncrementData > m_aIncrements;
82 void getAllTickInfos( sal_Int32 nDimensionIndex, ::std::vector< ::std::vector< TickInfo > >& rAllTickInfos ) const;
84 void create2DRadiusGrid( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xLogicTarget
85 , ::std::vector< ::std::vector< TickInfo > >& rRadiusTickInfos
86 , ::std::vector< ::std::vector< TickInfo > >& rAngleTickInfos
87 , const ::std::vector<VLineProperties>& rLinePropertiesList );
88 #if NOTYET
89 void create2DAngleGrid( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xLogicTarget
90 , ::std::vector< ::std::vector< TickInfo > >& rRadiusTickInfos
91 , ::std::vector< ::std::vector< TickInfo > >& rAngleTickInfos
92 , const ::std::vector<VLineProperties>& rLinePropertiesList );
93 #endif
96 //.............................................................................
97 } //namespace chart
98 //.............................................................................
99 #endif