FEDEM Model Database  R8.0
Source code of the FEDEM model database
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
FmLink Class Referenceabstract

#include <FmLink.H>

Inheritance diagram for FmLink:
Inheritance graph
[legend]
Collaboration diagram for FmLink:
Collaboration graph
[legend]

Public Types

enum  Detail {
  FULL = 0 , SURFACE = 1 , REDUCED = 2 , BBOX = 3 ,
  OFF = 4 , RED_FULL = 5 , REDUCED_NO1D = 6 , SIMPLIFIED = 7
}
 Enumerator for different visualization modes. More...
 
enum  CoordSysOption { MODEL_DEFAULT , MAX_TRI_UNIT_OFFSET , MAX_TRI_LINK_SCALE_OFFSET , MASS_BASED_AVERAGE }
 Enumerator related to shadow element positioning algorithm. More...
 
- Public Types inherited from FmIsMeasuredBase
enum  SensorDOF {
  X_TRANS = 0 , Y_TRANS = 1 , Z_TRANS = 2 , X_ROT = 3 ,
  Y_ROT = 4 , Z_ROT = 5 , REL = 6 , REL_X = 7 ,
  REL_Y = 8 , REL_Z = 9 , REL_RX = 10 , REL_RY = 11 ,
  REL_RZ = 12 , MAX_PR = 13 , MIN_PR = 14 , SA_MAX = 15 ,
  VMISES = 16 , GAGE_1 = 17 , GAGE_2 = 18 , GAGE_3 = 19 ,
  UNSIGNED = 20 , ANGLE_YZ = 21 , ANGLE_ZX = 22 , ANGLE_XY = 23 ,
  NUM_DOF = 24
}
 
enum  SensorEntity {
  POS = 0 , LOCAL_VEL = 1 , GLOBAL_VEL = 2 , LOCAL_ACC = 3 ,
  GLOBAL_ACC = 4 , DISTANCE = 5 , VEL = 6 , ACCEL = 7 ,
  ANGLE = 8 , REL_POS = 9 , JSPR_ANG = 10 , JSPR_DEFL = 11 ,
  JSPR_FORCE = 12 , JDAMP_ANG = 13 , JDAMP_VEL = 14 , JDAMP_FORCE = 15 ,
  LENGTH = 16 , DEFL = 17 , FORCE = 18 , LOCAL_FORCE = 19 ,
  GLOBAL_FORCE = 20 , WIND_SPEED = 21 , FLUID_VEL = 22 , FLUID_ACC = 23 ,
  DYN_PRESS = 24 , STRAIN = 25 , STRESS = 26 , NUM_ENTITY = 27
}
 
- Public Types inherited from FmModelMemberBase
enum  Signal { MODEL_MEMBER_CONNECTED , MODEL_MEMBER_DISCONNECTED , MODEL_MEMBER_FINISHED_DISCONNECTED , MODEL_MEMBER_CHANGED }
 Enumerator for database signals. More...
 
- Public Types inherited from FmBase
enum  CopyMode {
  NOTHING , SHALLOW , DEEP_UNRESOLVED , DEEP_APPEND ,
  DEEP_REPLACE
}
 Enumerator for the different copying modes. More...
 
- Public Types inherited from FFaFieldContainer
using FindCB = FFaDynCB4< FFaFieldContainer *&, int, int, const IntVec & >
 Convenience alias for resolve call-backs. More...
 

Public Member Functions

const FmColor & getLineRGBColor () const
 
bool setLineRGBColor (const FmColor &col)
 
double getShininess () const
 
bool setShininess (double var)
 
const FmColor & getRGBColor () const
 
bool setRGBColor (const FmColor &col)
 
bool setRGBColor (float r, float g, float b)
 
double getTransparency () const
 
bool setTransparency (double var)
 
 FFaEnumMapping (Detail)
 
Detail getMeshType () const
 
bool setMeshType (Detail detailType)
 
Detail getModelType () const
 
bool setModelType (Detail detailType)
 
bool highlight (bool trueOrFalse) override
 
bool interactiveErase () override
 Hook for class-dependent tasks for interactive deleting an object. More...
 
bool isEarthLink () const
 Returns true if *this is the earth link. More...
 
virtual bool isAttachable () const
 Returns true if objects can be attached to this link. More...
 
virtual bool isDisabled () const
 Returns true if the FE data of this link is disabled. More...
 
virtual bool isSuppressed () const
 Returns true if this link is suppressed. More...
 
virtual bool isGenericPart () const
 Returns true if this link is a generic part. More...
 
virtual bool isFEPart (bool=false) const
 Returns true if this link is a (loaded) FE part. More...
 
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. More...
 
FaVec3 getExtents () const
 Returns the extension of this link in each coordinate direction. More...
 
virtual bool getBBox (FaVec3 &max, FaVec3 &min) const
 Calculates the bounding box of this link. More...
 
void updateChildrenDisplayTopology () override
 
bool attach (FmBase *attachObject, bool isSilent=false)
 Attaches the object attachObject to this link. More...
 
std::string getLinkIDString (bool objPrefix=false) const override
 
virtual int getNumberOfTriads () const =0
 Returns the number of triads attached to this link. More...
 
virtual FmTriad * findTriad (int baseID) const =0
 Returns a specified triad attached to this link. More...
 
virtual void getTriads (std::vector< FmTriad * > &toFill, bool sortOnId=false) const =0
 Returns all triads attached to this link. More...
 
void getJoints (std::vector< FmJointBase * > &toFill) const
 Returns all joints attached to this link. More...
 
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. More...
 
virtual double getMass () const =0
 Returns the total mass of this link. More...
 
virtual FaMat34 getPositionCG (bool globalCS=true) const =0
 Returns the position of the center of gravity of this link. More...
 
virtual FmModelMemberBase * getProperty () const
 Returns the physical property object associated with this link. More...
 
virtual bool writeToVTF (VTFAFile &file, IntVec *=NULL, IntVec *=NULL)=0
 
virtual int printSolverEntry (FILE *, int)
 
int printSolverEntry (FILE *f) override
 Hoook for printing the solver input file entry for this object. More...
 
bool openCadData ()
 Reads the CAD model associated with this link for visualization. More...
 
bool saveCadData ()
 Writes visualization datA associated with this link to CAD file. More...
 
bool isCADLoaded () const
 Returns true if the link's CAD model currently is loaded. More...
 
bool isUsingGenPartVis () const
 Returns true if the link uses generic part visualization. More...
 
void updateGPVisualization ()
 Updates the simplified generic part visualization. More...
 
virtual std::string getAbsFilePath (bool createDir=false) const
 Returns the path to the directory in which the link will be saved. More...
 
std::string getBaseCadFile (bool createDir=false) const
 Returns the full path of the saved CAD file of this link. More...
 
std::string getGeometryFile () const
 Returns the full path of the geometry file of this link. More...
 
int getStructDmpEngineId () const
 Returns the base ID of structural damping function for this link. More...
 
 FFaEnumMapping (CoordSysOption)
 
- Public Member Functions inherited from FmIsPositionedBase
virtual const FaMat34 & getLocalCS () const
 
virtual void setLocalCS (const FaMat34 &localMat)
 
virtual FaMat34 getGlobalCS () const
 
virtual void setGlobalCS (const FaMat34 &globalMat, bool=false)
 
virtual FaVec3 getTranslation () const
 
virtual void setTranslation (const FaVec3 &translation)
 
virtual FaMat33 getOrientation () const
 
virtual void setOrientation (const FaMat33 &orient, bool notify=false)
 
virtual void getStickers (Stickers &stck) const
 
bool hasStickers () const
 
bool addSticker (FmSticker *sticker)
 
bool addStickers (const Stickers &stickers)
 
bool removeSticker (FmSticker *sticker)
 
void removeAllStickers ()
 
int getNumberOfStickers () const
 
virtual bool isTranslatable () const
 
virtual char isRotatable () const
 
FmAssemblyBase * getPositionedAssembly () const
 
bool setPosRef (FmIsPositionedBase *ref)
 
FmIsPositionedBase * getPosRef () const
 
bool setRotRef (FmIsPositionedBase *ref)
 
FmIsPositionedBase * getRotRef () const
 
void setLocation (const FFa3DLocation &loc)
 
const FFa3DLocation & getLocation () const
 
virtual void updateLocation (bool updateReferringObjs=true)
 
- Public Member Functions inherited from FmIsPlottedBase
bool hasCurveSets () const
 
void getCurveSets (std::vector< FmCurveSet * > &curves) const
 
void writeSaveVar (FILE *fp, unsigned int nVar) const
 
- Public Member Functions inherited from FmIsRenderedBase
bool draw ()
 
virtual void drawObject ()
 Visualization interface for objects that can be rendered. More...
 
virtual bool detach ()
 
virtual bool isListable () const
 Hook for list view filtering. More...
 
void updateTopologyInViewer ()
 
void updateThisTopologyOnly ()
 
void updateDisplayTopology ()
 
void updateDisplayDetails ()
 
void updateDisplayApperance ()
 
void updateDisplayCS ()
 
virtual FaDOF getObjDegOfFreedom () const
 
- Public Member Functions inherited from FmIsMeasuredBase
FmSensorBase * getSimpleSensor () const
 
bool hasSensors () const
 
virtual void getEntities (FmSensorChoices &ents, int=-1)
 
virtual void getDofs (FmSensorChoices &dofs)
 
virtual bool isMeasured () const
 
- Public Member Functions inherited from FmSimulationModelBase
virtual void initAfterResolve ()
 Hook for initialisation after resolving cross references. More...
 
virtual void onEventSwitched (const FmSimulationEvent *)
 Hook for simulation event handling. More...
 
virtual void initAfterParse ()
 Hook for initialisation after simulation event switching. More...
 
bool parseField (const std::string &keyWord, const std::string &fieldValue)
 Parses the field keyWord from a text string. More...
 
void removeFieldsExceptFor (const std::vector< FDictIt > &keep)
 Removes all fields from this object, except for the specified ones. More...
 
void setAsDefault (const std::vector< FDictIt > &fieldNames)
 Updates default values to the current value for specified fields. More...
 
void getFields (std::vector< FDictIt > &fieldNames) const
 Returns all field names present in this object. More...
 
bool isEventModified () const
 Checks if *this is referred by simulation events. More...
 
std::string getObjectInfo () const
 Returns a string with all information stored in this object. More...
 
FmSimulationModelBase * copy (int cloneDepth) const
 Makes a copy of this object. More...
 
FmBase * clone (int depth) const final
 Returns an unconnected copy of this object. More...
 
virtual bool clone (FmBase *, int)
 Copies the fields of another object into *this. More...
 
virtual FmBase * clone (int) const
 Returns an unconnected copy of this object. More...
 
- Public Member Functions inherited from FmModelMemberBase
void sendSignal (Signal sig)
 Broadcasts a database signal to trigger call-back invokations. More...
 
const char * getItemName () const override
 Returns the name of this item. More...
 
std::string getItemDescr () const override
 Returns the description of this item. More...
 
int getItemID () const final
 Returns the user ID of this item. More...
 
int getItemBaseID () const final
 Returns the base ID of this item. More...
 
void getItemAssemblyPath (std::vector< int > &assID) const final
 Returns the sub-assembly ID path of this item. More...
 
void onMainConnected () final
 Invokes call-backs after this object is inserted into the database. More...
 
void onMainDisconnected () final
 Invokes call-backs after this object is removed from the database. More...
 
void onMainAboutToDisconnect () final
 Invokes call-backs before this object is removed from the database. More...
 
void onChanged ()
 Invokes call-backs when this object updated. More...
 
virtual FmBase * duplicate () const
 Returns a connected copy of this object. More...
 
void printID (FILE *myFile, bool withBaseID=true) const
 Prints the ID of this object in the solver input file format. More...
 
int getBaseID () const
 Returns the base ID of this object. More...
 
bool setTag (const std::string &tag)
 Assigns a tag to this object. More...
 
bool isTagged (const std::string &tag) const
 Returns true if this object has a tag assigned to it. More...
 
const std::string & getTag () const
 Returns a const reference to the tag assigned to this object. More...
 
bool moveTo (FmSubAssembly *newAss)
 Moves this object to another sub-assembly. More...
 
- Public Member Functions inherited from FmBase
FmBase * getNext () const
 Returns the next object in the linked list. More...
 
FmBase * getPrev () const
 Returns the previous object in the linked list. More...
 
virtual std::string getUserDescription (size_t maxLength=0) const
 Returns the user-defined description of this object. More...
 
virtual bool setUserDescription (const std::string &descr)
 Sets the user-defined description of this object. More...
 
bool makeCopyDescr ()
 Prepends "Copy of " to the user description. More...
 
virtual std::string getInfoString () const
 Returns a composed string describing this object. More...
 
virtual std::string getIdPath (bool withBrackets=true) const
 Returns the user ID including the sub-assembly path. More...
 
std::string getIdString (bool withDescription=false) const
 Returns a composed string describing this object. More...
 
int getID () const
 Returns the user ID of this object. More...
 
void setID (int Id)
 Sets the user ID of this object. More...
 
void getAssemblyID (IntVec &assID) const
 Retrieves the assembly ID of this object. More...
 
FmBase * getParentAssembly () const
 Returns the sub-assembly this object is part of, if any. More...
 
FmBase * getCommonAncestor (const FmBase *other) const
 Returns the sub-assembly both *this and *other descent from. More...
 
void setParentAssembly (FmBase *subAss)
 Sets the parent sub-assembly for this object. More...
 
void setParentAssembly (int Id, int classType=-1)
 Sets the parent sub-assembly for this object. More...
 
int getResolvedID () const final
 Returns the user Id of *this, for use in I/O and resolving. More...
 
void getResolvedAssemblyID (IntVec &assID) const final
 Gets the assembly path of *this, for use in I/O and resolving. More...
 
bool cloneOrConnect ()
 Inserts or copies this object into the model database. More...
 
virtual bool connect ()
 Inserts this object into the model database. More...
 
virtual bool disconnect ()
 Removes this object from the model database. More...
 
bool isPartOf (const FmSubAssembly *subAss) const
 Returns true if *this is part of the specified sub-assembly. More...
 
std::ostream & writeFields (std::ostream &os) const
 Writes all data fields of this object to the given output stream. More...
 
virtual std::ostream & writeFMF (std::ostream &os)
 Writes out this object in the model database file format. More...
 
virtual bool clone (FmBase *, int)
 Copies the fields of another object into *this. More...
 
virtual const char * getUITypeName () const
 Returns the type name of this object for use in the GUI. More...
 
- Public Member Functions inherited from FFaFieldContainer
 FFaFieldContainer ()
 The default constructor does nothing. More...
 
virtual ~FFaFieldContainer ()
 The destructor clears the references to *this in myRefBy. More...
 
bool erase ()
 Deletes *this assuming it is heap-allocated. More...
 
void getFields (FieldMap &mapToFill) const
 Builds a map of all fields in this FFaFieldContainer. More...
 
FFaFieldBase * getField (const std::string &fieldName) const
 Returns the named field in this FFaFieldContainer. More...
 
void getReferredObjs (ObjectMap &mapToFill) const
 Builds a map of all other objects referred to by *this. More...
 
void getReferringObjs (ObjectMap &mapToFill) const
 Builds a map of all other objects referring to *this. More...
 
void getReferringObjs (ObjectVec &vecToFill, const std::string &contextName, bool sortOnId=false) const
 Builds a list of FFaFieldContainer objects referring to *this. More...
 
template<class T >
void getReferringObjs (std::vector< T * > &vecToFill, const std::string &context="", bool sortOnId=false) const
 Builds a list of class T objects referring to *this. More...
 
template<class T >
bool hasReferringObjs (T *&ptr, const std::string &context="") const
 Checks if there are any references of type T to this object. More...
 
void releaseReferencesToMe (const std::string &contextName="", FFaFieldContainer *replacement=NULL)
 Directly removes all references to this object. More...
 
void resolve (FindCB &findCB)
 Resolves all FFaReferences and FFaReferenceLists in this object. More...
 
void unresolve ()
 Unresolves all FFaReferences and FFaReferenceLists in this object. More...
 
void updateReferences (int oldAssId, int newAssId)
 Updates the assembly ID in the references in this object. More...
 
void updateReferences (const IntVec &oldAssId, const IntVec &newAssID)
 Updates the assembly ID in the references in this object. More...
 
bool readField (const std::string &key, std::istream &is, bool datafieldsOnly=false)
 Reads the value of a field named key from an input stream. More...
 
bool copy (const FFaFieldContainer *other, bool fieldsOnly=false, bool unresolve=false)
 Copies all fields and references from another object into *this. More...
 
bool copyFields (const FFaFieldContainer *obj)
 Copies all field values from another object into *this. More...
 
bool resetFields (const FFaFieldContainer *obj)
 Resets fields to their default value. More...
 
- Public Member Functions inherited from FFaListViewItem
 FFaListViewItem ()
 Default constructor. More...
 
virtual ~FFaListViewItem ()
 The destructor deletes the position and expand status mapping. More...
 
virtual const char ** getListViewPixmap () const
 Returns the pixmap of this item. More...
 
bool setPositionInListView (const char *lvName, int pos)
 Sets the position of this item in the named list view. More...
 
int getPositionInListView (const char *lvName) const
 Returns the position of this item in the named list view. More...
 
bool setExpandedInListView (const char *lvName, bool exp)
 Sets the expand status of this item in the named list view. More...
 
bool getExpandedInListView (const char *lvName) const
 Returns the expand status of this item in the named list view. More...
 
bool isSubjectToLVPositioning (const char *lvName) const
 Returns whether this item is positioned in the named list view. More...
 
- Public Member Functions inherited from FFaViewItem
 FFaViewItem ()=default
 Default constructor. More...
 
 FFaViewItem (const FFaViewItem &)=delete
 Disable default copy constructor. More...
 
virtual ~FFaViewItem ()
 Empty destructor. More...
 
FFaViewItem & operator= (const FFaViewItem &)=delete
 Disable default assignment operator. More...
 

Static Public Member Functions

static bool readAndConnect (std::istream &is, std::ostream &os=std::cout)
 Creates a new link object by reading data from a stream. More...
 
- Static Public Member Functions inherited from FmModelMemberBase
static FFaSwitchBoardConnector * getSignalConnector ()
 Returns the model database signal connector. More...
 
static void resolveBaseIDProblems ()
 Resolves the conflicting base ID issues for baseIdProblems. More...
 
- Static Public Member Functions inherited from FFaFieldContainer
static void removeDictInstance ()
 Removes the heap-allocated field name dictionary. More...
 
- Static Public Member Functions inherited from FFaViewItem
static bool compareDescr (FFaViewItem *i1, FFaViewItem *i2)
 Binary comparison of description strings (implementation of less). More...
 
static bool compareID (FFaViewItem *i1, FFaViewItem *i2)
 Binary comparison of user IDs (implementation of less). More...
 
static int compareDescr3w (FFaViewItem *i1, FFaViewItem *i2)
 Three-way lexicographical comparison of description strings. More...
 
static int compareID3w (FFaViewItem *i1, FFaViewItem *i2)
 Three-way lexicographical comparison of user IDs. More...
 

Public Attributes

FFaField< std::string > visDataFile
 File for generic part visualization. More...
 
FFaField< FFaUnitCalculator > visDataFileUnitConverter
 Unit converter for visualization file. More...
 
FFaField< std::string > baseCadFileName
 File that stores internal CAD data. More...
 
FFaField< double > alpha1
 Mass proportional damping. More...
 
FFaField< double > alpha2
 Stiffness proportional damping. More...
 
FFaField< double > massScale
 Mass matrix scaling factor. More...
 
FFaField< double > stiffnessScale
 Stiffness matrix scaling factor. More...
 
FFaField< CoordSysOptionEnum > myCSOption
 Selected CS option for *this. More...
 
FFaFieldUnsignedInt objFileGroupIndex
 Group index in obj-file. More...
 
- Public Attributes inherited from FmIsPlottedBase
FFaField< BoolVec > mySaveVar
 Toggles for result output. More...
 

Protected Member Functions

 FmLink (const FaVec3 &globalPos=FaVec3())
 Default constructor. More...
 
 FmLink (bool)
 Constructor for earth link. More...
 
virtual ~FmLink ()
 The destructor disconnects the link. More...
 
bool cloneLocal (FmBase *obj, int depth) override
 Clones the data fields of *obj into *this. More...
 
bool attachTriad (FmTriad *attachTr, bool isSilent, bool doUpdate=true)
 Attaches the triad attachTr to this link. More...
 
virtual bool attachSMJoint (FmSMJointBase *attachJnt, bool isSilent=false)
 Attaches the single-master joint attachJnt to this link. More...
 
virtual bool attachMMJoint (FmMMJointBase *attachJnt, bool isSilent=false)
 Attaches the multi-master joint attachJnt to this link. More...
 
virtual bool attachTriad (FmTriad *attachTr, FmTriad *oldTr, bool silence)
 Attaches a triad when having an old triad in the same place. More...
 
bool isTriadAttachable (FmTriad *&existingTriad, FmTriad *attachTr, bool isSilent=false)
 Checks whether the triad attachTr can be attached to this link. More...
 
virtual std::pair< FmTriad *, bool > getExistingTriad (const FmTriad *triad)
 Returns any triad at the same location as triad on this link. More...
 
- Protected Member Functions inherited from FmIsPositionedBase
 FmIsPositionedBase (bool noFields=false)
 
virtual ~FmIsPositionedBase ()
 
void getMyStickers (Stickers &stickers) const
 
- Protected Member Functions inherited from FmIsPlottedBase
 FmIsPlottedBase ()
 
virtual ~FmIsPlottedBase ()
 
virtual bool eraseOptions ()
 Hook for class-specific tasks before deleting *this in erase(). More...
 
virtual bool getSaveVar (unsigned int &nVar, IntVec &toggles) const
 
- Protected Member Functions inherited from FmIsRenderedBase
 FmIsRenderedBase ()
 
virtual ~FmIsRenderedBase ()
 
 FmIsRenderedBase (const FmIsRenderedBase &)=delete
 
FmIsRenderedBase & operator= (const FmIsRenderedBase &)=delete
 
- Protected Member Functions inherited from FmIsMeasuredBase
 FmIsMeasuredBase ()
 
virtual ~FmIsMeasuredBase ()
 
- Protected Member Functions inherited from FmSimulationModelBase
 FmSimulationModelBase ()
 Default constructor. More...
 
bool cloneLocal (FmBase *obj, int depth) override
 Clones the data fields of *obj into *this. More...
 
- Protected Member Functions inherited from FmModelMemberBase
virtual void mainConnectedEvent ()
 Hook for class-dependent tasks when the object is connected. More...
 
virtual void mainDisconnectedEvent ()
 Hook for class-dependent tasks when the object is disconnected. More...
 
virtual void changedEvent ()
 Hook for class-dependent tasks when the object is updated. More...
 
 FmModelMemberBase (bool isDummy=false)
 Default constructor. More...
 
bool eraseOptions () override
 Hook for class-specific tasks before deleting *this in erase(). More...
 
- Protected Member Functions inherited from FmBase
 FmBase (bool isDummy=false)
 Default constructor. More...
 
virtual ~FmBase ()
 Empty destructor. More...
 
bool eraseOrConnect ()
 Conditionally inserts this object into the model database. More...
 
bool mainConnect (bool allowNonUniqueIDs=false)
 Inserts this object into the model database, unless aready present. More...
 
bool mainDisconnect ()
 Removes this object from the model database, if present. More...
 
void insertAfter (FmBase *afterPt)
 Inserts *this after *afterPt in the database ring. More...
 
- Protected Member Functions inherited from FFaFieldContainer
void addRef (FFaReferenceBase *ref)
 Adds a reference to the internal book keeping of this object. More...
 
void addRefList (FFaReferenceListBase *list)
 Adds a reference list to the internal book keeping of this object. More...
 
void addField (const std::string &identifier, FFaFieldBase *field)
 Adds a field to the internal book keeping of this object. More...
 
void removeField (const std::string &identifier)
 Removes the field from the internal book keeping of this object. More...
 

Static Protected Member Functions

static bool localParse (const char *keyWord, std::istream &activeStatement, FmLink *obj)
 
- Static Protected Member Functions inherited from FmBase
static bool localParse (const char *keyWord, std::istream &activeStatement, FmBase *obj)
 Parses the keyWord field for *obj, if it is a defined field. More...
 

Protected Attributes

FFaField< FmColor > myLineRGBColor
 
FFaField< FmColor > myRGBColor
 
FFaField< double > myShininess
 
FFaField< double > myTransparency
 
FFaField< DetailEnum > myMeshType
 
FFaField< DetailEnum > myModelType
 
- Protected Attributes inherited from FmIsPositionedBase
FFaReference< FmIsPositionedBase > myPosRef
 
FFaField< FFaReferenceBase * > myPosRefField
 
FFaReference< FmIsPositionedBase > myRotRef
 
FFaField< FFaReferenceBase * > myRotRefField
 
FFaField< FFa3DLocation > myLocation
 
FFaField< FaMat34 > myCS
 
- Protected Attributes inherited from FmModelMemberBase
FFaNoCopyField< int > myBaseID
 Base ID, unique over all object types. More...
 
FFaField< std::string > myTag
 Text string used for grouping objects. More...
 
- Protected Attributes inherited from FFaFieldContainer
FieldContainerMap myFields
 All data fields of this object. More...
 

Additional Inherited Members

- Static Public Attributes inherited from FmIsRenderedBase
static FmTriad * detachTriad = NULL
 
- Static Public Attributes inherited from FmSimulationModelBase
static std::string relPathCorrection
 For writing of solver input file. More...
 
- Static Public Attributes inherited from FmModelMemberBase
static bool ignoreBaseID = false
 Set to true when importing sub-assembly. More...
 
static bool inInteractiveErase = false
 Set to true when interactive delete. More...
 
- Protected Types inherited from FFaFieldContainer
using FDict = std::set< std::string >
 Convenience type alias, a set of text strings used as a dictionary. More...
 
using FDictIt = FDict::const_iterator
 Convenience type alias, a const_iterator pointing into a dictionary. More...
 
using FieldContainerMap = std::map< FDictIt, FFaFieldBase *, FDictLess >
 Convenience type alias, a field container map. More...
 
using FieldContainerDict = FFaSingelton< FDict, FFaFieldContainer >
 Convenience type alias, a heap-allocated dictionary singelton. More...
 
- Static Protected Attributes inherited from FmIsMeasuredBase
static FmSensorChoice itsDofTable [NUM_DOF]
 
static FmSensorChoice itsEntityTable [NUM_ENTITY]
 

Member Enumeration Documentation

◆ CoordSysOption

Enumerator related to shadow element positioning algorithm.

Enumerator
MODEL_DEFAULT 
MAX_TRI_UNIT_OFFSET 
MAX_TRI_LINK_SCALE_OFFSET 
MASS_BASED_AVERAGE 

◆ Detail

Enumerator for different visualization modes.

Enumerator
FULL 
SURFACE 
REDUCED 
BBOX 
OFF 
RED_FULL 
REDUCED_NO1D 
SIMPLIFIED 

Constructor & Destructor Documentation

◆ FmLink() [1/2]

FmLink::FmLink ( const FaVec3 &  globalPos = FaVec3())
protected

Default constructor.

◆ FmLink() [2/2]

FmLink::FmLink ( bool  )
protected

Constructor for earth link.

For the earth link, no field initialization is needed.

◆ ~FmLink()

FmLink::~FmLink ( )
protectedvirtual

The destructor disconnects the link.

Member Function Documentation

◆ attach()

bool FmLink::attach ( FmBase *  attachObject,
bool  isSilent = false 
)

Attaches the object attachObject to this link.

◆ attachMMJoint()

bool FmLink::attachMMJoint ( FmMMJointBase *  attachJnt,
bool  isSilent = false 
)
protectedvirtual

Attaches the multi-master joint attachJnt to this link.

Reimplemented in FmBeam.

◆ attachSMJoint()

bool FmLink::attachSMJoint ( FmSMJointBase *  attachJnt,
bool  isSilent = false 
)
protectedvirtual

Attaches the single-master joint attachJnt to this link.

Reimplemented in FmBeam.

◆ attachTriad() [1/2]

bool FmLink::attachTriad ( FmTriad *  attachTr,
bool  isSilent,
bool  doUpdate = true 
)
protected

Attaches the triad attachTr to this link.

This is what has to be done in this method:

1. check if the triad is owned.
IF this link is a generic part or not loaded THEN
   2. check if the triad position matches an existing triad.
ELSE
   3. check if the triad position is on a valid node.
   4. check if an existing triad is associated with this node.
END IF
5. if an existing triad is found and is attachable,
   clone properties from the new triad to the existing one.

◆ attachTriad() [2/2]

bool FmLink::attachTriad ( FmTriad *  attachTr,
FmTriad *  oldTr,
bool  silence 
)
protectedvirtual

Attaches a triad when having an old triad in the same place.

Reimplemented in FmPart.

◆ cloneLocal()

bool FmLink::cloneLocal ( FmBase *  obj,
int  depth 
)
overrideprotectedvirtual

Clones the data fields of *obj into *this.

This method tries to copy all fields of the cloned object into this object.

Returns
true if all of them have a matching field in this and false otherwise.

Reimplemented from FmIsPositionedBase.

Reimplemented in FmPart, and FmUserDefinedElement.

◆ FFaEnumMapping() [1/2]

FmLink::FFaEnumMapping ( CoordSysOption  )
inline

◆ FFaEnumMapping() [2/2]

FmLink::FFaEnumMapping ( Detail  )
inline

◆ findTriad()

virtual FmTriad* FmLink::findTriad ( int  baseID) const
pure virtual

Returns a specified triad attached to this link.

Implemented in FmUserDefinedElement, FmPart, and FmBeam.

◆ getAbsFilePath()

std::string FmLink::getAbsFilePath ( bool  createDir = false) const
virtual

Returns the path to the directory in which the link will be saved.

This method will try to create the directory if it does not exist, but only if createDir is true.

Reimplemented in FmPart.

◆ getBaseCadFile()

std::string FmLink::getBaseCadFile ( bool  createDir = false) const

Returns the full path of the saved CAD file of this link.

◆ getBBox()

bool FmLink::getBBox ( FaVec3 &  max,
FaVec3 &  min 
) const
virtual

Calculates the bounding box of this link.

Reimplemented in FmPart.

◆ getExistingTriad()

std::pair< FmTriad *, bool > FmLink::getExistingTriad ( const FmTriad *  triad)
protectedvirtual

Returns any triad at the same location as triad on this link.

Reimplemented in FmPart.

◆ getExtents()

FaVec3 FmLink::getExtents ( ) const

Returns the extension of this link in each coordinate direction.

◆ getGeometryFile()

std::string FmLink::getGeometryFile ( ) const

Returns the full path of the geometry file of this link.

If a CAD file is defined, this method will return that file name. Otherwise, the visualization file name is returned, if any.

◆ getJoints()

void FmLink::getJoints ( std::vector< FmJointBase * > &  toFill) const

Returns all joints attached to this link.

◆ getLineRGBColor()

const FmColor& FmLink::getLineRGBColor ( ) const
inline

◆ getLinkIDString()

std::string FmLink::getLinkIDString ( bool  objPrefix = false) const
overridevirtual

Reimplemented from FmIsPositionedBase.

◆ getMass()

virtual double FmLink::getMass ( ) const
pure virtual

Returns the total mass of this link.

Implemented in FmPart, FmUserDefinedElement, and FmBeam.

◆ getMeshType()

Detail FmLink::getMeshType ( ) const
inline

◆ getModelType()

Detail FmLink::getModelType ( ) const
inline

◆ getNumberOfTriads()

virtual int FmLink::getNumberOfTriads ( ) const
pure virtual

Returns the number of triads attached to this link.

Implemented in FmUserDefinedElement, FmPart, and FmBeam.

◆ getPositionCG()

virtual FaMat34 FmLink::getPositionCG ( bool  globalCS = true) const
pure virtual

Returns the position of the center of gravity of this link.

Implemented in FmPart, FmUserDefinedElement, and FmBeam.

◆ getProperty()

virtual FmModelMemberBase* FmLink::getProperty ( ) const
inlinevirtual

Returns the physical property object associated with this link.

Reimplemented in FmBeam.

◆ getRefPoints()

bool FmLink::getRefPoints ( FmTriad *&  node1,
FmTriad *&  node2,
FmTriad *&  node3,
FaVec3 &  offset1,
FaVec3 &  offset2,
FaVec3 &  offset3 
) const
virtual

Returns the points used for co-rotated coordinate system control.

Reimplemented in FmBeam.

◆ getRGBColor()

const FmColor& FmLink::getRGBColor ( ) const
inline

◆ getShininess()

double FmLink::getShininess ( ) const
inline

◆ getStructDmpEngineId()

int FmLink::getStructDmpEngineId ( ) const

Returns the base ID of structural damping function for this link.

◆ getTransparency()

double FmLink::getTransparency ( ) const
inline

◆ getTriadAtPoint()

FmTriad * FmLink::getTriadAtPoint ( const FaVec3 &  point,
double  tolerance,
bool  globalPoint = false,
bool  unconnectedOnly = false 
) const

Returns the closest triad to point, or NULL if none found.

Only the triads closer to point than the given tolerance are checked. If globalPoint is true, point is assumed to be in global coordinates. Otherwise, local coordinates w.r.t. the link coordinate system is assumed. If unconnectedOnly is true, only the triads not already assigned a FE node number is considered.

◆ getTriads()

virtual void FmLink::getTriads ( std::vector< FmTriad * > &  toFill,
bool  sortOnId = false 
) const
pure virtual

Returns all triads attached to this link.

Implemented in FmUserDefinedElement, FmPart, and FmBeam.

◆ highlight()

bool FmLink::highlight ( bool  trueOrFalse)
overridevirtual

Reimplemented from FmIsRenderedBase.

◆ interactiveErase()

bool FmLink::interactiveErase ( )
overridevirtual

Hook for class-dependent tasks for interactive deleting an object.

This method can be overriden in sub-classes when additional user feedback is needed before the object can be deleted. It returns false if the user cancelled the delete.

Reimplemented from FmModelMemberBase.

Reimplemented in FmPart.

◆ isAttachable()

virtual bool FmLink::isAttachable ( ) const
inlinevirtual

Returns true if objects can be attached to this link.

Reimplemented in FmPart.

◆ isCADLoaded()

bool FmLink::isCADLoaded ( ) const

Returns true if the link's CAD model currently is loaded.

◆ isDisabled()

virtual bool FmLink::isDisabled ( ) const
inlinevirtual

Returns true if the FE data of this link is disabled.

Reimplemented in FmPart.

◆ isEarthLink()

bool FmLink::isEarthLink ( ) const
inline

Returns true if *this is the earth link.

◆ isFEPart()

virtual bool FmLink::isFEPart ( bool  = false) const
inlinevirtual

Returns true if this link is a (loaded) FE part.

Reimplemented in FmPart.

◆ isGenericPart()

virtual bool FmLink::isGenericPart ( ) const
inlinevirtual

Returns true if this link is a generic part.

Reimplemented in FmPart.

◆ isSuppressed()

virtual bool FmLink::isSuppressed ( ) const
inlinevirtual

Returns true if this link is suppressed.

Reimplemented in FmPart.

◆ isTriadAttachable()

bool FmLink::isTriadAttachable ( FmTriad *&  existingTriad,
FmTriad *  attachTr,
bool  isSilent = false 
)
protected

Checks whether the triad attachTr can be attached to this link.

Used by attach(), attachTriad(), attachSMJoint() and attachMMJoint(). Will return true if the triad is attachable, along with a possible existingTriad that is positioned at the same point on this link.

◆ isUsingGenPartVis()

bool FmLink::isUsingGenPartVis ( ) const

Returns true if the link uses generic part visualization.

◆ localParse()

bool FmLink::localParse ( const char *  keyWord,
std::istream &  activeStatement,
FmLink *  obj 
)
staticprotected

◆ openCadData()

bool FmLink::openCadData ( )

Reads the CAD model associated with this link for visualization.

◆ printSolverEntry() [1/2]

virtual int FmLink::printSolverEntry ( FILE *  ,
int   
)
inlinevirtual

Reimplemented in FmBeam.

◆ printSolverEntry() [2/2]

int FmLink::printSolverEntry ( FILE *  )
inlineoverridevirtual

Hoook for printing the solver input file entry for this object.

Reimplemented from FmModelMemberBase.

Reimplemented in FmUserDefinedElement.

◆ readAndConnect()

bool FmLink::readAndConnect ( std::istream &  is,
std::ostream &  os = std::cout 
)
static

Creates a new link object by reading data from a stream.

This method is only used when reading model files created in R7.0.4 and older. It converts the LINK record into either PART or BEAM.

◆ saveCadData()

bool FmLink::saveCadData ( )

Writes visualization datA associated with this link to CAD file.

◆ setLineRGBColor()

bool FmLink::setLineRGBColor ( const FmColor &  col)

◆ setMeshType()

bool FmLink::setMeshType ( Detail  detailType)

◆ setModelType()

bool FmLink::setModelType ( Detail  detailType)

◆ setRGBColor() [1/2]

bool FmLink::setRGBColor ( const FmColor &  col)

◆ setRGBColor() [2/2]

bool FmLink::setRGBColor ( float  r,
float  g,
float  b 
)

◆ setShininess()

bool FmLink::setShininess ( double  var)

◆ setTransparency()

bool FmLink::setTransparency ( double  var)

◆ updateChildrenDisplayTopology()

void FmLink::updateChildrenDisplayTopology ( )
overridevirtual

Reimplemented from FmIsPositionedBase.

◆ updateGPVisualization()

void FmLink::updateGPVisualization ( )

Updates the simplified generic part visualization.

◆ writeToVTF()

virtual bool FmLink::writeToVTF ( VTFAFile &  file,
IntVec *  = NULL,
IntVec *  = NULL 
)
pure virtual

Implemented in FmPart, FmBeam, and FmUserDefinedElement.

Member Data Documentation

◆ alpha1

FFaField<double> FmLink::alpha1

Mass proportional damping.

◆ alpha2

FFaField<double> FmLink::alpha2

Stiffness proportional damping.

◆ baseCadFileName

FFaField<std::string> FmLink::baseCadFileName

File that stores internal CAD data.

◆ massScale

FFaField<double> FmLink::massScale

Mass matrix scaling factor.

◆ myCSOption

FFaField<CoordSysOptionEnum> FmLink::myCSOption

Selected CS option for *this.

◆ myLineRGBColor

FFaField<FmColor> FmLink::myLineRGBColor
protected

◆ myMeshType

FFaField<DetailEnum> FmLink::myMeshType
protected

◆ myModelType

FFaField<DetailEnum> FmLink::myModelType
protected

◆ myRGBColor

FFaField<FmColor> FmLink::myRGBColor
protected

◆ myShininess

FFaField<double> FmLink::myShininess
protected

◆ myTransparency

FFaField<double> FmLink::myTransparency
protected

◆ objFileGroupIndex

FFaFieldUnsignedInt FmLink::objFileGroupIndex

Group index in obj-file.

◆ stiffnessScale

FFaField<double> FmLink::stiffnessScale

Stiffness matrix scaling factor.

◆ visDataFile

FFaField<std::string> FmLink::visDataFile

File for generic part visualization.

◆ visDataFileUnitConverter

FFaField<FFaUnitCalculator> FmLink::visDataFileUnitConverter

Unit converter for visualization file.


The documentation for this class was generated from the following files: