FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmStraightMaster.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_STRAIGHT_MASTER_H
9 #define FM_STRAIGHT_MASTER_H
10 
11 #include "vpmDB/Fm1DMaster.H"
12 
13 
15 {
17 
18 public:
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 int printSolverEntry(FILE* fd);
24  virtual bool clone(FmBase* obj, int depth);
25  virtual void initAfterResolve();
26  virtual const char* getUITypeName() const { return "Straight line"; }
27 
28  virtual bool addTriadOnPoint(const FaVec3& globalPoint);
29  virtual bool insertTriad(FmTriad* triad, size_t pos, bool updateViz);
30 
31  virtual double getSliderPosition(FaMat34& ur, const FaVec3& pos) const;
32 
33 protected:
34  bool reOrientTriad(FmTriad* triad);
35 
36  virtual bool cloneLocal(FmBase* obj, int depth);
37 };
38 
39 #endif
Class for positions in 3D space.
Definition: FFaMat34.H:32
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
Definition: Fm1DMaster.H:17
Base parent class for the model data structure entries.
Definition: FmBase.H:37
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
Definition: FmStraightMaster.H:15
virtual bool addTriadOnPoint(const FaVec3 &globalPoint)
Definition: FmStraightMaster.C:78
virtual void initAfterResolve()
Hook for initialisation after resolving cross references.
Definition: FmStraightMaster.C:242
virtual bool insertTriad(FmTriad *triad, size_t pos, bool updateViz)
Definition: FmStraightMaster.C:25
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmStraightMaster.C:304
FmStraightMaster()
Definition: FmStraightMaster.C:19
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmStraightMaster.C:225
virtual int printSolverEntry(FILE *fd)
Hoook for printing the solver input file entry for this object.
Definition: FmStraightMaster.C:310
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmStraightMaster.C:216
virtual double getSliderPosition(FaMat34 &ur, const FaVec3 &pos) const
Definition: FmStraightMaster.C:204
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmStraightMaster.H:26
bool reOrientTriad(FmTriad *triad)
Definition: FmStraightMaster.C:35
Definition: FmTriad.H:48