LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/drawinglayer/primitive3d - polygontubeprimitive3d.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 7 0.0 %
Date: 2012-08-25 Functions: 0 8 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 4 0.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_POLYGONTUBEPRIMITIVE3D_HXX
      30                 :            : #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_POLYGONTUBEPRIMITIVE3D_HXX
      31                 :            : 
      32                 :            : #include <drawinglayer/drawinglayerdllapi.h>
      33                 :            : 
      34                 :            : #include <drawinglayer/primitive3d/polygonprimitive3d.hxx>
      35                 :            : 
      36                 :            : //////////////////////////////////////////////////////////////////////////////
      37                 :            : // predefines
      38                 :            : 
      39                 :            : namespace basegfx {
      40                 :            :     class B3DPolyPolygon;
      41                 :            :     class B3DHomMatrix;
      42                 :            : }
      43                 :            : 
      44                 :            : //////////////////////////////////////////////////////////////////////////////
      45                 :            : 
      46                 :            : namespace drawinglayer
      47                 :            : {
      48                 :            :     namespace primitive3d
      49                 :            :     {
      50                 :            :         /** PolygonStrokePrimitive3D class
      51                 :            : 
      52                 :            :             This 3D primitive extends a 3D hairline to a 3D tube which is
      53                 :            :             e.g. used for fat lines in 3D. It's decomposition will create all
      54                 :            :             3D objects needed for the line tubes and the edge roundings
      55                 :            :             in full 3D.
      56                 :            :          */
      57 [ #  # ][ #  # ]:          0 :         class DRAWINGLAYER_DLLPUBLIC PolygonTubePrimitive3D : public PolygonHairlinePrimitive3D
      58                 :            :         {
      59                 :            :         private:
      60                 :            :             /// hold the last decompositon since it's expensive
      61                 :            :             Primitive3DSequence                         maLast3DDecomposition;
      62                 :            : 
      63                 :            :             /// visualisation parameters
      64                 :            :             double                                      mfRadius;
      65                 :            :             double                                      mfDegreeStepWidth;
      66                 :            :             double                                      mfMiterMinimumAngle;
      67                 :            :             basegfx::B2DLineJoin                        maLineJoin;
      68                 :            : 
      69                 :            :         protected:
      70                 :            :             /** access methods to maLast3DDecomposition. The usage of this methods may allow
      71                 :            :                 later thread-safe stuff to be added if needed. Only to be used by getDecomposition()
      72                 :            :                 implementations for buffering the last decomposition.
      73                 :            :              */
      74                 :          0 :             const Primitive3DSequence& getLast3DDecomposition() const { return maLast3DDecomposition; }
      75                 :          0 :             void setLast3DDecomposition(const Primitive3DSequence& rNew) { maLast3DDecomposition = rNew; }
      76                 :            : 
      77                 :            :             /// local decomposition.
      78                 :            :             Primitive3DSequence impCreate3DDecomposition(const geometry::ViewInformation3D& rViewInformation) const;
      79                 :            : 
      80                 :            :         public:
      81                 :            :             /// constructor
      82                 :            :             PolygonTubePrimitive3D(
      83                 :            :                 const basegfx::B3DPolygon& rPolygon,
      84                 :            :                 const basegfx::BColor& rBColor,
      85                 :            :                 double fRadius, basegfx::B2DLineJoin aLineJoin,
      86                 :            :                 double fDegreeStepWidth = 10.0 * F_PI180,
      87                 :            :                 double fMiterMinimumAngle = 15.0 * F_PI180);
      88                 :            : 
      89                 :            :             /// data read access
      90                 :          0 :             double getRadius() const { return mfRadius; }
      91                 :          0 :             double getDegreeStepWidth() const { return mfDegreeStepWidth; }
      92                 :          0 :             double getMiterMinimumAngle() const { return mfMiterMinimumAngle; }
      93                 :          0 :             basegfx::B2DLineJoin getLineJoin() const { return maLineJoin; }
      94                 :            : 
      95                 :            :             /// compare operator
      96                 :            :             virtual bool operator==(const BasePrimitive3D& rPrimitive) const;
      97                 :            : 
      98                 :            :             /** local decomposition. Use own buffering since we are not derived from
      99                 :            :                 BufferedDecompositionPrimitive3D
     100                 :            :              */
     101                 :            :             virtual Primitive3DSequence get3DDecomposition(const geometry::ViewInformation3D& rViewInformation) const;
     102                 :            : 
     103                 :            :             /// provide unique ID
     104                 :            :             DeclPrimitrive3DIDBlock()
     105                 :            :         };
     106                 :            :     } // end of namespace primitive3d
     107                 :            : } // end of namespace drawinglayer
     108                 :            : 
     109                 :            : //////////////////////////////////////////////////////////////////////////////
     110                 :            : 
     111                 :            : #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_POLYGONTUBEPRIMITIVE3D_HXX
     112                 :            : 
     113                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10