Skip to content

Commit 66699ae

Browse files
committed
added initializePipeline()
1 parent 5e474ee commit 66699ae

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/qt-guilib/TopoDataItem.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ void TopoDataItem::setupAxes(vtkCubeAxesActor *axesActor,
144144
}
145145

146146

147+
void TopoDataItem::initializePipeline() {
148+
clearAddedActors();
149+
}
147150

148151
bool TopoDataItem::loadDatafile(QUrl fileUrl) {
149152

@@ -154,6 +157,8 @@ bool TopoDataItem::loadDatafile(QUrl fileUrl) {
154157
setDataFilename(filename);
155158

156159
pipeline_->firstRender_ = true;
160+
161+
initializePipeline();
157162

158163
reassemblePipeline();
159164

src/qt-guilib/TopoDataItem.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ namespace mb_system {
235235

236236
protected:
237237

238+
/// Initialize pipeline structure
239+
void initializePipeline(void);
240+
238241
/// Assemble pipeline elements
239242
virtual void assemblePipeline(Pipeline *pipeline);
240243

0 commit comments

Comments
 (0)