LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/chart2/source/view/axes - VAxisOrGridBase.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 20 20 100.0 %
Date: 2013-07-09 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        2088 : 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        2088 :             , m_eBottomPos(CuboidPlanePosition_Bottom)
      40             : {
      41        2088 : }
      42             : 
      43        2088 : VAxisOrGridBase::~VAxisOrGridBase()
      44             : {
      45        2088 : }
      46             : 
      47        1044 : void VAxisOrGridBase::setExplicitScaleAndIncrement(
      48             :               const ExplicitScaleData& rScale
      49             :             , const ExplicitIncrementData& rIncrement )
      50             :             throw (uno::RuntimeException)
      51             : {
      52        1044 :     m_aScale = rScale;
      53        1044 :     m_aIncrement = rIncrement;
      54        1044 : }
      55             : 
      56       10870 : void VAxisOrGridBase::setTransformationSceneToScreen( const drawing::HomogenMatrix& rMatrix )
      57             : {
      58       10870 :     m_aMatrixScreenToScene = HomogenMatrixToB3DHomMatrix(rMatrix);
      59       10870 :     PlotterBase::setTransformationSceneToScreen( rMatrix);
      60       10870 : }
      61             : 
      62        2088 : void VAxisOrGridBase::set3DWallPositions( CuboidPlanePosition eLeftWallPos, CuboidPlanePosition eBackWallPos, CuboidPlanePosition eBottomPos )
      63             : {
      64        2088 :     m_eLeftWallPos = eLeftWallPos;
      65        2088 :     m_eBackWallPos = eBackWallPos;
      66        2088 :     m_eBottomPos = eBottomPos;
      67        2088 : }
      68             : 
      69        1044 : TickFactory* VAxisOrGridBase::createTickFactory()
      70             : {
      71        1044 :     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