LibreOffice Module chart2 (master) 1
Stripe.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#pragma once
20
21#include <com/sun/star/drawing/Position3D.hpp>
22#include <com/sun/star/drawing/Direction3D.hpp>
23#include <com/sun/star/uno/Any.h>
24
25namespace chart
26{
27
33class Stripe
34{
35public:
36 Stripe( const css::drawing::Position3D& rPoint1
37 , const css::drawing::Direction3D& rDirectionToPoint2
38 , const css::drawing::Direction3D& rDirectionToPoint4 );
39
40 Stripe( const css::drawing::Position3D& rPoint1
41 , const css::drawing::Position3D& rPoint2
42 , double fDepth );
43
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 );
48
49 void SetManualNormal( const css::drawing::Direction3D& rNormal );
50 css::drawing::Direction3D getNormal() const;
51
52 void InvertNormal( bool bInvertNormal );
53
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
57
58private:
59 css::drawing::Position3D m_aPoint1;
60 css::drawing::Position3D m_aPoint2;
61 css::drawing::Position3D m_aPoint3;
62 css::drawing::Position3D m_aPoint4;
63
66 css::drawing::Direction3D m_aManualNormal;
67};
68
69} //namespace chart
70
71/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
A Stripe represents a 2 dimensional foursquare plane in a 3 dimensional room.
Definition: Stripe.hxx:34
css::drawing::Position3D m_aPoint4
Definition: Stripe.hxx:62
static css::uno::Any getTexturePolygon(short nRotatedTexture)
Definition: Stripe.cxx:177
css::uno::Any getNormalsPolygon() const
Definition: Stripe.cxx:146
css::drawing::Position3D m_aPoint1
Definition: Stripe.hxx:59
css::drawing::Position3D m_aPoint3
Definition: Stripe.hxx:61
css::uno::Any getPolyPolygonShape3D() const
Definition: Stripe.cxx:81
Stripe(const css::drawing::Position3D &rPoint1, const css::drawing::Position3D &rPoint2, const css::drawing::Position3D &rPoint3, const css::drawing::Position3D &rPoint4)
css::drawing::Position3D m_aPoint2
Definition: Stripe.hxx:60
void InvertNormal(bool bInvertNormal)
Definition: Stripe.cxx:76
css::drawing::Direction3D m_aManualNormal
Definition: Stripe.hxx:66
Stripe(const css::drawing::Position3D &rPoint1, const css::drawing::Direction3D &rDirectionToPoint2, const css::drawing::Direction3D &rDirectionToPoint4)
void SetManualNormal(const css::drawing::Direction3D &rNormal)
Definition: Stripe.cxx:70
bool m_bManualNormalSet
Definition: Stripe.hxx:65
Stripe(const css::drawing::Position3D &rPoint1, const css::drawing::Position3D &rPoint2, double fDepth)
css::drawing::Direction3D getNormal() const
Definition: Stripe.cxx:120
bool m_bInvertNormal
Definition: Stripe.hxx:64