MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
reffrm.h
Go to the documentation of this file.
1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/base/reffrm.h,v 1.25 2017/01/12 14:46:10 masarati Exp $ */
2 /*
3  * MBDyn (C) is a multibody analysis code.
4  * http://www.mbdyn.org
5  *
6  * Copyright (C) 1996-2017
7  *
8  * Pierangelo Masarati <masarati@aero.polimi.it>
9  * Paolo Mantegazza <mantegazza@aero.polimi.it>
10  *
11  * Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano
12  * via La Masa, 34 - 20156 Milano, Italy
13  * http://www.aero.polimi.it
14  *
15  * Changing this copyright notice is forbidden.
16  *
17  * This program is free software; you can redistribute it and/or modify
18  * it under the terms of the GNU General Public License as published by
19  * the Free Software Foundation (version 2 of the License).
20  *
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  * GNU General Public License for more details.
26  *
27  * You should have received a copy of the GNU General Public License
28  * along with this program; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30  */
31 
32 /* Reference frame: structure, handling etc. */
33 
34 #ifndef REFFRM_H
35 #define REFFRM_H
36 
37 #include <iostream>
38 
39 #include "myassert.h"
40 #include "mynewmem.h"
41 
42 #include "withlab.h"
43 #include "matvec3.h"
44 #include "rbk.h"
45 
47 private:
52 
54 
55 public:
56  ReferenceFrame(void);
57 
58  ReferenceFrame(unsigned int uLabel,
59  const Vec3& xIn, const Mat3x3& RIn,
60  const Vec3& vIn, const Vec3& wIn,
61  const OrientationDescription& ood);
62 
64 
65  ~ReferenceFrame(void);
66 
67  const Vec3& GetX(void) const;
68 
69  const Mat3x3& GetR(void) const;
70 
71  const Vec3& GetV(void) const;
72 
73  const Vec3& GetW(void) const;
74 
75  const Vec3& GetXPP(void) const;
76 
77  const Vec3& GetWP(void) const;
78 
80 
81  std::ostream& Output(std::ostream& out) const;
82 };
83 
84 #endif /* REFFRM_H */
85 
Definition: matvec3.h:98
ReferenceFrame(void)
Definition: reffrm.cc:41
const Vec3 & GetV(void) const
Definition: reffrm.cc:87
std::ostream & Output(std::ostream &out) const
Definition: reffrm.cc:123
OrientationDescription
Definition: matvec3.h:1597
OrientationDescription od
Definition: reffrm.h:53
~ReferenceFrame(void)
Definition: reffrm.cc:70
Mat3x3 R
Definition: reffrm.h:49
const Mat3x3 & GetR(void) const
Definition: reffrm.cc:81
const Vec3 & GetWP(void) const
Definition: reffrm.cc:105
const Vec3 & GetX(void) const
Definition: reffrm.cc:75
const Vec3 & GetW(void) const
Definition: reffrm.cc:93
unsigned int uLabel
Definition: withlab.h:44
ReferenceFrame & operator=(const ReferenceFrame &rf)
Definition: reffrm.cc:111
const Vec3 & GetXPP(void) const
Definition: reffrm.cc:99