~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/utils/ginkgomatrix4x4.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-10-24 21:28:17 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131024212817-ej1skb9og09d3ht6
Tags: 3.5.0.1137.31+dfsg-1
New upstream release [October 2013]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#pragma once
2
2
/*
3
 
 *  
4
 
 *  $Id: iexception.h $
5
 
 *  Ginkgo CADx Project
6
 
 *
7
 
 *  Copyright 2008-12 MetaEmotion S.L. All rights reserved.
8
 
 *  http://ginkgo-cadx.com
9
 
 *
10
 
 *  This file is licensed under LGPL v3 license.
11
 
 *  See License.txt for details
12
 
 *
13
 
 */
 
3
*  
 
4
*  $Id: ginkgomatrix4x4.h $
 
5
*  Ginkgo CADx Project
 
6
*
 
7
*  Copyright 2008-14 MetaEmotion S.L. All rights reserved.
 
8
*  http://ginkgo-cadx.com
 
9
*
 
10
*  This file is licensed under LGPL v3 license.
 
11
*  See License.txt for details
 
12
*
 
13
*/
14
14
#ifndef GINKGOMATRIX4X4
15
15
#define GINKGOMATRIX4X4
16
16
#ifndef __DEPRECATED
33
33
                virtual void Identity();
34
34
                virtual GNC::GCS::Ptr<GNC::GCS::IGinkgoMatrix4x4> Invert();
35
35
                virtual GNC::GCS::Ptr<GNC::GCS::IGinkgoMatrix4x4> Transpose();
36
 
                virtual void MultiplyPoint(const double in[4], double out[4]);
37
 
                // Multiplies other to the right result = this * other
 
36
                virtual double* MultiplyPoint(const double in[4], double out[4]);
 
37
                // Multiplies other to the right result = this * other
38
38
                virtual GNC::GCS::Ptr<GNC::GCS::IGinkgoMatrix4x4> Multiply4x4(const GNC::GCS::Ptr<GNC::GCS::IGinkgoMatrix4x4>& other);
39
 
                // Description:
40
 
                // Compute adjoint of the matrix and put it into out.
 
39
                GNC::GCS::Ptr<GNC::GCS::IGinkgoMatrix4x4> Multiply4x4(const vtkMatrix4x4* other);
 
40
                // Description:
 
41
                // Compute adjoint of the matrix and put it into out.
41
42
                virtual GNC::GCS::Ptr<GNC::GCS::IGinkgoMatrix4x4> Adjoint();
42
 
                // Description:
43
 
           // Compute the determinant of the matrix and return it.
44
 
           virtual double Determinant();
45
 
           // Description:
46
 
           // Sets the element i,j in the matrix.
47
 
           virtual void SetElement(int i, int j, double value);
48
 
                // Description:
49
 
           // Returns the element i,j from the matrix.
50
 
           virtual double GetElement(int i, int j) const;
 
43
                // Description:
 
44
                // Compute the determinant of the matrix and return it.
 
45
                virtual double Determinant();
 
46
                // Description:
 
47
                // Sets the element i,j in the matrix.
 
48
                virtual void SetElement(int i, int j, double value);
 
49
                // Description:
 
50
                // Returns the element i,j from the matrix.
 
51
                virtual double GetElement(int i, int j) const;
51
52
                virtual void ToDoubleArrayByColumns(double matrix[16]);
52
53
        protected:
53
54
                vtkSmartPointer<vtkMatrix4x4> rawMatrix;