LCOV - code coverage report
Current view: top level - include/drawinglayer/processor3d - cutfindprocessor3d.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 4 0.0 %
Date: 2014-11-03 Functions: 0 5 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_PROCESSOR3D_CUTFINDPROCESSOR3D_HXX
      21             : #define INCLUDED_DRAWINGLAYER_PROCESSOR3D_CUTFINDPROCESSOR3D_HXX
      22             : 
      23             : #include <drawinglayer/drawinglayerdllapi.h>
      24             : 
      25             : #include <drawinglayer/processor3d/defaultprocessor3d.hxx>
      26             : 
      27             : 
      28             : 
      29             : namespace drawinglayer
      30             : {
      31             :     namespace processor3d
      32             :     {
      33             :         /** CutFindProcessor class
      34             : 
      35             :             This processor extracts all cuts of 3D plane geometries in the feeded primitives
      36             :             with the given cut vector, based on the ViewInformation3D given.
      37             :          */
      38           0 :         class DRAWINGLAYER_DLLPUBLIC CutFindProcessor : public BaseProcessor3D
      39             :         {
      40             :         private:
      41             :             /// the start and stop point for the cut vector
      42             :             basegfx::B3DPoint                       maFront;
      43             :             basegfx::B3DPoint                       maBack;
      44             : 
      45             :             /// the found cut points
      46             :             ::std::vector< basegfx::B3DPoint >      maResult;
      47             : 
      48             :             /*  #i102956# the transformation change from TransformPrimitive3D processings
      49             :                 needs to be remembered to be able to transform found cuts to the
      50             :                 basic coordinate system the processor starts with
      51             :              */
      52             :             basegfx::B3DHomMatrix                   maCombinedTransform;
      53             : 
      54             :             /// bitfield
      55             :             bool                                    mbAnyHit : 1;
      56             : 
      57             :             /*  this flag decides if primitives which are invisible will be taken into account for
      58             :                 HitTesting or not.
      59             :              */
      60             :             bool                                    mbUseInvisiblePrimitiveContent : 1;
      61             : 
      62             :             /*  as tooling, the process() implementation takes over API handling and calls this
      63             :                 virtual render method when the primitive implementation is BasePrimitive3D-based.
      64             :              */
      65             :             virtual void processBasePrimitive3D(const primitive3d::BasePrimitive3D& rCandidate) SAL_OVERRIDE;
      66             : 
      67             :         public:
      68             :             CutFindProcessor(const geometry::ViewInformation3D& rViewInformation,
      69             :                 const basegfx::B3DPoint& rFront,
      70             :                 const basegfx::B3DPoint& rBack,
      71             :                 bool bAnyHit);
      72             : 
      73             :             /// data write access
      74             :             void setUseInvisiblePrimitiveContent(bool bNew)
      75             :             {
      76             :                 if((bool)mbUseInvisiblePrimitiveContent != bNew) mbUseInvisiblePrimitiveContent = bNew;
      77             :             }
      78             : 
      79             :             /// data read access
      80           0 :             const ::std::vector< basegfx::B3DPoint >& getCutPoints() const { return maResult; }
      81           0 :             bool getAnyHit() const { return mbAnyHit; }
      82           0 :             bool getUseInvisiblePrimitiveContent() const { return mbUseInvisiblePrimitiveContent;}
      83             :         };
      84             :     } // end of namespace processor3d
      85             : } // end of namespace drawinglayer
      86             : 
      87             : 
      88             : 
      89             : #endif //INCLUDED_DRAWINGLAYER_PROCESSOR3D_CUTFINDPROCESSOR3D_HXX
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10