Update git submodules
[LibreOffice.git] / chart2 / source / view / inc / Stripe.hxx
blob0da5e0b5dcc5700811c2bf5499a3cdf9acfdc4e1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 #pragma once
21 #include <com/sun/star/drawing/Position3D.hpp>
22 #include <com/sun/star/drawing/Direction3D.hpp>
23 #include <com/sun/star/uno/Any.h>
25 namespace chart
28 /** A Stripe represents a 2 dimensional foursquare plane in a 3 dimensional room.
30 @todo could: it is not necessary to have 4 point members here; it would be sufficient to have one point and 2 directions
33 class Stripe
35 public:
36 Stripe( const css::drawing::Position3D& rPoint1
37 , const css::drawing::Direction3D& rDirectionToPoint2
38 , const css::drawing::Direction3D& rDirectionToPoint4 );
40 Stripe( const css::drawing::Position3D& rPoint1
41 , const css::drawing::Position3D& rPoint2
42 , double fDepth );
44 Stripe( const css::drawing::Position3D& rPoint1
45 , const css::drawing::Position3D& rPoint2
46 , const css::drawing::Position3D& rPoint3
47 , const css::drawing::Position3D& rPoint4 );
49 void SetManualNormal( const css::drawing::Direction3D& rNormal );
50 css::drawing::Direction3D getNormal() const;
52 void InvertNormal( bool bInvertNormal );
54 css::uno::Any getPolyPolygonShape3D() const;
55 css::uno::Any getNormalsPolygon() const;
56 static css::uno::Any getTexturePolygon( short nRotatedTexture ); //0 to 7 are the different possibilities
58 private:
59 css::drawing::Position3D m_aPoint1;
60 css::drawing::Position3D m_aPoint2;
61 css::drawing::Position3D m_aPoint3;
62 css::drawing::Position3D m_aPoint4;
64 bool m_bInvertNormal;
65 bool m_bManualNormalSet;
66 css::drawing::Direction3D m_aManualNormal;
69 } //namespace chart
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */