Changeset fcbacb9 in OpenModelica for OMEdit/OMEditGUI/Editors/MetaModelEditor.h


Ignore:
Timestamp:
2016-04-07T17:11:46+02:00 (8 years ago)
Author:
Adeel Asghar <adeel.asghar@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
0b9b099
Parents:
8f6676e7
Message:

Check if interfaces are aligned or not.
Fixed fetch interface data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditGUI/Editors/MetaModelEditor.h

    rd8c46e3 rfcbacb9  
    6969  QDomElement getSubModelsElement();
    7070  QDomNodeList getSubModels();
     71  QDomElement getInterfacePoint(QString subModelName, QString interfaceName);
    7172  QDomElement getConnectionsElement();
    7273  QDomNodeList getConnections();
     
    8485  QString getSimulationStopTime();
    8586  void addInterfacesData(QDomElement interfaces);
    86   bool existInterfaceData(QString subModelName, QString interfaceName);
     87  bool interfacesAligned(QString interface1, QString interface2);
    8788  bool deleteSubModel(QString name);
    8889  bool deleteConnection(QString startComponentName, QString endComponentName);
     
    9293  bool mForceSetPlainText;
    9394  XMLDocument mXmlDocument;
     95
     96  bool existInterfaceData(QString subModelName, QDomElement interfaceDataElement);
    9497  QGenericMatrix<3,3,double> getRotationMatrix(QGenericMatrix<3,1,double> rotation);
    9598  bool getPositionAndRotationVectors(QString interfacePoint, QGenericMatrix<3,1,double> &CG_X_PHI_CG, QGenericMatrix<3,1,double> &X_C_PHI_X,
    9699                                     QGenericMatrix<3,1,double> &CG_X_R_CG, QGenericMatrix<3,1,double> &X_C_R_X);
    97   bool interfacesAligned(QString interface1, QString interface2);
    98100  bool fuzzyCompare(double p1, double p2);
    99101  QGenericMatrix<3, 1, double> getRotationVector(QGenericMatrix<3, 3, double> R);
     
    104106  virtual void contentsHasChanged(int position, int charsRemoved, int charsAdded);
    105107  virtual void toggleCommentSelection() {}
    106   void alignInterfaces(QString fromSubModel, QString toSubModel);
     108  void alignInterfaces(QString fromSubModel, QString toSubModel, bool showError = true);
    107109};
    108110
Note: See TracChangeset for help on using the changeset viewer.