#-----------------------------------------------------------------------------
SET(PROJECT_MAJOR_VERSION 1)
-SET(PROJECT_MINOR_VERSION 1)
-SET(PROJECT_BUILD_VERSION 1)
+SET(PROJECT_MINOR_VERSION 2)
+SET(PROJECT_BUILD_VERSION 0)
#==================================
_tissuePlanes[i]->Delete();
_tissueClipper[i]->Delete();
}
- _outlineData->Delete();
- _mapOutline->Delete();
- _outline->Delete();
+
// Volume
_tfun->Delete();
_ctfun->Delete();
}
_observerV-> Delete();
}
-//-------------------------------------------------------------------
-vtkActor* vtkClipping3DDataViewer::GetOutlineActor()
-{
- return _outline;
-}
+
//-------------------------------------------------------------------
vtkClipPolyData* vtkClipping3DDataViewer::GetTissueClipper(int id)
{
imagedata->GetExtent(x1,x2,y1,y2,z1,z2);
_tissuePlanes[i]->SetBounds (x1,x2,y1,y2,z1,z2);
_tissueClipper[i] = vtkClipPolyData::New();
+ _tissueClipper[i]->SetClipFunction( _tissuePlanes[i] );
+ _tissueClipper[i]->InsideOutOn( );
//EED 2017-01-01 Migration VTK7
#if VTK_MAJOR_VERSION <= 5
_tissueClipper[i]->SetInput( _tissueStripper[i]->GetOutput() );
#else
_tissueClipper[i]->SetInputData( _tissueStripper[i]->GetOutput() );
+ printf("EED vtkClipping3DDataViewer::Configure_Tissue Update\n");
+ _tissueClipper[i]->Update();
#endif
- _tissueClipper[i]->SetClipFunction( _tissuePlanes[i] );
- _tissueClipper[i]->InsideOutOn( );
_tissueMapper[i] = vtkPolyDataMapper::New( );
//EED 2017-01-01 Migration VTK7
_tissueMapper[i]->SetInput( _tissueClipper[i]->GetOutput() );
#else
_tissueMapper[i]->SetInputData( _tissueClipper[i]->GetOutput() );
+ _tissueMapper[i]->Update();
#endif
Configure_Tissue();
Configure_Volume();
Configure_VolumeBox();
- // An outline provides context around the data.
- //
- _outlineData = vtkOutlineFilter::New();
-
-//EED 2017-01-01 Migration VTK7
-#if VTK_MAJOR_VERSION <= 5
- _outlineData->SetInput((vtkDataSet *) _vtkmprbasedata->GetImageData() );
-#else
- _outlineData->SetInputData((vtkDataSet *) _vtkmprbasedata->GetImageData() );
-#endif
-
- _mapOutline = vtkPolyDataMapper::New();
-
-//EED 4 nov 2015 Estelle
-// _mapOutline->SetInput(_outlineData->GetOutput());
-
- _outline = vtkActor::New();
- _outline->SetMapper(_mapOutline);
- _outline->GetProperty()->SetColor(0,0,0);
}
virtual ~vtkClipping3DDataViewer();
// vtkImageActor* GetImageActor(int id);
- vtkActor* GetOutlineActor();
+
+
vtkClipPolyData* GetTissueClipper(int id);
vtkPolyDataMapper* GetTissueMapper(int id);
vtkPlanes* GetTissuePlanes(int id);
vtkPlanes *_tissuePlanes[ VTKMPRDATA_MAXTISSUE ];
vtkClipPolyData *_tissueClipper[ VTKMPRDATA_MAXTISSUE ];
- // outline
- vtkOutlineFilter *_outlineData;
- vtkPolyDataMapper *_mapOutline;
- vtkActor *_outline;
-
/// Volume
vtkPiecewiseFunction *_tfun;
vtkColorTransferFunction *_ctfun;
_saggitalColors = vtkImageMapToColors::New();
}
_saggitalColors->RemoveAllInputs();
+ // _saggitalColors->SetLookupTable(_bwLut);
+ _saggitalColors->SetLookupTable(_ctfun);
//EED 2017-01-01 Migration VTK7
#if VTK_MAJOR_VERSION <= 5
_saggitalColors->SetInput( _vtkmprbasedata->GetImageData() );
#else
_saggitalColors->SetInputData( _vtkmprbasedata->GetImageData() );
+ _saggitalColors->Update();
#endif
- // _saggitalColors->SetLookupTable(_bwLut);
-
- _saggitalColors->SetLookupTable(_ctfun);
if(_saggital==NULL)
}
_axialColors->RemoveAllInputs();
+ // _axialColors->SetLookupTable(_hueLut);
+ _axialColors->SetLookupTable(_ctfun);
//EED 2017-01-01 Migration VTK7
#if VTK_MAJOR_VERSION <= 5
_axialColors->SetInput( _vtkmprbasedata->GetImageData() );
#else
_axialColors->SetInputData( _vtkmprbasedata->GetImageData() );
+ _axialColors->Update();
#endif
- // _axialColors->SetLookupTable(_hueLut);
- _axialColors->SetLookupTable(_ctfun);
if(_axial==NULL)
{
_coronalColors = vtkImageMapToColors::New();
}
_coronalColors->RemoveAllInputs();
+ // _coronalColors->SetLookupTable(_satLut);
+ _coronalColors->SetLookupTable(_ctfun);
//EED 2017-01-01 Migration VTK7
#if VTK_MAJOR_VERSION <= 5
_coronalColors->SetInput( _vtkmprbasedata->GetImageData() );
#else
_coronalColors->SetInputData( _vtkmprbasedata->GetImageData() );
+ _coronalColors->Update();
#endif
- // _coronalColors->SetLookupTable(_satLut);
- _coronalColors->SetLookupTable(_ctfun);
if(_coronal==NULL)
{
_outlineData->SetInput((vtkDataSet *) _vtkmprbasedata->GetImageData() );
#else
_outlineData->SetInputData((vtkDataSet *) _vtkmprbasedata->GetImageData() );
+ _outlineData->Update();
#endif
} // if _image
if (_vtkmprbasedata!=NULL)
{
_vtkmprbasedata->Configure();
- x=_vtkmprbasedata -> GetMaxPositionX()/2;
- y=_vtkmprbasedata -> GetMaxPositionY()/2;
- z=_vtkmprbasedata -> GetMaxPositionZ()/2;
+ x = _vtkmprbasedata->GetMaxPositionX()/2;
+ y = _vtkmprbasedata->GetMaxPositionY()/2;
+ z = _vtkmprbasedata->GetMaxPositionZ()/2;
_vtkmprbasedata->SetX( x );
_vtkmprbasedata->SetY( y );
_vtkmprbasedata->SetZ( z );
}
- if(_vtkmpr2Dview[0]!=NULL) {_vtkmpr2Dview[0] -> Configure();}
- if(_vtkmpr2Dview[1]!=NULL) {_vtkmpr2Dview[1] -> Configure();}
- if(_vtkmpr2Dview[2]!=NULL) {_vtkmpr2Dview[2] -> Configure();}
+ if(_vtkmpr2Dview[0]!=NULL) { _vtkmpr2Dview[0]->Configure(); }
+ if(_vtkmpr2Dview[1]!=NULL) { _vtkmpr2Dview[1]->Configure(); }
+ if(_vtkmpr2Dview[2]!=NULL) { _vtkmpr2Dview[2]->Configure(); }
+ if (_vtkmpr2Dview_B[0]!=NULL) { _vtkmpr2Dview_B[0]->Configure(); }
+ if (_vtkmpr2Dview_B[1]!=NULL) { _vtkmpr2Dview_B[1]->Configure(); }
+ if (_vtkmpr2Dview_B[2]!=NULL) { _vtkmpr2Dview_B[2]->Configure(); }
- if (_vtkmpr2Dview_B[0]!=NULL) { _vtkmpr2Dview_B[0] -> Configure(); }
- if (_vtkmpr2Dview_B[1]!=NULL) { _vtkmpr2Dview_B[1] -> Configure(); }
- if (_vtkmpr2Dview_B[2]!=NULL) { _vtkmpr2Dview_B[2] -> Configure(); }
+ if (_vtkplane2Dview!=NULL) { _vtkplane2Dview->Configure(); }
+ if (_widgetMesure!=NULL) { _widgetMesure->ConfigureA(_vtkplane2Dview); }
+ if (_widgetMesure!=NULL) { _widgetMesure->SetActiveLink(true); }
+ if (_wxsphereview!=NULL) { _wxsphereview->Configure(); }
+ if (_wxvtk3Dbaseview_MPRClipping3D!=NULL){_wxvtk3Dbaseview_MPRClipping3D->Configure();}
+ if (_wxvtkmpr3Dview!=NULL) { _wxvtkmpr3Dview->Configure(); }
+ if (_wxvtkclipping3Dview!=NULL) { _wxvtkclipping3Dview->Configure(); }
-
-
- if (_vtkplane2Dview!=NULL){_vtkplane2Dview -> Configure();}
- if (_widgetMesure!=NULL){_widgetMesure -> ConfigureA(_vtkplane2Dview);}
- if (_widgetMesure!=NULL){_widgetMesure -> SetActiveLink(true);}
- if (_wxsphereview!=NULL){_wxsphereview -> Configure();}
-
- if (_wxvtk3Dbaseview_MPRClipping3D!=NULL){_wxvtk3Dbaseview_MPRClipping3D -> Configure();}
- if (_wxvtkmpr3Dview!=NULL){
- _wxvtkmpr3Dview -> Configure();
- }
- if (_wxvtkclipping3Dview!=NULL){_wxvtkclipping3Dview -> Configure();}
-
- if (_vtkplane2Dview_B!=NULL){ _vtkplane2Dview_B -> Configure(); }
- if (_widgetMesure_B!=NULL){ _widgetMesure_B -> ConfigureA( _vtkplane2Dview_B ); }
- if (_widgetMesure_B!=NULL){ _widgetMesure_B -> SetActiveLink(true); }
+ if (_vtkplane2Dview_B!=NULL) { _vtkplane2Dview_B->Configure(); }
+ if (_widgetMesure_B!=NULL) { _widgetMesure_B->ConfigureA( _vtkplane2Dview_B ); }
+ if (_widgetMesure_B!=NULL) { _widgetMesure_B->SetActiveLink(true); }
//EEDx3
// double spc[3];
_wxvtk3Dbaseview->Configure();
// Actors are added to the renderer.
- _wxvtk3Dbaseview->GetRenderer()->AddActor( _vtkclipping3Ddataviewer->GetOutlineActor() );
_boxWidgetS1 = vtkBoxWidget::New();
_boxWidgetS1->SetInteractor( _wxvtk3Dbaseview->GetWxVTKRenderWindowInteractor() );