LCOV - code coverage report
Current view: top level - svx/inc - dragmt3d.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 7 0.0 %
Date: 2014-11-03 Functions: 0 9 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_SVX_INC_DRAGMT3D_HXX
      21             : #define INCLUDED_SVX_INC_DRAGMT3D_HXX
      22             : 
      23             : #include <svx/svddrgmt.hxx>
      24             : #include <svx/view3d.hxx>
      25             : #include <basegfx/polygon/b3dpolypolygon.hxx>
      26             : #include <vcl/timer.hxx>
      27             : #include <basegfx/matrix/b3dhommatrix.hxx>
      28             : 
      29             : // Parameters for the interaction of a 3D object
      30           0 : class E3dDragMethodUnit
      31             : {
      32             : public:
      33             :     E3dObject*                      mp3DObj;
      34             :     basegfx::B3DPolyPolygon         maWireframePoly;
      35             :     basegfx::B3DHomMatrix           maDisplayTransform;
      36             :     basegfx::B3DHomMatrix           maInvDisplayTransform;
      37             :     basegfx::B3DHomMatrix           maInitTransform;
      38             :     basegfx::B3DHomMatrix           maTransform;
      39             :     sal_Int32                       mnStartAngle;
      40             :     sal_Int32                       mnLastAngle;
      41             : 
      42           0 :     E3dDragMethodUnit()
      43             :     :   mp3DObj(0),
      44             :         maWireframePoly(),
      45             :         maDisplayTransform(),
      46             :         maInvDisplayTransform(),
      47             :         maInitTransform(),
      48             :         maTransform(),
      49             :         mnStartAngle(0),
      50           0 :         mnLastAngle(0)
      51           0 :     {}
      52             : };
      53             : 
      54             : // Derivative of SdrDragMethod for 3D objects
      55           0 : class E3dDragMethod : public SdrDragMethod
      56             : {
      57             : protected:
      58             :     ::std::vector< E3dDragMethodUnit >  maGrp;
      59             :     E3dDragConstraint                   meConstraint;
      60             :     Point                               maLastPos;
      61             :     Rectangle                           maFullBound;
      62             :     bool                                mbMoveFull;
      63             :     bool                                mbMovedAtAll;
      64             : 
      65             : public:
      66             :     TYPEINFO_OVERRIDE();
      67             :     E3dDragMethod(
      68             :         SdrDragView &rView,
      69             :         const SdrMarkList& rMark,
      70             :         E3dDragConstraint eConstr = E3DDRAG_CONSTR_XYZ,
      71             :         bool bFull = false);
      72             : 
      73             :     virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE;
      74             :     virtual bool BeginSdrDrag() SAL_OVERRIDE;
      75             :     virtual void MoveSdrDrag(const Point& rPnt) SAL_OVERRIDE;
      76             :     virtual void CancelSdrDrag() SAL_OVERRIDE;
      77             :     virtual bool EndSdrDrag(bool bCopy) SAL_OVERRIDE;
      78             : 
      79             :     E3dView& Get3DView()  { return static_cast<E3dView&>(getSdrDragView());  }
      80             : 
      81             :     // for migration from XOR to overlay
      82             :     virtual void CreateOverlayGeometry(::sdr::overlay::OverlayManager& rOverlayManager) SAL_OVERRIDE;
      83             : };
      84             : 
      85             : // Derivative of SdrDragMethod for spinning 3D objects
      86           0 : class E3dDragRotate : public E3dDragMethod
      87             : {
      88             :     basegfx::B3DPoint                   maGlobalCenter;
      89             : 
      90             : public:
      91             :     TYPEINFO_OVERRIDE();
      92             :     E3dDragRotate(
      93             :         SdrDragView &rView,
      94             :         const SdrMarkList& rMark,
      95             :         E3dDragConstraint eConstr = E3DDRAG_CONSTR_XYZ,
      96             :         bool bFull = false);
      97             : 
      98             :     virtual void MoveSdrDrag(const Point& rPnt) SAL_OVERRIDE;
      99             :     virtual Pointer GetSdrDragPointer() const SAL_OVERRIDE;
     100             : };
     101             : 
     102             : // Derivative of SdrDragMethod for moving 3D sub-objects
     103           0 : class E3dDragMove : public E3dDragMethod
     104             : {
     105             :     SdrHdlKind              meWhatDragHdl;
     106             :     Point                   maScaleFixPos;
     107             : 
     108             : public:
     109             :     TYPEINFO_OVERRIDE();
     110             :     E3dDragMove(
     111             :         SdrDragView &rView,
     112             :         const SdrMarkList& rMark,
     113             :         SdrHdlKind eDrgHdl = HDL_MOVE,
     114             :         E3dDragConstraint eConstr = E3DDRAG_CONSTR_XYZ,
     115             :         bool bFull = false);
     116             : 
     117             :     virtual void MoveSdrDrag(const Point& rPnt) SAL_OVERRIDE;
     118             :     virtual Pointer GetSdrDragPointer() const SAL_OVERRIDE;
     119             : };
     120             : 
     121             : 
     122             : #endif // INCLUDED_SVX_INC_DRAGMT3D_HXX
     123             : 
     124             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10