FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmJointMotion.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_JOINT_MOTION_H
9 #define FM_JOINT_MOTION_H
10 
11 #include "vpmDB/FmDofMotion.H"
12 
13 class FmJointBase;
14 
15 
16 class FmJointMotion : public FmDofMotion
17 {
19 
20 public:
21  FmJointMotion();
22 
23  virtual void initAfterResolve();
24 
25  FmJointBase* getOwnerJoint() const;
26 
27  bool getInitLengthOrDefl(double& lenOrDefl) const;
28  void setInitLengthOrDefl(double lenOrDefl, bool isDeflection = false);
29 
30  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
31  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
32 
33  virtual const char* getUITypeName() const { return "Joint motion"; }
34 
35 protected:
36  virtual ~FmJointMotion() {}
37 
38  virtual bool cloneLocal(FmBase* obj, int depth);
39 
41 };
42 
43 #endif
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmDofMotion.H:18
Definition: FmJointBase.H:22
Definition: FmJointMotion.H:17
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmJointMotion.H:33
FmJointBase * getOwnerJoint() const
Definition: FmJointMotion.C:24
virtual void initAfterResolve()
Hook for initialisation after resolving cross references.
Definition: FmJointMotion.C:93
virtual ~FmJointMotion()
Definition: FmJointMotion.H:36
FFaField< bool > useInitDeflection
Definition: FmJointMotion.H:40
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmJointMotion.C:100
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmJointMotion.C:67
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmJointMotion.C:76
bool getInitLengthOrDefl(double &lenOrDefl) const
Definition: FmJointMotion.C:34
void setInitLengthOrDefl(double lenOrDefl, bool isDeflection=false)
Definition: FmJointMotion.C:47
FmJointMotion()
Definition: FmJointMotion.C:16