~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to COLLADAFramework/include/COLLADAFWScale.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
    This file is part of COLLADAFramework.
 
5
 
 
6
    Licensed under the MIT Open Source License, 
 
7
    for details please see LICENSE file or the website
 
8
    http://www.opensource.org/licenses/mit-license.php
 
9
*/
 
10
 
 
11
#ifndef __COLLADAFW_SCALE_H__
 
12
#define __COLLADAFW_SCALE_H__
 
13
 
 
14
#include "COLLADAFWPrerequisites.h"
 
15
#include "COLLADAFWTransformation.h"
 
16
 
 
17
#include "Math/COLLADABUMathVector3.h"
 
18
 
 
19
 
 
20
namespace COLLADAFW
 
21
{
 
22
        class Scale : public Transformation 
 
23
        {
 
24
        private:
 
25
                /** Vector representing the scales in three directions.*/
 
26
                COLLADABU::Math::Vector3 mScaleVector;
 
27
        
 
28
        public:
 
29
                /** Constructor. Creates identity scale.*/
 
30
                Scale();
 
31
 
 
32
                /** Constructor. Sets scale to @a scaleVector.*/ 
 
33
                Scale(const COLLADABU::Math::Vector3& scaleVector);
 
34
 
 
35
                /** Constructor. Sets the components of the scale to @a x, @a y, @a z.*/
 
36
                Scale(double x, double y, double z);
 
37
 
 
38
                virtual ~Scale();
 
39
 
 
40
                /** Returns the scale vector.*/
 
41
                COLLADABU::Math::Vector3& getScale(){ return mScaleVector; }
 
42
 
 
43
                /** Returns the scale vector.*/
 
44
                const COLLADABU::Math::Vector3& getScale() const { return mScaleVector; }
 
45
 
 
46
                /** Sets the scale vector.*/
 
47
                void setScale(const COLLADABU::Math::Vector3& scaleVector) { mScaleVector = scaleVector; }
 
48
 
 
49
                /**  Sets the components of the scale to @a x, @a y, @a z.*/
 
50
                void setScale(double x, double y, double z) { mScaleVector = COLLADABU::Math::Vector3(x, y, z); }
 
51
 
 
52
                /** Clones the scale.*/
 
53
                Scale* clone() const { return new Scale(*this); }
 
54
 
 
55
        };
 
56
 
 
57
} // namespace COLLADAFW
 
58
 
 
59
#endif // __COLLADAFW_SCALE_H__