89 bool highlight(
bool trueOrFalse)
override;
108 virtual bool isFEPart(
bool =
false)
const {
return false; }
112 bool globalPoint =
false,
113 bool unconnectedOnly =
false)
const;
124 bool attach(
FmBase* attachObject,
bool isSilent =
false);
137 bool sortOnId =
false)
const = 0;
139 void getJoints(std::vector<FmJointBase*>& toFill)
const;
183 static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
196 static bool localParse(
const char* keyWord, std::istream& activeStatement,
210 FmTriad* attachTr,
bool isSilent =
false);
Enum variables with text representations.
#define FFaEnumEntryEnd
Defines the end of an enum mapping definition.
Definition: FFaEnum.H:237
#define FFaEnumEntry(Value, Text)
Adds one entry to the current enum mapping definition.
Definition: FFaEnum.H:234
Conversion of units for physical property parameters.
std::vector< int > IntVec
Convenience type alias.
Definition: FFaFieldContainer.H:45
Same as FFaField<int>, but hiding negative-valued instances.
Definition: FmLink.H:29
bool isPrintable() const final
Returns true, if this field should be printed.
Definition: FmLink.H:31
Template class for field representation in the FEDEM model database.
Definition: FFaField.H:39
bool isDefault() const final
Returns true, if the field value equals its default value.
Definition: FFaField.H:92
int myData
Current field value.
Definition: FFaField.H:130
bool isPrintable() const override
Returns true, if this field should be printed.
Definition: FFaField.H:94
const ValueT & getValue() const
Returns a const reference to myData.
Definition: FFaField.H:56
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
int getID() const
Returns the user ID of this object.
Definition: FmBase.H:66
Representation of a RGB color by floats in range [0.0,1.0].
Definition: FmColor.H:24
Definition: FmIsPositionedBase.H:31
Definition: FmJointBase.H:22
FFaField< double > alpha2
Stiffness proportional damping.
Definition: FmLink.H:225
virtual bool isAttachable() const
Returns true if objects can be attached to this link.
Definition: FmLink.H:100
virtual double getMass() const =0
Returns the total mass of this link.
FFaField< DetailEnum > myModelType
Definition: FmLink.H:258
bool openCadData()
Reads the CAD model associated with this link for visualization.
Definition: FmLink.C:919
FFaField< double > alpha1
Mass proportional damping.
Definition: FmLink.H:224
void updateGPVisualization()
Updates the simplified generic part visualization.
Definition: FmLink.C:169
bool setModelType(Detail detailType)
Definition: FmLink.C:263
FFaField< FFaUnitCalculator > visDataFileUnitConverter
Unit converter for visualization file.
Definition: FmLink.H:219
bool setMeshType(Detail detailType)
Definition: FmLink.C:250
bool setShininess(double var)
Definition: FmLink.C:303
bool setRGBColor(const FmColor &col)
Definition: FmLink.C:290
virtual bool isDisabled() const
Returns true if the FE data of this link is disabled.
Definition: FmLink.H:102
int getStructDmpEngineId() const
Returns the base ID of structural damping function for this link.
Definition: FmLink.C:970
bool setLineRGBColor(const FmColor &col)
Definition: FmLink.C:237
CoordSysOption
Enumerator related to shadow element positioning algorithm.
Definition: FmLink.H:232
@ MAX_TRI_UNIT_OFFSET
Definition: FmLink.H:234
@ MAX_TRI_LINK_SCALE_OFFSET
Definition: FmLink.H:235
@ MODEL_DEFAULT
Definition: FmLink.H:233
@ MASS_BASED_AVERAGE
Definition: FmLink.H:236
FFaEnumMapping(Detail)
Definition: FmLink.H:70
bool isUsingGenPartVis() const
Returns true if the link uses generic part visualization.
Definition: FmLink.C:159
virtual bool isSuppressed() const
Returns true if this link is suppressed.
Definition: FmLink.H:104
FmLink(const FaVec3 &globalPos=FaVec3())
Default constructor.
Definition: FmLink.C:52
virtual ~FmLink()
The destructor disconnects the link.
Definition: FmLink.C:95
virtual void getTriads(std::vector< FmTriad * > &toFill, bool sortOnId=false) const =0
Returns all triads attached to this link.
static bool localParse(const char *keyWord, std::istream &activeStatement, FmLink *obj)
Definition: FmLink.C:890
std::string getBaseCadFile(bool createDir=false) const
Returns the full path of the saved CAD file of this link.
Definition: FmLink.C:120
virtual std::string getAbsFilePath(bool createDir=false) const
Returns the path to the directory in which the link will be saved.
Definition: FmLink.C:114
virtual std::pair< FmTriad *, bool > getExistingTriad(const FmTriad *triad)
Returns any triad at the same location as triad on this link.
Definition: FmLink.C:696
FFaField< std::string > visDataFile
File for generic part visualization.
Definition: FmLink.H:217
bool isEarthLink() const
Returns true if *this is the earth link.
Definition: FmLink.H:97
virtual bool writeToVTF(VTFAFile &file, IntVec *=NULL, IntVec *=NULL)=0
bool attach(FmBase *attachObject, bool isSilent=false)
Attaches the object attachObject to this link.
Definition: FmLink.C:368
virtual bool getRefPoints(FmTriad *&node1, FmTriad *&node2, FmTriad *&node3, FaVec3 &offset1, FaVec3 &offset2, FaVec3 &offset3) const
Returns the points used for co-rotated coordinate system control.
Definition: FmLink.C:985
virtual int printSolverEntry(FILE *, int)
Definition: FmLink.H:157
void getJoints(std::vector< FmJointBase * > &toFill) const
Returns all joints attached to this link.
Definition: FmLink.C:329
virtual bool attachSMJoint(FmSMJointBase *attachJnt, bool isSilent=false)
Attaches the single-master joint attachJnt to this link.
Definition: FmLink.C:434
bool interactiveErase() override
Hook for class-dependent tasks for interactive deleting an object.
Definition: FmLink.C:178
virtual int getNumberOfTriads() const =0
Returns the number of triads attached to this link.
virtual bool isGenericPart() const
Returns true if this link is a generic part.
Definition: FmLink.H:106
bool isTriadAttachable(FmTriad *&existingTriad, FmTriad *attachTr, bool isSilent=false)
Checks whether the triad attachTr can be attached to this link.
Definition: FmLink.C:636
Detail getMeshType() const
Definition: FmLink.H:82
void updateChildrenDisplayTopology() override
Definition: FmLink.C:958
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Creates a new link object by reading data from a stream.
Definition: FmLink.C:783
int printSolverEntry(FILE *f) override
Hoook for printing the solver input file entry for this object.
Definition: FmLink.H:159
virtual FaMat34 getPositionCG(bool globalCS=true) const =0
Returns the position of the center of gravity of this link.
virtual bool getBBox(FaVec3 &max, FaVec3 &min) const
Calculates the bounding box of this link.
Definition: FmLink.C:751
Detail
Enumerator for different visualization modes.
Definition: FmLink.H:66
@ FULL
Definition: FmLink.H:66
@ SURFACE
Definition: FmLink.H:66
@ SIMPLIFIED
Definition: FmLink.H:68
@ REDUCED
Definition: FmLink.H:66
@ BBOX
Definition: FmLink.H:67
@ RED_FULL
Definition: FmLink.H:67
@ REDUCED_NO1D
Definition: FmLink.H:68
@ OFF
Definition: FmLink.H:67
FFaField< FmColor > myLineRGBColor
Definition: FmLink.H:253
bool isCADLoaded() const
Returns true if the link's CAD model currently is loaded.
Definition: FmLink.C:148
virtual bool attachMMJoint(FmMMJointBase *attachJnt, bool isSilent=false)
Attaches the multi-master joint attachJnt to this link.
Definition: FmLink.C:459
bool cloneLocal(FmBase *obj, int depth) override
Clones the data fields of *obj into *this.
Definition: FmLink.C:346
std::string getLinkIDString(bool objPrefix=false) const override
Definition: FmLink.C:276
FmTriad * getTriadAtPoint(const FaVec3 &point, double tolerance, bool globalPoint=false, bool unconnectedOnly=false) const
Returns the closest triad to point, or NULL if none found.
Definition: FmLink.C:712
FFaField< CoordSysOptionEnum > myCSOption
Selected CS option for *this.
Definition: FmLink.H:245
virtual bool isFEPart(bool=false) const
Returns true if this link is a (loaded) FE part.
Definition: FmLink.H:108
FFaField< std::string > baseCadFileName
File that stores internal CAD data.
Definition: FmLink.H:221
bool attachTriad(FmTriad *attachTr, bool isSilent, bool doUpdate=true)
Attaches the triad attachTr to this link.
Definition: FmLink.C:508
bool setTransparency(double var)
Definition: FmLink.C:316
FFaField< FmColor > myRGBColor
Definition: FmLink.H:254
FFaField< double > myShininess
Definition: FmLink.H:255
bool saveCadData()
Writes visualization datA associated with this link to CAD file.
Definition: FmLink.C:937
virtual FmModelMemberBase * getProperty() const
Returns the physical property object associated with this link.
Definition: FmLink.H:150
bool highlight(bool trueOrFalse) override
Definition: FmLink.C:220
double getTransparency() const
Definition: FmLink.H:62
const FmColor & getRGBColor() const
Definition: FmLink.H:58
const FmColor & getLineRGBColor() const
Definition: FmLink.H:52
FFaField< double > myTransparency
Definition: FmLink.H:256
FFaField< double > massScale
Mass matrix scaling factor.
Definition: FmLink.H:228
FFaFieldUnsignedInt objFileGroupIndex
Group index in obj-file.
Definition: FmLink.H:249
FFaField< DetailEnum > myMeshType
Definition: FmLink.H:257
FFaEnumMapping(CoordSysOption)
Definition: FmLink.H:239
FFaField< double > stiffnessScale
Stiffness matrix scaling factor.
Definition: FmLink.H:229
double getShininess() const
Definition: FmLink.H:55
FaVec3 getExtents() const
Returns the extension of this link in each coordinate direction.
Definition: FmLink.C:741
virtual FmTriad * findTriad(int baseID) const =0
Returns a specified triad attached to this link.
std::string getGeometryFile() const
Returns the full path of the geometry file of this link.
Definition: FmLink.C:134
Detail getModelType() const
Definition: FmLink.H:85
Definition: FmMMJointBase.H:16
Base class for all model data objects.
Definition: FmModelMemberBase.H:34
Definition: FmSMJointBase.H:17
Definition: FFlVTFWriter.C:21