Skip to content

Commit

Permalink
Modules: unify volume settings apply
Browse files Browse the repository at this point in the history
  • Loading branch information
codeling committed Feb 24, 2023
1 parent 58b4291 commit 404aada
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion modules/DynamicVolumeLines/dlg_DynamicVolumeLines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,6 @@ void dlg_DynamicVolumeLines::setSelectionForRenderer(QList<QCPGraph *> visSelGra
ren->AddViewProp(cornerAnnotation);
ren->ResetCamera();
m_volRen = QSharedPointer<iAVolumeRenderer>::create(ren, m_imgDataList[datasetIdx], tf);
//m_volRen->applySettings(m_mdiChild->volumeSettings());
m_volRen->setVisible(true);
m_volRen->setBoundsVisible(true);
m_wgtContainer->renderWindow()->AddRenderer(ren);
Expand Down
1 change: 0 additions & 1 deletion modules/FuzzyFeatureTracking/dlg_dataView4DCT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ dlg_dataView4DCT::dlg_dataView4DCT(QWidget* parent, std::vector<iAVolumeViewer*>
m_volumeRenderer[i]->setVisible(true);
bool slicerVisibility[3] = { false, false, false };
m_renderers[i]->applySettings(m_mdiChild->renderSettings(), slicerVisibility );
//m_volumeRenderer[i]->applySettings(m_mdiChild->volumeSettings());

// setup renderers
m_renderers[i]->showHelpers(SHOW_HELPERS);
Expand Down
1 change: 0 additions & 1 deletion modules/ImNDT/iAImNDTModuleInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ void iAImNDTModuleInterface::renderVolume()
auto child = m_mainWnd->activeMdiChild();
m_volumeRenderer = std::make_shared<iAVolumeRenderer>(m_vrEnv->renderer(), child->firstImageData().Get(),
dynamic_cast<iAVolumeViewer*>(child->dataSetViewer(child->firstImageDataSetIdx()))->transfer());
//m_volumeRenderer->applySettings(child->volumeSettings());
m_volumeRenderer->setVisible(true);
m_volumeRenderer->setBoundsVisible(true);
m_vrEnv->start();
Expand Down
1 change: 0 additions & 1 deletion modules/InSpectr/dlg_InSpectr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,6 @@ void dlg_InSpectr::showLinkedElementMaps( int show )
InitElementRenderer( elemRend, i );
bool slicerVisibility[3] = { false, false, false };
elemRend->GetRenderer()->applySettings(mdiChild->renderSettings(), slicerVisibility);
elemRend->ApplyVolumeSettings(mdiChild->volumeSettings());
m_rendererManager.addToBundle(elemRend->GetRenderer()->renderer());
m_elementRenderers.push_back( elemRend );
if(isFirst)
Expand Down
5 changes: 0 additions & 5 deletions modules/InSpectr/dlg_elementRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,3 @@ size_t dlg_elementRenderer::GetRefLibIndex()
{
return m_indexInReferenceLib;
}

void dlg_elementRenderer::ApplyVolumeSettings(iAVolumeSettings const & vs)
{
m_volumeRenderer->applyAttributes(vs.toMap());
}
1 change: 0 additions & 1 deletion modules/InSpectr/dlg_elementRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class dlg_elementRenderer : public dlg_elemRendererContainer
iARenderer * GetRenderer();
void SetRefLibIndex(size_t index);
size_t GetRefLibIndex();
void ApplyVolumeSettings(iAVolumeSettings const & vs);

private:
iARendererImpl * m_renderer;
Expand Down

0 comments on commit 404aada

Please sign in to comment.