LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/drawinglayer/primitive3d - sdrprimitive3d.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 5 5 100.0 %
Date: 2012-08-25 Functions: 5 6 83.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 4 8 50.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRPRIMITIVE3D_HXX
      30                 :            : #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRPRIMITIVE3D_HXX
      31                 :            : 
      32                 :            : #include <drawinglayer/drawinglayerdllapi.h>
      33                 :            : 
      34                 :            : #include <drawinglayer/primitive3d/baseprimitive3d.hxx>
      35                 :            : #include <basegfx/matrix/b3dhommatrix.hxx>
      36                 :            : #include <basegfx/vector/b2dvector.hxx>
      37                 :            : #include <drawinglayer/attribute/sdrallattribute3d.hxx>
      38                 :            : #include <drawinglayer/primitive3d/sdrextrudelathetools3d.hxx>
      39                 :            : #include <drawinglayer/attribute/sdrobjectattribute3d.hxx>
      40                 :            : 
      41                 :            : //////////////////////////////////////////////////////////////////////////////
      42                 :            : 
      43                 :            : namespace drawinglayer
      44                 :            : {
      45                 :            :     /** SdrPrimitive3D class
      46                 :            : 
      47                 :            :         Base class for the more complicated geometric primitives, so
      48                 :            :         derive from buffered primitive to allow overloading of
      49                 :            :         create3DDecomposition there.
      50                 :            :      */
      51                 :            :     namespace primitive3d
      52                 :            :     {
      53 [ +  - ][ +  - ]:      13391 :         class DRAWINGLAYER_DLLPUBLIC SdrPrimitive3D : public BufferedDecompositionPrimitive3D
         [ +  - ][ -  + ]
      54                 :            :         {
      55                 :            :         private:
      56                 :            :             /// object surface attributes
      57                 :            :             basegfx::B3DHomMatrix                       maTransform;
      58                 :            :             basegfx::B2DVector                          maTextureSize;
      59                 :            :             attribute::SdrLineFillShadowAttribute3D     maSdrLFSAttribute;
      60                 :            :             attribute::Sdr3DObjectAttribute             maSdr3DObjectAttribute;
      61                 :            : 
      62                 :            :         protected:
      63                 :            :             /** Standard implementation for primitive3D which
      64                 :            :                 will use maTransform as range and expand by evtl. line width / 2
      65                 :            :              */
      66                 :            :             basegfx::B3DRange getStandard3DRange() const;
      67                 :            : 
      68                 :            :             /** implementation for primitive3D which
      69                 :            :                 will use given Slice3Ds and expand by evtl. line width / 2
      70                 :            :              */
      71                 :            :             basegfx::B3DRange get3DRangeFromSlices(const Slice3DVector& rSlices) const;
      72                 :            : 
      73                 :            :         public:
      74                 :            :             /// constructor
      75                 :            :             SdrPrimitive3D(
      76                 :            :                 const basegfx::B3DHomMatrix& rTransform,
      77                 :            :                 const basegfx::B2DVector& rTextureSize,
      78                 :            :                 const attribute::SdrLineFillShadowAttribute3D& rSdrLFSAttribute,
      79                 :            :                 const attribute::Sdr3DObjectAttribute& rSdr3DObjectAttribute);
      80                 :            : 
      81                 :            :             /// data read access
      82                 :      36288 :             const basegfx::B3DHomMatrix& getTransform() const { return maTransform; }
      83                 :      23496 :             const basegfx::B2DVector& getTextureSize() const { return maTextureSize; }
      84                 :      41509 :             const attribute::SdrLineFillShadowAttribute3D& getSdrLFSAttribute() const { return maSdrLFSAttribute; }
      85                 :      23786 :             const attribute::Sdr3DObjectAttribute getSdr3DObjectAttribute() const { return maSdr3DObjectAttribute; }
      86                 :            : 
      87                 :            :             /// compare operator
      88                 :            :             virtual bool operator==(const BasePrimitive3D& rPrimitive) const;
      89                 :            :         };
      90                 :            :     } // end of namespace primitive3d
      91                 :            : } // end of namespace drawinglayer
      92                 :            : 
      93                 :            : //////////////////////////////////////////////////////////////////////////////
      94                 :            : 
      95                 :            : #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRPRIMITIVE3D_HXX
      96                 :            : 
      97                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10