1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_VIEW_INC_STRIPE_HXX
20 #define INCLUDED_CHART2_SOURCE_VIEW_INC_STRIPE_HXX
22 #include <com/sun/star/drawing/Position3D.hpp>
23 #include <com/sun/star/drawing/Direction3D.hpp>
24 #include <com/sun/star/uno/Any.h>
29 /** A Stripe represents a 2 dimensional foursquare plane in a 3 dimaensional room.
31 @todo could: it is not necessary to have 4 point members here; it would be sufficient to have one point and 2 directions
37 Stripe( const ::com::sun::star::drawing::Position3D
& rPoint1
38 , const ::com::sun::star::drawing::Direction3D
& rDirectionToPoint2
39 , const ::com::sun::star::drawing::Direction3D
& rDirectionToPoint4
);
41 Stripe( const ::com::sun::star::drawing::Position3D
& rPoint1
42 , const ::com::sun::star::drawing::Position3D
& rPoint2
45 Stripe( const ::com::sun::star::drawing::Position3D
& rPoint1
46 , const ::com::sun::star::drawing::Position3D
& rPoint2
47 , const ::com::sun::star::drawing::Position3D
& rPoint3
48 , const ::com::sun::star::drawing::Position3D
& rPoint4
);
50 void SetManualNormal( const ::com::sun::star::drawing::Direction3D
& rNormal
);
51 ::com::sun::star::drawing::Direction3D
getNormal() const;
53 void InvertNormal( bool bInvertNormal
);
55 ::com::sun::star::uno::Any
getPolyPolygonShape3D() const;
56 ::com::sun::star::uno::Any
getNormalsPolygon() const;
57 static ::com::sun::star::uno::Any
getTexturePolygon( short nRotatedTexture
); //0 to 7 are the different possibilities
59 ::com::sun::star::drawing::Position3D
GetPosition1() const { return m_aPoint1
; }
60 ::com::sun::star::drawing::Position3D
GetPosition2() const { return m_aPoint2
; }
61 ::com::sun::star::drawing::Position3D
GetPosition3() const { return m_aPoint3
; }
62 ::com::sun::star::drawing::Position3D
GetPosition4() const { return m_aPoint4
; }
65 ::com::sun::star::drawing::Position3D m_aPoint1
;
66 ::com::sun::star::drawing::Position3D m_aPoint2
;
67 ::com::sun::star::drawing::Position3D m_aPoint3
;
68 ::com::sun::star::drawing::Position3D m_aPoint4
;
71 bool m_bManualNormalSet
;
72 ::com::sun::star::drawing::Direction3D m_aManualNormal
;
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */