LibreOffice Module drawinglayer (master) 1
cutfindprocessor3d.hxx
Go to the documentation of this file.
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
25
27
29 {
36 {
37 private:
41
43 ::std::vector< basegfx::B3DPoint > maResult;
44
45 /* #i102956# the transformation change from TransformPrimitive3D processings
46 needs to be remembered to be able to transform found cuts to the
47 basic coordinate system the processor starts with
48 */
50
51 bool mbAnyHit : 1;
52
53 /* as tooling, the process() implementation takes over API handling and calls this
54 virtual render method when the primitive implementation is BasePrimitive3D-based.
55 */
56 virtual void processBasePrimitive3D(const primitive3d::BasePrimitive3D& rCandidate) override;
57
58 public:
59 CutFindProcessor(const geometry::ViewInformation3D& rViewInformation,
60 const basegfx::B3DPoint& rFront,
61 const basegfx::B3DPoint& rBack,
62 bool bAnyHit);
63
65 const ::std::vector< basegfx::B3DPoint >& getCutPoints() const { return maResult; }
66 };
67
68} // end of namespace drawinglayer::processor3d
69
70
71#endif //INCLUDED_DRAWINGLAYER_PROCESSOR3D_CUTFINDPROCESSOR3D_HXX
72
73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
triangulator::B2DTriangleVector maResult
basegfx::B3DPoint maFront
the start and stop point for the cut vector
::std::vector< basegfx::B3DPoint > maResult
the found cut points
const ::std::vector< basegfx::B3DPoint > & getCutPoints() const
data read access
#define DRAWINGLAYER_DLLPUBLIC