LCOV - code coverage report
Current view: top level - libreoffice/chart2/source/view/axes - VAxisOrGridBase.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 20 20 100.0 %
Date: 2012-12-27 Functions: 6 7 85.7 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      20             : 
      21             : #include "VAxisOrGridBase.hxx"
      22             : #include "ShapeFactory.hxx"
      23             : #include "CommonConverters.hxx"
      24             : #include "Tickmarks.hxx"
      25             : 
      26             : //.............................................................................
      27             : namespace chart
      28             : {
      29             : //.............................................................................
      30             : using namespace ::com::sun::star;
      31             : using namespace ::com::sun::star::chart2;
      32             : using ::com::sun::star::uno::Reference;
      33             : 
      34         164 : VAxisOrGridBase::VAxisOrGridBase( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount )
      35             :             : PlotterBase( nDimensionCount )
      36             :             , m_nDimensionIndex( nDimensionIndex )
      37             :             , m_eLeftWallPos(CuboidPlanePosition_Left)
      38             :             , m_eBackWallPos(CuboidPlanePosition_Back)
      39         164 :             , m_eBottomPos(CuboidPlanePosition_Bottom)
      40             : {
      41         164 : }
      42             : 
      43         164 : VAxisOrGridBase::~VAxisOrGridBase()
      44             : {
      45         164 : }
      46             : 
      47          82 : void VAxisOrGridBase::setExplicitScaleAndIncrement(
      48             :               const ExplicitScaleData& rScale
      49             :             , const ExplicitIncrementData& rIncrement )
      50             :             throw (uno::RuntimeException)
      51             : {
      52          82 :     m_aScale = rScale;
      53          82 :     m_aIncrement = rIncrement;
      54          82 : }
      55             : 
      56         902 : void VAxisOrGridBase::setTransformationSceneToScreen( const drawing::HomogenMatrix& rMatrix )
      57             : {
      58         902 :     m_aMatrixScreenToScene = HomogenMatrixToB3DHomMatrix(rMatrix);
      59         902 :     PlotterBase::setTransformationSceneToScreen( rMatrix);
      60         902 : }
      61             : 
      62         164 : void VAxisOrGridBase::set3DWallPositions( CuboidPlanePosition eLeftWallPos, CuboidPlanePosition eBackWallPos, CuboidPlanePosition eBottomPos )
      63             : {
      64         164 :     m_eLeftWallPos = eLeftWallPos;
      65         164 :     m_eBackWallPos = eBackWallPos;
      66         164 :     m_eBottomPos = eBottomPos;
      67         164 : }
      68             : 
      69          82 : TickFactory* VAxisOrGridBase::createTickFactory()
      70             : {
      71          82 :     return new TickFactory( m_aScale, m_aIncrement );
      72             : }
      73             : 
      74             : //.............................................................................
      75             : } //namespace chart
      76             : //.............................................................................
      77             : 
      78             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10