FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmCylJoint.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_CYL_JOINT_H
9 #define FM_CYL_JOINT_H
10 
11 #include "vpmDB/FmMMJointBase.H"
12 
13 
14 class FmCylJoint : public FmMMJointBase
15 {
17 
18 public:
19  FmCylJoint();
20 
21  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
22  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
23  virtual bool clone(FmBase* obj, int depth);
24  virtual const char* getUITypeName() const { return "Cylindric joint"; }
25 
26  double getScrewRatio() const;
27  bool setScrewRatio(double ratio);
28 
31  bool isScrewTransmission() const { return myScrewTransFlag.getValue(); }
32 
33 protected:
34  virtual ~FmCylJoint() {}
35 
36  virtual bool cloneLocal(FmBase* obj, int depth);
37 
38 private:
41 };
42 
43 #endif
bool setValue(const ValueT &newData, bool checkChanged=true)
Assigns a new value to the field.
Definition: FFaField.H:66
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: FmCylJoint.H:15
FFaField< double > myScrewTransRatio
Definition: FmCylJoint.H:40
virtual ~FmCylJoint()
Definition: FmCylJoint.H:34
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmCylJoint.C:112
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmCylJoint.C:74
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmCylJoint.C:65
bool setScrewRatio(double ratio)
Definition: FmCylJoint.C:56
FmCylJoint()
Definition: FmCylJoint.C:25
Fmd_DB_HEADER_INIT()
void setAsScrewTransmission()
Definition: FmCylJoint.H:29
FFaField< bool > myScrewTransFlag
Definition: FmCylJoint.H:39
void unsetAsScrewTransmission()
Definition: FmCylJoint.H:30
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmCylJoint.H:24
bool isScrewTransmission() const
Definition: FmCylJoint.H:31
double getScrewRatio() const
Definition: FmCylJoint.C:47
Definition: FmMMJointBase.H:16
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109