]> Creatis software - creaContours.git/blobdiff - bbtk/src/bbCreaContournDimensions.cxx
For the new BBTK Version
[creaContours.git] / bbtk / src / bbCreaContournDimensions.cxx
index 6708db5ec1c9f4ef009aa50368eee0eeca6a5467..dde333b68011e0c931ca2f1a2a810574761fb5d2 100644 (file)
@@ -19,6 +19,7 @@ void nDimensions::Process()
        std::vector<vtkImageData*> selectedimages;
        if(img!=NULL && currentimg!=img){
 
+               wxContourMainFrame::getInstance()->ShowToolsPanel(true);
                currentimg=img;
                selectedimages.push_back(img);
                wxContourMainFrame::getInstance()->setVectImages(selectedimages);
@@ -52,16 +53,20 @@ void nDimensions::CreateWidget(wxWindow* parent)
        //new wxContourMainFrame( frame1, wxID_ANY, _T(""), wxPoint(50,50), wxSize(800, 600),selectedimages ); 
        //frame1->CreateStatusBar();
        //bbSetOutputWidget( frame1 ); 
-
+std::string path="";
+#ifdef WIN32
        char currentPath[_MAX_PATH];
        HMODULE hand = GetModuleHandle("bbcreaContours");
        GetModuleFileName(hand, currentPath, _MAX_PATH);
 
-       std::string path = currentPath;
+       path = currentPath;
 
        path = path.substr(0,path.find_last_of("\\"));
+#endif
 
        wxPanel* panel = wxContourMainFrame::getInstance(parent, wxID_ANY, wxString(_T("")), wxPoint(100,50), wxSize(800, 600), selectedimages,wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER,path );
+       wxContourMainFrame::getInstance()->ShowToolsPanel(false);
+       //std::cout<<"creaContours = "<<panel<<std::endl;
        bbSetOutputWidget( panel ); 
        
    
@@ -69,20 +74,21 @@ void nDimensions::CreateWidget(wxWindow* parent)
     
   
 }
-void nDimensions::bbUserConstructor()
+//-----------------------------------------------------------------    
+void nDimensions::bbUserSetDefaultValues()
 {
-
        bbSetInputContourType(0);
-       bbSetInputIn(NULL);
-
+       bbSetInputIn(NULL);   
 }
-void nDimensions::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
 
-}
-void nDimensions::bbUserDestructor()
+//-----------------------------------------------------------------    
+void nDimensions::bbUserInitializeProcessing()
 {
+}
 
+//-----------------------------------------------------------------    
+void nDimensions::bbUserFinalizeProcessing()
+{
 }
 }
 // EO namespace bbCreaContour