Program: wxMaracas
Module: $RCSfile: wxMaracas_N_ViewersWidget.cxx,v $
Language: C++
- Date: $Date: 2009/07/27 07:58:20 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2010/02/04 10:54:49 $
+ Version: $Revision: 1.14 $
Copyright: (c) 2002, 2003
License:
wxwindow1->ConfigureVTK();
wxwindow2->ConfigureVTK();
spliter -> SplitVertically( wxwindow1 , wxwindow2 );
- wxwindow = spliter;
+ wxwindow = spliter;
}else if (nTypeView->size()==3)
{
wxSplitterWindow *spliter = new wxSplitterWindow( this , -1);
//-----------------------------------------------------------------------------------
void wxMaracas_N_ViewersWidget::SetImage( vtkImageData *image )
{
- if (wxwindow1!=NULL) {
-
- wxwindow1->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); }
+ }
-
+//-----------------------------------------------------------------------------------
+ void wxMaracas_N_ViewersWidget::ConfigureVTK()
+ {
+ if (wxwindow1!=NULL) { wxwindow1->ConfigureVTK(); }
+ if (wxwindow2!=NULL) { wxwindow2->ConfigureVTK(); }
+ if (wxwindow3!=NULL) { wxwindow3->ConfigureVTK(); }
+ if (wxwindow4!=NULL) { wxwindow4->ConfigureVTK(); }
}
//-----------------------------------------------------------------------------------
}
}
+void wxMaracas_N_ViewersWidget::setWindowLevel(double level){
+ if (wxwindow1!=NULL) {
+ wxwindow1->setWindowLevel(level);
+ }
+ if (wxwindow2!=NULL) {
+ wxwindow2->setWindowLevel(level);
+ }
+ if (wxwindow3!=NULL) {
+ wxwindow3->setWindowLevel(level);
+ }
+ if (wxwindow4!=NULL) {
+ wxwindow4->setWindowLevel(level);
+ }
+}
+void wxMaracas_N_ViewersWidget::setColorLevel(double level){
+ if (wxwindow1!=NULL) {
+ wxwindow1->setColorLevel(level);
+ }
+ if (wxwindow2!=NULL) {
+ wxwindow2->setColorLevel(level);
+ }
+ if (wxwindow3!=NULL) {
+ wxwindow3->setColorLevel(level);
+ }
+ if (wxwindow4!=NULL) {
+ wxwindow4->setColorLevel(level);
+ }
+}
+