return configured;
}
+
+ bool wxContourMainFrame::addNewPanel(wxPanel* panel)
+ {
+ bool configured = panel!=NULL;
+ configured &= panel!=NULL;
+
+ if( configured )
+ {
+ notebook->AddPage( panel, wxT(" Viewer "), true );
+ m_mgr.Update();
+ }
+ return configured;
+ }
+
//------------------------------------------------------------------------------------------------------------
// Attributes getters and setters
//------------------------------------------------------------------------------------------------------------
//Assign a fake color for the upper image, and set the white as transparent
for(int i = range[0]; i < range[1]; i++)
{
- //std::cout<<"Int equal: " << i << std::endl;
-
if( i >= minVal && i <= maxVal )
{
lookup->SetTableValue(i, 1.0, 0.0, 0.0, 1);
viewer->GetRenderer()->AddActor( upperImageActor );
viewer->Render();
- //wxThresholdPanel * panel = new wxThresholdPanel( viewer, notebook );
-
- //onThresholdPanel(panel);
-
RefreshInterface();
-
- //baseImageActor = vtkImageActor::New( );
- //baseImageActor->SetInput( mBox->bbGetInputImage1() );
}
-bool wxContourMainFrame::onThresholdPanel(wxPanel* panel)
- {
- bool configured = panel!=NULL;
- configured &= panel!=NULL;
-
- if( configured )
- {
- notebook->AddPage( panel, wxT(" Threshold "), true );
- m_mgr.Update();
- }
- return configured;
-}
-
void wxContourMainFrame::showAxis(bool show)
{
_theViewPanel->SetVisibleAxis(show);