const std::string& filter_name, const std::string& output_name
)
{
- /*
// Get output
- auto filter = this->m_Workspace.GetFilter( filter_name );
- if( filter != NULL )
- {
- auto output = filter->GetOutputData( output_name );
- if( output != NULL )
- {
- std::string data_name = output_name + "@" + filter_name;
- this->m_UI->Viewer->HideData( data_name );
+ /* TODO
+ auto filter = this->m_Workspace.GetFilter( filter_name );
+ if( filter != NULL )
+ {
+ auto output = filter->GetOutputData( output_name );
+ if( output != NULL )
+ {
+ std::string data_name = output_name + "@" + filter_name;
+ this->m_UI->Viewer->HideData( data_name );
- } // fi
+ } // fi
- } // fi
+ } // fi
*/
}
const std::string& filter_name, const std::string& output_name
)
{
- /*
// Get output
auto filter = this->m_Workspace.GetFilter( filter_name );
if( filter != NULL )
{
- auto output = filter->GetOutputData( output_name );
+ auto output = filter->GetOutputData< vtkPolyData >( output_name );
if( output != NULL )
{
- std::string data_name = output_name + "@" + filter_name;
- auto prop = this->m_UI->Viewer->GetProp( data_name );
+ auto actor = this->m_UI->Viewer->GetActor( output );
+ if( actor != NULL )
+ {
+ cpExtensions::QT::PropertyWidget* wdg =
+ new cpExtensions::QT::PropertyWidget( NULL );
+ wdg->SetProp( actor );
+ wdg->SetRenderWindow(
+ this->m_UI->Viewer->GetInteractor( 3 )->GetRenderWindow( )
+ );
+ wdg->show( );
- cpExtensions::QT::PropertyWidget* wdg =
- new cpExtensions::QT::PropertyWidget( NULL );
- wdg->SetProp( prop );
- wdg->SetRenderWindow( this->m_UI->Viewer->GetInteractor( 3 )->GetRenderWindow( ) );
- wdg->show( );
+ } // fi
}
else
QMessageBox::critical(
);
} // fi
- */
}
// eof - $RCSfile$
<x>0</x>
<y>0</y>
<width>800</width>
- <height>27</height>
+ <height>22</height>
</rect>
</property>
<widget class="QMenu" name="MenuFile">
<addaction name="separator"/>
<addaction name="ActionExit"/>
</widget>
+ <widget class="QMenu" name="menu_View">
+ <property name="title">
+ <string>&View</string>
+ </property>
+ <widget class="QMenu" name="menuBackgrounds">
+ <property name="title">
+ <string>Backgrounds</string>
+ </property>
+ <addaction name="ActionBackground3D"/>
+ <addaction name="ActionBackgroundMPR"/>
+ </widget>
+ <addaction name="menuBackgrounds"/>
+ </widget>
<addaction name="MenuFile"/>
+ <addaction name="menu_View"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="ActionOpenWorkspace">
<string>E&xit</string>
</property>
</action>
+ <action name="ActionBackgroundMPR">
+ <property name="text">
+ <string>MPR</string>
+ </property>
+ </action>
+ <action name="ActionBackground3D">
+ <property name="text">
+ <string>3D</string>
+ </property>
+ </action>
</widget>
<customwidgets>
<customwidget>
return( NULL );
}
+// -------------------------------------------------------------------------
+vtkActor* cpExtensions::QT::SimpleMPRWidget::
+GetActor( vtkPolyData* mesh )
+{
+ auto i = this->m_PolyDatas.find( mesh );
+ if( i != this->m_PolyDatas.end( ) )
+ return( i->second.Actor.GetPointer( ) );
+ else
+ return( NULL );
+}
+
// -------------------------------------------------------------------------
void cpExtensions::QT::SimpleMPRWidget::
_SyncBottom( int a, int b )
// Visual objects
vtkRenderWindowInteractor* GetInteractor( unsigned int i );
+ vtkActor* GetActor( vtkPolyData* mesh );
+
private slots:
void _SyncBottom( int a, int b );
void _SyncTop( int a, int b );