24 using Ints = std::pair<int,int>;
46 virtual void getTriads(std::vector<FmTriad*>& toFill,
47 bool sortOnId =
false)
const;
79 static int traverse(
FmBase* start, std::vector<FmIsPlottedBase*>& objs);
80 int traverse(
FmTriad* triad, std::vector<FmIsPlottedBase*>& objs)
const;
84 static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
85 virtual std::ostream&
writeFMF(std::ostream& os = std::cout);
std::vector< int > IntVec
Convenience type alias.
Definition: FFaField.H:25
std::vector< double > DoubleVec
Convenience type alias.
Definition: FFaField.H:23
Classes representing lists of guarded pointers.
bool setValue(const ValueT &newData, bool checkChanged=true)
Assigns a new value to the field.
Definition: FFaField.H:66
void setPtr(Type *ptr, int idx)
Assigns ptr at position idx.
Definition: FFaReferenceList.H:301
Type * getPointer() const
Returns the type-casted pointer this reference points to.
Definition: FFaReference.H:234
Class for point transformations in 3D space.
Definition: FFaMat33.H:27
Class for positions in 3D space.
Definition: FFaMat34.H:32
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
Base parent class for the model data structure entries.
Definition: FmBase.H:37
virtual bool connect()
Inserts this object into the model database.
Definition: FmBase.H:92
Definition: FmBeamProperty.H:17
void setTriads(FmTriad *tr1, FmTriad *tr2)
Definition: FmBeam.C:93
virtual const FaMat34 & getLocalCS() const
Definition: FmBeam.C:193
FmTriad * getSecondTriad() const
Definition: FmBeam.C:126
virtual FaMat33 getOrientation() const
Definition: FmBeam.C:227
virtual bool getRefPoints(FmTriad *&node1, FmTriad *&node2, FmTriad *&node3, FaVec3 &offset1, FaVec3 &offset2, FaVec3 &offset3) const
Definition: FmBeam.C:294
FmTriad * getFirstTriad() const
Definition: FmBeam.C:120
FFaField< FFaReferenceBase * > myPropField
Definition: FmBeam.H:112
virtual ~FmBeam()
Definition: FmBeam.H:100
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmBeam.H:40
static int traverse(FmBase *start, std::vector< FmIsPlottedBase * > &objs)
Definition: FmBeam.C:839
void removeTriads()
Definition: FmBeam.C:114
virtual void updateLocation(bool)
Definition: FmBeam.H:64
FFaReferenceList< FmTriad > myTriads
Definition: FmBeam.H:108
bool replaceTriad(FmTriad *oldTr, FmTriad *newTr)
Definition: FmBeam.C:101
FaMat33 getGlobalOrientation() const
Definition: FmBeam.C:237
virtual void getTriads(std::vector< FmTriad * > &toFill, bool sortOnId=false) const
Returns all triads attached to this link.
Definition: FmBeam.C:156
virtual bool attachMMJoint(FmMMJointBase *attachJnt, bool isSilent=false)
Attaches the multi-master joint attachJnt to this link.
Definition: FmBeam.C:526
double getLength() const
Definition: FmBeam.C:383
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmBeam.C:426
virtual bool attachSMJoint(FmSMJointBase *attachJnt, bool isSilent=false)
Attaches the single-master joint attachJnt to this link.
Definition: FmBeam.C:442
virtual double getMass() const
Returns the total mass of this link.
Definition: FmBeam.C:393
virtual FaMat34 getGlobalCS() const
Definition: FmBeam.C:206
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmBeam.C:618
virtual int printSolverEntry(FILE *, int)
Definition: FmLink.H:157
bool split(size_t nb)
Definition: FmBeam.H:96
virtual FmTriad * findTriad(int baseID) const
Returns a specified triad attached to this link.
Definition: FmBeam.C:145
virtual int printSolverEntry(FILE *fp, int propId)
Definition: FmBeam.H:91
FFaField< bool > myVisualize3D
Definition: FmBeam.H:116
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmBeam.C:609
FFaField< FFaReferenceListBase * > myTriadsField
Definition: FmBeam.H:109
FmBeam()
Definition: FmBeam.C:54
FFaField< FaVec3 > myLocalZaxis
Definition: FmBeam.H:115
double getInternalFluidDensity(bool checkLevel=false) const
Definition: FmBeam.C:337
virtual void initAfterResolve()
Hook for initialisation after resolving cross references.
Definition: FmBeam.C:649
virtual FaMat34 getPositionCG(bool globalCS=true) const
Returns the position of the center of gravity of this link.
Definition: FmBeam.C:272
virtual int getNumberOfTriads() const
Returns the number of triads attached to this link.
Definition: FmBeam.H:44
FmBeamProperty * getBeamProperty() const
Definition: FmBeam.C:313
void setProperty(FmModelMemberBase *prop)
Definition: FmBeam.C:325
virtual void setGlobalCS(const FaMat34 &, bool)
Definition: FmBeam.C:172
virtual void setOrientation(const FaMat33 &, bool)
Definition: FmBeam.C:186
virtual void setLocalCS(const FaMat34 &)
Definition: FmBeam.C:165
virtual void setTranslation(const FaVec3 &)
Definition: FmBeam.C:179
FFaField< Ints > myVisualize3DAngles
Definition: FmBeam.H:117
void setOrientation(const FaVec3 &Zaxis)
Definition: FmBeam.H:62
virtual FmModelMemberBase * getProperty() const
Returns the physical property object associated with this link.
Definition: FmBeam.H:71
FmTriad * getOtherTriad(FmTriad *tr) const
Definition: FmBeam.C:132
std::pair< int, int > Ints
Definition: FmBeam.H:24
virtual bool writeToVTF(VTFAFile &file, IntVec *, IntVec *)
Definition: FmBeam.C:804
FmBladeProperty * getBladeProperty() const
Definition: FmBeam.C:319
void setTriad(FmTriad *tr, int pos=0)
Definition: FmBeam.H:31
FFaReference< FmModelMemberBase > myProp
Definition: FmBeam.H:111
virtual FaVec3 getTranslation() const
Definition: FmBeam.C:216
Definition: FmBladeProperty.H:19
virtual int printSolverEntry(FILE *, int)
Definition: FmLink.H:157
Definition: FmMMJointBase.H:16
Base class for all model data objects.
Definition: FmModelMemberBase.H:34
Definition: FmSMJointBase.H:17
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
Definition: FFlVTFWriter.C:21