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                 throw (::com::sun::star::uno::RuntimeException);
57     void set3DWallPositions( CuboidPlanePosition eLeftWallPos, CuboidPlanePosition eBackWallPos, CuboidPlanePosition eBottomPos );
58 
59     virtual TickFactory* createTickFactory();
60 
61     //-------------------------------------------------------------------------
62     //-------------------------------------------------------------------------
63 protected: //member
64     ExplicitScaleData       m_aScale;
65     ExplicitIncrementData   m_aIncrement;
66     sal_Int32               m_nDimensionIndex;
67 
68     ::basegfx::B3DHomMatrix m_aMatrixScreenToScene;
69 
70     CuboidPlanePosition m_eLeftWallPos;
71     CuboidPlanePosition m_eBackWallPos;
72     CuboidPlanePosition m_eBottomPos;
73 };
74 
75 //.............................................................................
76 } //namespace chart
77 //.............................................................................
78 #endif
79