Program: wxMaracas
Module: $RCSfile: wxMaracasMultipleVolumeRendererView.cxx,v $
Language: C++
- Date: $Date: 2009/07/20 10:06:12 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2009/10/15 11:56:43 $
+ Version: $Revision: 1.3 $
Copyright: (c) 2002, 2003
License:
std::string iconsdir = path;
iconsdir+="/data/Icons";
this->_toolb = new ToolBarMultipleVolumeRenderer(this,iconsdir);
+ wxStaticText* txt = new wxStaticText(this, -1, wxString(_T(" Volume Rendering ")));
wxAuiPaneInfo paneinfo;
+ wxauimanager->AddPane(txt,paneinfo.ToolbarPane().Top());
wxauimanager->AddPane(_toolb,paneinfo.ToolbarPane().Top());
wxauimanager->Update();
wxAuiPaneInfo paneinfo;
wxauimanager->AddPane(irmview, paneinfo.DefaultPane().Centre().DestroyOnClose().Caption(s));
wxauimanager->Update();
-
-
}
void wxMaracasMultipleVolumeRendererView::addVolume(vtkImageData* img, std::string dataname){
std::string s = std::string(filename.mb_str());
vtkImageData* img = volmanager->getImageData(s);
+ imgVect.push_back(img);
+
if(img!=NULL){
s = std::string(dataname.mb_str());
addVolume(img, s);
}
-
}
void wxMaracasMultipleVolumeRendererView::deleteVolume(int volid){
- volmanager->deleteActor(volid);
+ //volmanager->deleteActor(volid);
}
void wxMaracasMultipleVolumeRendererView::SetValuesColorPointsFunction(int volid, std::vector<double> greylevelcolors,std::vector<double> red,std::vector<double> green,std::vector<double> blue){
- volmanager->setVolumeColor(volid, greylevelcolors, red, green, blue);
+ //volmanager->setVolumeColor(volid, greylevelcolors, red, green, blue);
}
void wxMaracasMultipleVolumeRendererView::SetValuesPointsFunction(int volid, std::vector<double> greylevel, std::vector<double> values){
- volmanager->setVolumeOpacity(volid, greylevel, values);
+ //volmanager->setVolumeOpacity(volid, greylevel, values);
}
vtkPiecewiseFunction* wxMaracasMultipleVolumeRendererView::GetTransferFunction(int volumeid){
//iconfil+= "/OpenImage.png";
//wxBitmap* bitmap0 = new wxBitmap(wxString(iconfil.c_str(),wxConvUTF8), wxBITMAP_TYPE_PNG);
wxBitmap bitmap0(OpenImage_xpm);
- this->AddTool(1, wxString(_T("test")),bitmap0);
+ this->AddTool(1, wxString(_T("test")),bitmap0, NULL, wxITEM_NORMAL, wxString(_T("Open File")));
/*iconfil+= "/Open.png";
wxBitmap* bitmap2 = new wxBitmap(wxString(iconfil.c_str(),wxConvUTF8), wxBITMAP_TYPE_PNG);