]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx
#2482 creaMaracasVisu Bug New - HighColorLayer refresh missing. The MPR is not...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtk3DBaseView.cxx
index 9d92c225526295afd8d36d392e09c339d3e1f7df..013770adfd86282ccef0ebf10887ba9d1af7763f 100644 (file)
 #ifdef _DEBUG
 #define new DEBUG_NEW
 #endif
-wxVtk3DBaseView::wxVtk3DBaseView(wxWindow *parent)
+wxVtk3DBaseView::wxVtk3DBaseView(wxWindow *parent, vtkBaseData* vtkbasedata)
 :wxVtkBaseView( parent )
 {
+       SetVtkBaseData( vtkbasedata );
        _configure      = false;
        _aRenderer      = NULL;
        _renWin         = NULL;
-       _aCamera        = NULL;
+       _aCamera                = NULL;
 }
 //-------------------------------------------------------------------
 wxVtk3DBaseView::~wxVtk3DBaseView()
 {
 
-       if (_aCamera!=NULL)     { _aCamera              -> Delete(); _aCamera=NULL;}
+       if (_aCamera!=NULL)             { _aCamera              -> Delete(); _aCamera=NULL;}
        if (_aRenderer!=NULL)   { _aRenderer    -> Delete(); _aRenderer=NULL;}
-       if (_renWin!=NULL)      { 
-               if(_renWin->GetReferenceCount()==0){
+       if (_renWin!=NULL)              { 
+               if(_renWin->GetReferenceCount()==0)
+               {
                        _renWin         -> Delete(); _renWin=NULL;
                }
        }