LCOV - code coverage report
Current view: top level - include/drawinglayer/primitive3d - shadowprimitive3d.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 5 0.0 %
Date: 2014-04-14 Functions: 0 6 0.0 %
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             : #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SHADOWPRIMITIVE3D_HXX
      21             : #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SHADOWPRIMITIVE3D_HXX
      22             : 
      23             : #include <drawinglayer/drawinglayerdllapi.h>
      24             : 
      25             : #include <drawinglayer/primitive3d/groupprimitive3d.hxx>
      26             : #include <basegfx/matrix/b2dhommatrix.hxx>
      27             : #include <basegfx/color/bcolor.hxx>
      28             : 
      29             : 
      30             : 
      31             : namespace drawinglayer
      32             : {
      33             :     namespace primitive3d
      34             :     {
      35             :         /** ShadowPrimitive3D class
      36             : 
      37             :             This 3D grouping primitive is used to define a shadow for
      38             :             3d geometry by embedding it. The shadow of 3D objects are
      39             :             2D polygons, so the shadow transformation is a 2D transformation.
      40             : 
      41             :             If the Shadow3D flag is set, the shadow definition has to be
      42             :             combined with the scene and camera definition to create the correct
      43             :             projected shadow 2D-Polygons.
      44             :          */
      45           0 :         class DRAWINGLAYER_DLLPUBLIC ShadowPrimitive3D : public GroupPrimitive3D
      46             :         {
      47             :         protected:
      48             :             /// 2D shadow definition
      49             :             basegfx::B2DHomMatrix                   maShadowTransform;
      50             :             basegfx::BColor                         maShadowColor;
      51             :             double                                  mfShadowTransparence;
      52             : 
      53             :             /// bitfield
      54             :             bool                                    mbShadow3D : 1;
      55             : 
      56             :         public:
      57             :             /// constructor
      58             :             ShadowPrimitive3D(
      59             :                 const basegfx::B2DHomMatrix& rShadowTransform,
      60             :                 const basegfx::BColor& rShadowColor,
      61             :                 double fShadowTransparence,
      62             :                 bool bShadow3D,
      63             :                 const Primitive3DSequence& rChildren);
      64             : 
      65             :             /// data read access
      66           0 :             const basegfx::B2DHomMatrix& getShadowTransform() const { return maShadowTransform; }
      67           0 :             const basegfx::BColor& getShadowColor() const { return maShadowColor; }
      68           0 :             double getShadowTransparence() const { return mfShadowTransparence; }
      69           0 :             bool getShadow3D() const { return mbShadow3D; }
      70             : 
      71             :             /// compare operator
      72             :             virtual bool operator==(const BasePrimitive3D& rPrimitive) const SAL_OVERRIDE;
      73             : 
      74             :             /// provide unique ID
      75             :             DeclPrimitive3DIDBlock()
      76             :         };
      77             :     } // end of namespace primitive3d
      78             : } // end of namespace drawinglayer
      79             : 
      80             : 
      81             : 
      82             : #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SHADOWPRIMITIVE3D_HXX
      83             : 
      84             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10