Skip to content

Commit

Permalink
no more initAuxFile, and so no more automatic exelem picked
Browse files Browse the repository at this point in the history
  • Loading branch information
LafCorentin committed Sep 22, 2020
1 parent dded71b commit 757f4d8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
Expand Up @@ -77,8 +77,6 @@ CellMLZincMappingViewZincWidget::CellMLZincMappingViewZincWidget(QWidget *pParen

setup();

initAuxFile();

setupRegion();

draw();
Expand All @@ -95,7 +93,6 @@ CellMLZincMappingViewZincWidget::~CellMLZincMappingViewZincWidget()
void CellMLZincMappingViewZincWidget::changeSource(const QStringList &pZincMeshFileNames)
{
mZincMeshFileNames = pZincMeshFileNames;
initAuxFile();

//TODO the emit launched by reset make opencor crashing
//reset();
Expand Down Expand Up @@ -274,26 +271,6 @@ void CellMLZincMappingViewZincWidget::setupRegion()

//==============================================================================

void CellMLZincMappingViewZincWidget::initAuxFile()
{
// For each exnode file, seek for the exelem

for (auto file : mZincMeshFileNames) {
if (file.endsWith(".exnode")) {
QString newFile = file;
newFile.remove(".exnode");
newFile.append(".exelem");
QFileInfo check_file;
check_file.setFile(newFile);
if (check_file.exists() && !mZincMeshFileNames.contains(newFile)) {
mZincMeshFileNames.append(newFile);
}
}
}
}

//==============================================================================

void CellMLZincMappingViewZincWidget::draw()
{

Expand Down
Expand Up @@ -117,7 +117,6 @@ public slots:
OpenCMISS::Zinc::GraphicsPoints mNodePoints;
OpenCMISS::Zinc::GraphicsPoints mMappedPoints;

void initAuxFile();
void setup();
void setupRegion();
void draw();
Expand Down

0 comments on commit 757f4d8

Please sign in to comment.