LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/drawinglayer/primitive2d - pointarrayprimitive2d.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 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_PRIMITIVE2D_POINTARRAYPRIMITIVE2D_HXX
      30                 :            : #define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_POINTARRAYPRIMITIVE2D_HXX
      31                 :            : 
      32                 :            : #include <drawinglayer/drawinglayerdllapi.h>
      33                 :            : 
      34                 :            : #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
      35                 :            : #include <basegfx/color/bcolor.hxx>
      36                 :            : 
      37                 :            : //////////////////////////////////////////////////////////////////////////////
      38                 :            : // PointArrayPrimitive2D class
      39                 :            : 
      40                 :            : namespace drawinglayer
      41                 :            : {
      42                 :            :     namespace primitive2d
      43                 :            :     {
      44                 :            :         /** PointArrayPrimitive2D class
      45                 :            : 
      46                 :            :             This primitive defines single,discrete 'pixels' for the given
      47                 :            :             positions in the given color. This makes it view-dependent since
      48                 :            :             the logic size of a 'pixel' depends on the view transformation.
      49                 :            : 
      50                 :            :             This is one of the non-decomposable primitives, so a renderer
      51                 :            :             should proccess it (Currently it is only used for grid visualisation,
      52                 :            :             but this may change).
      53                 :            :          */
      54         [ #  # ]:          0 :         class DRAWINGLAYER_DLLPUBLIC PointArrayPrimitive2D : public BasePrimitive2D
      55                 :            :         {
      56                 :            :         private:
      57                 :            :             /// the array of positions
      58                 :            :             std::vector< basegfx::B2DPoint >                maPositions;
      59                 :            : 
      60                 :            :             /// the color to use
      61                 :            :             basegfx::BColor                                 maRGBColor;
      62                 :            : 
      63                 :            :             /// #i96669# add simple range buffering for this primitive
      64                 :            :             basegfx::B2DRange                               maB2DRange;
      65                 :            : 
      66                 :            :         public:
      67                 :            :             /// constructor
      68                 :            :             PointArrayPrimitive2D(
      69                 :            :                 const std::vector< basegfx::B2DPoint >& rPositions,
      70                 :            :                 const basegfx::BColor& rRGBColor);
      71                 :            : 
      72                 :            :             /// data read access
      73                 :          0 :             const std::vector< basegfx::B2DPoint >& getPositions() const { return maPositions; }
      74                 :          0 :             const basegfx::BColor& getRGBColor() const { return maRGBColor; }
      75                 :            : 
      76                 :            :             /// compare operator
      77                 :            :             virtual bool operator==(const BasePrimitive2D& rPrimitive) const;
      78                 :            : 
      79                 :            :             /// get range
      80                 :            :             virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const;
      81                 :            : 
      82                 :            :             /// provide unique ID
      83                 :            :             DeclPrimitrive2DIDBlock()
      84                 :            :         };
      85                 :            :     } // end of namespace primitive2d
      86                 :            : } // end of namespace drawinglayer
      87                 :            : 
      88                 :            : //////////////////////////////////////////////////////////////////////////////
      89                 :            : 
      90                 :            : #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_POINTARRAYPRIMITIVE2D_HXX
      91                 :            : 
      92                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10