FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmFreeJoint.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_FREE_JOINT_H
9 #define FM_FREE_JOINT_H
10 
11 #include "vpmDB/FmSMJointBase.H"
12 
13 
14 class FmFreeJoint : public FmSMJointBase
15 {
17 
18 public:
19  FmFreeJoint();
20 
21  virtual int getValidFrictionType(int dof) const;
22  virtual int getValidFrictionType() const;
23 
24  virtual int getFrictionDof() const { return myFrictionDof.getValue(); }
25  virtual bool setFrictionDof(int dof);
26 
27  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
28  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
29  virtual bool clone(FmBase* obj, int depth);
30 
31  virtual const char* getUITypeName() const { return "Free joint"; }
32 
33 protected:
34  virtual ~FmFreeJoint() {}
35 
36  virtual bool cloneLocal(FmBase* obj, int depth);
37 
38 private:
40 };
41 
42 #endif
static std::array< std::string, 6 > dof
Definition: FmJointBase.C:111
const ValueT & getValue() const
Returns a const reference to myData.
Definition: FFaField.H:56
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmFreeJoint.H:15
virtual ~FmFreeJoint()
Definition: FmFreeJoint.H:34
virtual bool setFrictionDof(int dof)
Definition: FmFreeJoint.C:71
FFaField< int > myFrictionDof
Definition: FmFreeJoint.H:39
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmFreeJoint.C:80
FmFreeJoint()
Definition: FmFreeJoint.C:27
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmFreeJoint.C:89
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmFreeJoint.C:118
virtual int getValidFrictionType() const
Definition: FmFreeJoint.C:54
virtual int getFrictionDof() const
Definition: FmFreeJoint.H:24
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmFreeJoint.H:31
Definition: FmSMJointBase.H:17
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109