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 _E3D_POLYGON3D_HXX
30 : : #define _E3D_POLYGON3D_HXX
31 : :
32 : : #include <svx/obj3d.hxx>
33 : : #include "svx/svxdllapi.h"
34 : :
35 : 0 : class SVX_DLLPUBLIC E3dPolygonObj : public E3dCompoundObject
36 : : {
37 : : private:
38 : : // parameters
39 : : basegfx::B3DPolyPolygon aPolyPoly3D;
40 : : basegfx::B3DPolyPolygon aPolyNormals3D;
41 : : basegfx::B2DPolyPolygon aPolyTexture2D;
42 : : sal_Bool bLineOnly;
43 : :
44 : : SVX_DLLPRIVATE void CreateDefaultNormals();
45 : : SVX_DLLPRIVATE void CreateDefaultTexture();
46 : :
47 : : protected:
48 : : virtual sdr::contact::ViewContact* CreateObjectSpecificViewContact();
49 : :
50 : : public:
51 : : void SetPolyPolygon3D(const basegfx::B3DPolyPolygon& rNewPolyPoly3D);
52 : : void SetPolyNormals3D(const basegfx::B3DPolyPolygon& rNewPolyPoly3D);
53 : : void SetPolyTexture2D(const basegfx::B2DPolyPolygon& rNewPolyPoly2D);
54 : :
55 : : TYPEINFO();
56 : :
57 : : E3dPolygonObj(
58 : : E3dDefaultAttributes& rDefault,
59 : : const basegfx::B3DPolyPolygon& rPolyPoly3D,
60 : : sal_Bool bLinOnly=sal_False);
61 : :
62 : : E3dPolygonObj();
63 : : virtual ~E3dPolygonObj();
64 : :
65 : 10134 : const basegfx::B3DPolyPolygon& GetPolyPolygon3D() const { return aPolyPoly3D; }
66 : 10134 : const basegfx::B3DPolyPolygon& GetPolyNormals3D() const { return aPolyNormals3D; }
67 : 10134 : const basegfx::B2DPolyPolygon& GetPolyTexture2D() const { return aPolyTexture2D; }
68 : :
69 : : virtual sal_uInt16 GetObjIdentifier() const;
70 : : virtual SdrObject* DoConvertToPolyObj(sal_Bool bBezier) const;
71 : :
72 : : virtual E3dPolygonObj* Clone() const;
73 : :
74 : : // LineOnly?
75 : 10134 : sal_Bool GetLineOnly() { return bLineOnly; }
76 : : void SetLineOnly(sal_Bool bNew);
77 : : };
78 : :
79 : : #endif // _E3D_POLYGON3D_HXX
80 : :
81 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|