Program: wxMaracas
Module: $RCSfile: wxMaracas_N_ViewersWidget.cxx,v $
Language: C++
- Date: $Date: 2008/10/31 16:32:42 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/12/03 11:42:54 $
+ Version: $Revision: 1.2 $
Copyright: (c) 2002, 2003
License:
void wxMaracas_N_ViewersWidget::SetImage( vtkImageData *image )
{
- if (wxwindow1!=NULL) { wxwindow1->SetImage(image); }
- if (wxwindow2!=NULL) { wxwindow2->SetImage(image); }
+ if (wxwindow1!=NULL) {
+
+ wxwindow1->SetImage(image);
+ }
+ if (wxwindow2!=NULL) { wxwindow2->SetImage(image); }
if (wxwindow3!=NULL) { wxwindow3->SetImage(image); }
if (wxwindow4!=NULL) { wxwindow4->SetImage(image); }
+
+
}
Program: wxMaracas
Module: $RCSfile: wxMaracas_ViewerWidget.cxx,v $
Language: C++
- Date: $Date: 2008/11/24 15:11:25 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/12/03 11:42:54 $
+ Version: $Revision: 1.3 $
Copyright: (c) 2002, 2003
License:
void wxMaracas_ViewerWidget::SetImage( vtkImageData *image )
{
- printf("EED wxMaracas_ViewerWidget::SetImage IMPORTANT this methode is missing \n");
+ //printf("EED wxMaracas_ViewerWidget::SetImage IMPORTANT this methode is missing \n");
+ marImageData* mar = mvtkmprbasedata->GetMarImageData();
+ mar->removeImageData(0);
+ mar->AddImageData(image);
+
+ ConfigureVTK();
+ RefreshView();
+
+
+
}
double wxMaracas_ViewerWidget :: GetX()
{
return _imagedataLST[0];
}
+
+void marImageData::removeImageData(int index)
+{
+ if(index < _imagedataLST.size()){
+
+ //vtkImageData* img = _imagedataLST[index];
+ for(int i = index; i < _imagedataLST.size()-1; i++){
+ _imagedataLST[i] = _imagedataLST[i+1];
+ }
+ _imagedataLST.pop_back();
+ //delete img;
+ }
+}
// ----------------------------------------------------------------------------------------------
int marImageData::GetXOriginal(int value)
{
void SetVoiOriginal(int voi[6]);
void AddImageData(vtkImageData *imagedata);
+ void removeImageData(int index);
+
void GetSpcOriginal(double spc[3]);
void GetVoiOriginal(int voi[6]);
vtkImageData *GetImageData();