|
FEDEM Model Database
R8.0
Source code of the FEDEM model database
|
#include <FmGlobalViewSettings.H>


Classes | |
| struct | FmSymbolSpec |
Public Member Functions | |
| FmGlobalViewSettings () | |
| bool | getNiceTransparency () const |
| void | setNiceTransparency (bool transpMode) |
| bool | isAntialiazingOn () const |
| void | setAntialiazingOn (bool flag) |
| bool | isFogOn () const |
| void | setFogOn (bool flag) |
| double | getFogVisibility () const |
| void | setFogVisibility (double vis) |
| void | sync () const |
| bool | visibleRevoluteJoints () const |
| bool | visibleBallJoints () const |
| bool | visibleRigidJoints () const |
| bool | visibleFreeJoints () const |
| bool | visiblePrismaticJoints () const |
| bool | visibleCylindricJoints () const |
| bool | visibleCamJoints () const |
| bool | visibleFeedbacks () const |
| bool | visibleHPs () const |
| bool | visibleJoints () const |
| bool | visibleParts () const |
| bool | visiblePartCS () const |
| bool | visibleInternalPartCSs () const |
| bool | visiblePartCoGCSs () const |
| bool | visibleBeams () const |
| bool | visibleBeamCS () const |
| bool | visibleBeamTriads () const |
| bool | visibleLoads () const |
| bool | visibleSprDas () const |
| bool | visibleStickers () const |
| bool | visibleTriads () const |
| bool | visibleRefPlanes () const |
| bool | visibleSeaStates () const |
| bool | visibleWaves () const |
| bool | visibleTires () const |
| bool | visibleStrainRosettes () const |
| void | showRevoluteJoints (bool) |
| void | showBallJoints (bool) |
| void | showRigidJoints (bool) |
| void | showFreeJoints (bool) |
| void | showPrismaticJoints (bool) |
| void | showCylindricJoints (bool) |
| void | showCamJoints (bool) |
| void | showFeedbacks (bool) |
| void | showHPs (bool) |
| void | showJoints (bool) |
| void | showParts (bool) |
| void | showPartCS (bool) |
| void | showBeams (bool) |
| void | showBeamCS (bool) |
| void | showInternalPartCSs (bool) |
| void | showPartCoGCSs (bool) |
| void | showBeamTriads (bool) |
| void | showLoads (bool) |
| void | showSprDas (bool) |
| void | showStickers (bool) |
| void | showTriads (bool) |
| void | showRefPlanes (bool) |
| void | showSeaStates (bool) |
| void | showWaves (bool) |
| void | showTires (bool) |
| void | showStrainRosettes (bool) |
| const FmColor & | getFeedbackColor () const |
| void | setFeedbackColor (const FmColor &color) |
| const FmColor & | getHPColor () const |
| void | setHPColor (const FmColor &color) |
| const FmColor & | getJointColor () const |
| void | setJointColor (const FmColor &color) |
| const FmColor & | getLoadColor () const |
| void | setLoadColor (const FmColor &color) |
| const FmColor & | getSprDaColor () const |
| void | setSprDaColor (const FmColor &color) |
| const FmColor & | getStickerColor () const |
| void | setStickerColor (const FmColor &color) |
| const FmColor & | getTriadColor () const |
| void | setTriadColor (const FmColor &color) |
| const FmColor & | getGroundedTriadColor () const |
| void | setGroundedTriadColor (const FmColor &color) |
| const FmColor & | getViewerBackgroundColor () const |
| void | setViewerBackgroundColor (const FmColor &color) |
| const FmColor & | getInactiveColor () const |
| void | setInactiveColor (const FmColor &color) |
| const FmColor & | getTireColor () const |
| void | setTireColor (const FmColor &color) |
| const FmColor & | getStrainRosetteColor () const |
| void | setStrainRosetteColor (const FmColor &color) |
| bool | getSolidMode () const |
| bool | getSolidModeWithEdges () const |
| void | setSolidMode (bool mode, bool showEdgesInSolid=true) |
| int | getSymbolLineWidth () const |
| void | setSymbolLineWidth (int width) |
| float | getSymbolScale () const |
| void | setSymbolScale (float var) |
| cameraData & | getCameraData () const |
| void | setCameraData (const cameraData &cData, bool updateDisplay=true) |
| ctrlViewData & | getCtrlViewData () const |
| void | setCtrlViewData (const ctrlViewData &cvData, bool updateDisplay=true) |
| virtual std::ostream & | writeFMF (std::ostream &os=std::cout) |
| Writes out this object in the model database file format. More... | |
| virtual bool | clone (FmBase *obj, int depth) |
| 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 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... | |
| virtual void | drawObject () |
| Visualization interface for objects that can be rendered. 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 FmBase * | clone (int) const |
| Returns an unconnected copy of this object. More... | |
| virtual void | onMainConnected () |
| Invokes call-backs after this object is inserted into the database. More... | |
| virtual void | onMainDisconnected () |
| Invokes call-backs after this object is removed from the database. More... | |
| virtual void | onMainAboutToDisconnect () |
| Invokes call-backs before this object is removed from the database. 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... | |
| virtual void | initAfterResolve () |
| Initializes the fields after resolve. 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... | |
Static Public Member Functions | |
| static void | setLinkDefaultColors (std::vector< FmColor > &colors) |
| static const FmColor & | getLinkDefaultColor (int index=-1) |
| static bool | readAndConnect (std::istream &is, std::ostream &os=std::cout) |
Static Public Member Functions inherited from FFaFieldContainer | |
| static void | removeDictInstance () |
| Removes the heap-allocated field name dictionary. More... | |
Protected Member Functions | |
| virtual | ~FmGlobalViewSettings () |
| virtual bool | cloneLocal (FmBase *obj, int depth) |
| Clones the data fields of *obj into *this. 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 | |
| virtual bool | eraseOptions () |
| Hook for class-specific tasks before deleting *this in erase(). More... | |
| 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, FmGlobalViewSettings *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... | |
Private Member Functions | |
| Fmd_DB_HEADER_INIT () | |
Additional Inherited Members | |
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... | |
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... | |
Protected Attributes inherited from FFaFieldContainer | |
| FieldContainerMap | myFields |
| All data fields of this object. More... | |
|
protectedvirtual |
| FmGlobalViewSettings::FmGlobalViewSettings | ( | ) |
|
virtual |
Copies the fields of another object into *this.
Reimplemented from FmBase.
|
protectedvirtual |
Clones the data fields of *obj into *this.
This method tries to copy all fields of the cloned object into this object.
Reimplemented from FmBase.
|
private |
| cameraData & FmGlobalViewSettings::getCameraData | ( | ) | const |
| ctrlViewData & FmGlobalViewSettings::getCtrlViewData | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getFeedbackColor | ( | ) | const |
| double FmGlobalViewSettings::getFogVisibility | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getGroundedTriadColor | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getHPColor | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getInactiveColor | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getJointColor | ( | ) | const |
|
static |
| const FmColor & FmGlobalViewSettings::getLoadColor | ( | ) | const |
| bool FmGlobalViewSettings::getNiceTransparency | ( | ) | const |
| bool FmGlobalViewSettings::getSolidMode | ( | ) | const |
| bool FmGlobalViewSettings::getSolidModeWithEdges | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getSprDaColor | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getStickerColor | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getStrainRosetteColor | ( | ) | const |
| int FmGlobalViewSettings::getSymbolLineWidth | ( | ) | const |
| float FmGlobalViewSettings::getSymbolScale | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getTireColor | ( | ) | const |
| const FmColor & FmGlobalViewSettings::getTriadColor | ( | ) | const |
|
inlinevirtual |
Returns the type name of this object for use in the GUI.
Reimplemented from FmBase.
| const FmColor & FmGlobalViewSettings::getViewerBackgroundColor | ( | ) | const |
| bool FmGlobalViewSettings::isAntialiazingOn | ( | ) | const |
| bool FmGlobalViewSettings::isFogOn | ( | ) | const |
|
staticprotected |
|
static |
| void FmGlobalViewSettings::setAntialiazingOn | ( | bool | flag | ) |
| void FmGlobalViewSettings::setCameraData | ( | const cameraData & | cData, |
| bool | updateDisplay = true |
||
| ) |
| void FmGlobalViewSettings::setCtrlViewData | ( | const ctrlViewData & | cvData, |
| bool | updateDisplay = true |
||
| ) |
| void FmGlobalViewSettings::setFeedbackColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setFogOn | ( | bool | flag | ) |
| void FmGlobalViewSettings::setFogVisibility | ( | double | vis | ) |
| void FmGlobalViewSettings::setGroundedTriadColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setHPColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setInactiveColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setJointColor | ( | const FmColor & | color | ) |
|
static |
| void FmGlobalViewSettings::setLoadColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setNiceTransparency | ( | bool | transpMode | ) |
| void FmGlobalViewSettings::setSolidMode | ( | bool | mode, |
| bool | showEdgesInSolid = true |
||
| ) |
| void FmGlobalViewSettings::setSprDaColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setStickerColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setStrainRosetteColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setSymbolLineWidth | ( | int | width | ) |
| void FmGlobalViewSettings::setSymbolScale | ( | float | var | ) |
| void FmGlobalViewSettings::setTireColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setTriadColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::setViewerBackgroundColor | ( | const FmColor & | color | ) |
| void FmGlobalViewSettings::showBallJoints | ( | bool | var | ) |
| void FmGlobalViewSettings::showBeamCS | ( | bool | var | ) |
| void FmGlobalViewSettings::showBeams | ( | bool | var | ) |
| void FmGlobalViewSettings::showBeamTriads | ( | bool | var | ) |
| void FmGlobalViewSettings::showCamJoints | ( | bool | var | ) |
| void FmGlobalViewSettings::showCylindricJoints | ( | bool | var | ) |
| void FmGlobalViewSettings::showFeedbacks | ( | bool | var | ) |
| void FmGlobalViewSettings::showFreeJoints | ( | bool | var | ) |
| void FmGlobalViewSettings::showHPs | ( | bool | var | ) |
| void FmGlobalViewSettings::showInternalPartCSs | ( | bool | var | ) |
| void FmGlobalViewSettings::showJoints | ( | bool | var | ) |
| void FmGlobalViewSettings::showLoads | ( | bool | var | ) |
| void FmGlobalViewSettings::showPartCoGCSs | ( | bool | var | ) |
| void FmGlobalViewSettings::showPartCS | ( | bool | var | ) |
| void FmGlobalViewSettings::showParts | ( | bool | var | ) |
| void FmGlobalViewSettings::showPrismaticJoints | ( | bool | var | ) |
| void FmGlobalViewSettings::showRefPlanes | ( | bool | var | ) |
| void FmGlobalViewSettings::showRevoluteJoints | ( | bool | var | ) |
| void FmGlobalViewSettings::showRigidJoints | ( | bool | var | ) |
| void FmGlobalViewSettings::showSeaStates | ( | bool | var | ) |
| void FmGlobalViewSettings::showSprDas | ( | bool | var | ) |
| void FmGlobalViewSettings::showStickers | ( | bool | var | ) |
| void FmGlobalViewSettings::showStrainRosettes | ( | bool | var | ) |
| void FmGlobalViewSettings::showTires | ( | bool | var | ) |
| void FmGlobalViewSettings::showTriads | ( | bool | var | ) |
| void FmGlobalViewSettings::showWaves | ( | bool | var | ) |
| void FmGlobalViewSettings::sync | ( | ) | const |
| bool FmGlobalViewSettings::visibleBallJoints | ( | ) | const |
| bool FmGlobalViewSettings::visibleBeamCS | ( | ) | const |
| bool FmGlobalViewSettings::visibleBeams | ( | ) | const |
| bool FmGlobalViewSettings::visibleBeamTriads | ( | ) | const |
| bool FmGlobalViewSettings::visibleCamJoints | ( | ) | const |
| bool FmGlobalViewSettings::visibleCylindricJoints | ( | ) | const |
| bool FmGlobalViewSettings::visibleFeedbacks | ( | ) | const |
| bool FmGlobalViewSettings::visibleFreeJoints | ( | ) | const |
| bool FmGlobalViewSettings::visibleHPs | ( | ) | const |
| bool FmGlobalViewSettings::visibleInternalPartCSs | ( | ) | const |
| bool FmGlobalViewSettings::visibleJoints | ( | ) | const |
| bool FmGlobalViewSettings::visibleLoads | ( | ) | const |
| bool FmGlobalViewSettings::visiblePartCoGCSs | ( | ) | const |
| bool FmGlobalViewSettings::visiblePartCS | ( | ) | const |
| bool FmGlobalViewSettings::visibleParts | ( | ) | const |
| bool FmGlobalViewSettings::visiblePrismaticJoints | ( | ) | const |
| bool FmGlobalViewSettings::visibleRefPlanes | ( | ) | const |
| bool FmGlobalViewSettings::visibleRevoluteJoints | ( | ) | const |
| bool FmGlobalViewSettings::visibleRigidJoints | ( | ) | const |
| bool FmGlobalViewSettings::visibleSeaStates | ( | ) | const |
| bool FmGlobalViewSettings::visibleSprDas | ( | ) | const |
| bool FmGlobalViewSettings::visibleStickers | ( | ) | const |
| bool FmGlobalViewSettings::visibleStrainRosettes | ( | ) | const |
| bool FmGlobalViewSettings::visibleTires | ( | ) | const |
| bool FmGlobalViewSettings::visibleTriads | ( | ) | const |
| bool FmGlobalViewSettings::visibleWaves | ( | ) | const |
|
virtual |
Writes out this object in the model database file format.
Reimplemented from FmBase.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |