xref: /trunk/main/chart2/source/view/axes/VAxisOrGridBase.hxx (revision 9c15e1abd703a7953928d7a80655ae1a76a41f6d)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _CHART2_VAXISORGRIDBASE_HXX
24 #define _CHART2_VAXISORGRIDBASE_HXX
25 
26 #include "PlotterBase.hxx"
27 #include "ThreeDHelper.hxx"
28 #include "chartview/ExplicitScaleValues.hxx"
29 
30 #include <com/sun/star/drawing/HomogenMatrix.hpp>
31 #include <com/sun/star/drawing/XShapes.hpp>
32 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
33 #include <basegfx/matrix/b3dhommatrix.hxx>
34 
35 //.............................................................................
36 namespace chart
37 {
38 //.............................................................................
39 
40 //-----------------------------------------------------------------------------
41 /**
42 */
43 class ShapeFactory;
44 class TickFactory;
45 
46 class VAxisOrGridBase : public PlotterBase
47 {
48 public:
49     VAxisOrGridBase( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount );
50     virtual ~VAxisOrGridBase();
51 
52     virtual void setTransformationSceneToScreen( const ::com::sun::star::drawing::HomogenMatrix& rMatrix );
53     virtual void setExplicitScaleAndIncrement(
54             const ExplicitScaleData& rScale
55           , const ExplicitIncrementData& rIncrement );
56     void set3DWallPositions( CuboidPlanePosition eLeftWallPos, CuboidPlanePosition eBackWallPos, CuboidPlanePosition eBottomPos );
57 
58     virtual TickFactory* createTickFactory();
59 
60     //-------------------------------------------------------------------------
61     //-------------------------------------------------------------------------
62 protected: //member
63     ExplicitScaleData       m_aScale;
64     ExplicitIncrementData   m_aIncrement;
65     sal_Int32               m_nDimensionIndex;
66 
67     ::basegfx::B3DHomMatrix m_aMatrixScreenToScene;
68 
69     CuboidPlanePosition m_eLeftWallPos;
70     CuboidPlanePosition m_eBackWallPos;
71     CuboidPlanePosition m_eBottomPos;
72 };
73 
74 //.............................................................................
75 } //namespace chart
76 //.............................................................................
77 #endif
78