FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmRevJoint.H
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2023 SAP SE
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 // This file is part of FEDEM - https://openfedem.org
7 
8 #ifndef FM_REV_JOINT_H
9 #define FM_REV_JOINT_H
10 
11 #include "vpmDB/FmSMJointBase.H"
12 
13 
14 class FmRevJoint : public FmSMJointBase
15 {
17 
18 public:
19  FmRevJoint();
20 
21  virtual int getValidFrictionType() const;
22  virtual int getFrictionDof() const { return 5; }
23 
24  virtual FmDofMotion* getMotionAtDOF(int dof, bool createIfNone);
25 
26  void setHasTzDOF(bool yesOrNo);
27 
28  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
29  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
30  virtual bool clone(FmBase* obj, int depth);
31 
32  virtual const char* getUITypeName() const { return "Revolute joint"; }
33 
34 protected:
35  virtual ~FmRevJoint() {}
36 
37  virtual bool cloneLocal(FmBase* obj, int depth);
38 
39 private:
41 };
42 
43 #endif
static std::array< std::string, 6 > dof
Definition: FmJointBase.C:111
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmDofMotion.H:18
Definition: FmRevJoint.H:15
virtual ~FmRevJoint()
Definition: FmRevJoint.H:35
FmRevJoint()
Definition: FmRevJoint.C:27
void setHasTzDOF(bool yesOrNo)
Definition: FmRevJoint.C:49
FFaField< bool > hasTzDOF
Definition: FmRevJoint.H:40
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmRevJoint.C:75
Fmd_DB_HEADER_INIT()
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmRevJoint.H:32
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmRevJoint.C:84
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmRevJoint.C:129
virtual int getFrictionDof() const
Definition: FmRevJoint.H:22
virtual int getValidFrictionType() const
Definition: FmRevJoint.C:69
virtual FmDofMotion * getMotionAtDOF(int dof, bool createIfNone)
Definition: FmRevJoint.C:55
Definition: FmSMJointBase.H:17
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109