/**
**
**/
-wxMaracasRenderTabbedPanel::wxMaracasRenderTabbedPanel(wxWindow* parent, wxMaracasMultipleVolumeRendererManager* img1, wxMaracasSurfaceRenderingManager* img2, wxMaracasSurfaceRenderingManager* img3,
- wxMaracasSurfaceRenderingManager* img4, wxString filename, wxString dataname)
+wxMaracasRenderTabbedPanel::wxMaracasRenderTabbedPanel(wxWindow* parent, wxMaracasMultipleVolumeRendererManager* _volmanager, wxMaracasSurfaceRenderingManager* _surrendmanager1, wxMaracasSurfaceRenderingManager* _surrendmanager2,
+ wxMaracasSurfaceRenderingManager* _surrendmanager3, wxString filename, wxString dataname)
: wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize)
{
//_propid = propid;
+ volmanager = _volmanager;
+ surrendmanager1 = _surrendmanager1;
+ surrendmanager2 = _surrendmanager2;
+ surrendmanager3 = _surrendmanager3;
- createControls(img1, img2, img3, img4, filename, dataname);
+ createControls(filename, dataname);
}
/**
**
**/
-void wxMaracasRenderTabbedPanel::createControls(wxMaracasMultipleVolumeRendererManager* volmanager, wxMaracasSurfaceRenderingManager* surrendmanager1, wxMaracasSurfaceRenderingManager* surrendmanager2,
- wxMaracasSurfaceRenderingManager* surrendmanager3, wxString filename, wxString dataname)
+void wxMaracasRenderTabbedPanel::createControls(wxString filename, wxString dataname)
{
- wxPanel* up = new wxPanel(this, wxID_ANY);
- wxFlexGridSizer* sizerup = new wxFlexGridSizer(2,2,1);
+ //wxPanel* up = new wxPanel(this, wxID_ANY);
+ wxFlexGridSizer* sizerrenderprop = new wxFlexGridSizer(2,3,1);
wxString choices[2];
choices[0] = wxString(_T("On"));
Connect(checkboxVol->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED, (wxObjectEventFunction)&wxMaracasRenderTabbedPanel::onCheckBoxVChange);
checkboxVol->SetValue(true);
- sizerup->Add(checkboxVol, wxFIXED_MINSIZE);
+ sizerrenderprop->Add(checkboxVol, wxFIXED_MINSIZE);
//wxString choices[2];
//choices[0] = wxString(_T("On"));
Connect(checkboxSA->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED, (wxObjectEventFunction)&wxMaracasRenderTabbedPanel::onCheckBoxSAChange);
checkboxSA->SetValue(true);
- sizerup->Add(checkboxSA, wxFIXED_MINSIZE);
+ sizerrenderprop->Add(checkboxSA, wxFIXED_MINSIZE);
//wxString choices[2];
//choices[0] = wxString(_T("On"));
Connect(checkboxSB->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED, (wxObjectEventFunction)&wxMaracasRenderTabbedPanel::onCheckBoxSBChange);
checkboxSB->SetValue(true);
- sizerup->Add(checkboxSB, wxFIXED_MINSIZE);
+ sizerrenderprop->Add(checkboxSB, wxFIXED_MINSIZE);
//wxString choices[2];
//choices[0] = wxString(_T("On"));
Connect(checkboxSC->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED, (wxObjectEventFunction)&wxMaracasRenderTabbedPanel::onCheckBoxSCChange);
checkboxSC->SetValue(true);
- sizerup->Add(checkboxSC, wxFIXED_MINSIZE);
+ sizerrenderprop->Add(checkboxSC, wxFIXED_MINSIZE);
- up->SetSizer(sizerup, true);
- up->SetAutoLayout( true );
-
-
- wxPanel* down = new wxPanel(this, wxID_ANY);
- down->SetSize(100, 100);
- wxFlexGridSizer* sizerdown = new wxFlexGridSizer(1,1,1);
+ //up->SetSizer(sizerup, true);
+ //up->SetAutoLayout( true );
wxtabs = new wxNotebook(this, -1);
- wxtabs->SetSize(100, 100);
- //wxtabs->
+
std::string s = std::string(filename.mb_str());
vtkImageData* img1 = volmanager->getImageData(s);
vtkImageData* img2 = surrendmanager1->getImageData(s);
if(img1!=NULL)
{
s = std::string(dataname.mb_str());
- wxMaracasMultipleVolumeRendererPanel* controlpan1 = addVolume(volmanager, img1, s);
- wxMaracasSurfaceRenderingPanel* controlpan2 = addSurface1(surrendmanager1, img2, s);
- wxMaracasSurfaceRenderingPanel* controlpan3 = addSurface2(surrendmanager2, img3, s);
- wxMaracasSurfaceRenderingPanel* controlpan4 = addSurface3(surrendmanager3, img4, s);
+ wxMaracasMultipleVolumeRendererPanel* controlpan1 = addVolume(img1, s);
+ wxMaracasSurfaceRenderingPanel* controlpan2 = addSurface1(img2, s);
+ wxMaracasSurfaceRenderingPanel* controlpan3 = addSurface2(img3, s);
+ wxMaracasSurfaceRenderingPanel* controlpan4 = addSurface3(img4, s);
wxtabs->AddPage(controlpan1, _T("Volume Rendering"), true);
wxtabs->AddPage(controlpan2, _T("Surf Rend A"));
wxtabs->AddPage(controlpan4, _T("Surf Rend C"));
wxtabs->Refresh();
- sizerdown->Add(wxtabs, wxFIXED_MINSIZE);
-
- down->SetSizer(sizerdown, true);
- down->SetAutoLayout( true );
-
}
- wxFlexGridSizer* sizerrenderprop = new wxFlexGridSizer(2,1,5);
- sizerrenderprop->Add(up, wxFIXED_MINSIZE);
- sizerrenderprop->Add(down, wxFIXED_MINSIZE);
+ //wxFlexGridSizer* sizerrenderprop = new wxFlexGridSizer(2,1,5);
+ //sizerrenderprop->Add(up, wxFIXED_MINSIZE);
+ sizerrenderprop->Add(wxtabs, wxFIXED_MINSIZE);
this->SetSizer(sizerrenderprop, true);
this->SetAutoLayout( true );
/*
*
*/
-wxMaracasMultipleVolumeRendererPanel* wxMaracasRenderTabbedPanel::addVolume(wxMaracasMultipleVolumeRendererManager* volmanager, vtkImageData* img, std::string dataname)
+wxMaracasMultipleVolumeRendererPanel* wxMaracasRenderTabbedPanel::addVolume(vtkImageData* img, std::string dataname)
{
try
}
}
-wxMaracasSurfaceRenderingPanel* wxMaracasRenderTabbedPanel::addSurface1(wxMaracasSurfaceRenderingManager* surrendmanager1, vtkImageData* img, std::string dataname)
+wxMaracasSurfaceRenderingPanel* wxMaracasRenderTabbedPanel::addSurface1(vtkImageData* img, std::string dataname)
{
try
{
}
}
-wxMaracasSurfaceRenderingPanel* wxMaracasRenderTabbedPanel::addSurface2(wxMaracasSurfaceRenderingManager* surrendmanager2, vtkImageData* img, std::string dataname)
+wxMaracasSurfaceRenderingPanel* wxMaracasRenderTabbedPanel::addSurface2(vtkImageData* img, std::string dataname)
{
try
{
}
}
-wxMaracasSurfaceRenderingPanel* wxMaracasRenderTabbedPanel::addSurface3(wxMaracasSurfaceRenderingManager* surrendmanager3, vtkImageData* img, std::string dataname)
+wxMaracasSurfaceRenderingPanel* wxMaracasRenderTabbedPanel::addSurface3(vtkImageData* img, std::string dataname)
{
try
{
wxMaracasRenderTabbedPanel(wxWindow* parent, wxMaracasMultipleVolumeRendererManager* img1, wxMaracasSurfaceRenderingManager* img2, wxMaracasSurfaceRenderingManager* img3,
wxMaracasSurfaceRenderingManager* img4, wxString filename, wxString dataname);
~wxMaracasRenderTabbedPanel();
- void createControls(wxMaracasMultipleVolumeRendererManager* volmanager, wxMaracasSurfaceRenderingManager* surrendmanager1, wxMaracasSurfaceRenderingManager* surrendmanager2,
- wxMaracasSurfaceRenderingManager* surrendmanager3, wxString filename, wxString dataname);
- wxMaracasMultipleVolumeRendererPanel* addVolume(wxMaracasMultipleVolumeRendererManager* volmanager, vtkImageData* img, std::string dataname);
- wxMaracasSurfaceRenderingPanel* addSurface1(wxMaracasSurfaceRenderingManager* surrendmanager, vtkImageData* img, std::string dataname);
- wxMaracasSurfaceRenderingPanel* addSurface2(wxMaracasSurfaceRenderingManager* surrendmanager, vtkImageData* img, std::string dataname);
- wxMaracasSurfaceRenderingPanel* addSurface3(wxMaracasSurfaceRenderingManager* surrendmanager, vtkImageData* img, std::string dataname);
+ void createControls(wxString filename, wxString dataname);
+ wxMaracasMultipleVolumeRendererPanel* addVolume(vtkImageData* img, std::string dataname);
+ wxMaracasSurfaceRenderingPanel* addSurface1(vtkImageData* img, std::string dataname);
+ wxMaracasSurfaceRenderingPanel* addSurface2(vtkImageData* img, std::string dataname);
+ wxMaracasSurfaceRenderingPanel* addSurface3(vtkImageData* img, std::string dataname);
void onCheckBoxVChange(wxCommandEvent& event);
void onCheckBoxSAChange(wxCommandEvent& event);
void onCheckBoxSBChange(wxCommandEvent& event);
bool first;
- //wxMaracasMultipleVolumeRendererPanel* _irmview;
- //wxMaracasSurfaceRenderingPanel* _surview1;
- //wxMaracasSurfaceRenderingPanel* _surview2;
- //wxMaracasSurfaceRenderingPanel* _surview3;
+ wxMaracasMultipleVolumeRendererManager* volmanager;
+ wxMaracasSurfaceRenderingManager* surrendmanager1;
+ wxMaracasSurfaceRenderingManager* surrendmanager2;
+ wxMaracasSurfaceRenderingManager* surrendmanager3;
};
#endif /*wxMaracasMultipleVolumeRendererPanel_H_*/
#include "wxMaracasRendererView.h"
#include "wxMaracasRenderTabbedPanel.h"
#include "wxMaracasMultipleVolumeRendererManager.h"
-#include "wxMaracasMultipleVolumeRendererPanel.h"
-#include "wxMaracasSurfaceRenderingProp3DMHD.h"
+//#include "wxMaracasMultipleVolumeRendererPanel.h"
+//#include "wxMaracasSurfaceRenderingProp3DMHD.h"
#include "wxMaracasSurfaceRenderingManager.h"
~wxMaracasRendererView( );
static wxMaracasRendererView* getInstance(wxWindow* parent,std::string path="");
-
static wxMaracasRendererView* getInstance();
-
void setRenderer(vtkRenderer* renderer);
-
- wxMaracasMultipleVolumeRendererPanel* addVolume(vtkImageData* img, std::string dataname="");
-
- wxMaracasSurfaceRenderingPanel* addSurface1(vtkImageData* img, std::string dataname="");
-
- wxMaracasSurfaceRenderingPanel* addSurface2(vtkImageData* img, std::string dataname="");
-
- wxMaracasSurfaceRenderingPanel* addSurface3(vtkImageData* img, std::string dataname="");
void loadVolume(wxString filename, wxString dataname);
-
void onLoadImageFile();
-
void addPanels(wxString filename, wxString dataname = _T(""));
-
+ wxMaracasRenderTabbedPanel* getTabbedPanel();
std::string getPath();
-
void deleteVolume(int volid);
void addRemoveActorVol(int id, bool remove);
static wxMaracasRendererView* instance;
wxMaracasMultipleVolumeRendererManager* volmanager;
-
wxMaracasSurfaceRenderingManager* surrendmanager1;
-
wxMaracasSurfaceRenderingManager* surrendmanager2;
-
wxMaracasSurfaceRenderingManager* surrendmanager3;
-
+
wxMaracasRenderTabbedPanel* wxtabs;
-
wxAuiManager* wxauimanager;
std::string _path;