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