FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmPrismJoint.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_PRISM_JOINT_H
9 #define FM_PRISM_JOINT_H
10 
11 #include "vpmDB/FmMMJointBase.H"
12 
13 
15 {
17 
18 public:
19  FmPrismJoint();
20 
21  virtual int getValidFrictionType() const;
22  virtual int getFrictionDof() const { return 6; }
23 
24  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
25  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
26  virtual bool clone(FmBase* obj, int depth);
27 
28  virtual const char* getUITypeName() const { return "Prismatic joint"; }
29 
30 protected:
31  virtual ~FmPrismJoint() {}
32 
33  virtual bool cloneLocal(FmBase* obj, int depth);
34 };
35 
36 #endif
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmMMJointBase.H:16
Definition: FmPrismJoint.H:15
FmPrismJoint()
Definition: FmPrismJoint.C:20
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmPrismJoint.H:28
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmPrismJoint.C:44
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmPrismJoint.C:87
virtual ~FmPrismJoint()
Definition: FmPrismJoint.H:31
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmPrismJoint.C:53
virtual int getFrictionDof() const
Definition: FmPrismJoint.H:22
virtual int getValidFrictionType() const
Definition: FmPrismJoint.C:38
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109