# The project version
SET(PROJECT_MAJOR_VERSION 0)
SET(PROJECT_MINOR_VERSION 2)
-SET(PROJECT_BUILD_VERSION 5)
+SET(PROJECT_BUILD_VERSION 6)
SET(CREA_VERBOSE_CMAKE TRUE)
# JPR 4 mars 2011
DicomImageReader::DicomImageReader()
{
mReader = vtkGdcmReader::New();
-//EED mReader->SetFlipY(false);
+
+//EED 21 mars 2012 FLIP probleme ..PLOP..
+ mReader->SetFlipY(false);
+
SetName ( "Dicom" );
};
{
// std::cout << "#### ImageReader::ImageReader()"<<std::endl;
if (mUnreadableImage!=0) return;
-
- Register( boost::shared_ptr<AbstractImageReader>(new VtkImageReader(vtkPNGReader::New(), "PNG", ".png")));
+
+
+ Register( boost::shared_ptr<AbstractImageReader>(new VtkImageReader(vtkPNGReader::New() , "PNG", ".png")));
Register(boost::shared_ptr<AbstractImageReader>(new VtkImageReader(vtkTIFFReader::New(), "JPEG", ".jpeg")));
Register(boost::shared_ptr<AbstractImageReader>(new VtkImageReader(vtkJPEGReader::New())));
Register(boost::shared_ptr<AbstractImageReader>(new VtkImageReader(vtkBMPReader::New())));
const std::string& extensions)
: mReader(r), mExtensions(extensions)
{
+
+ //EED 21 mars 2012 FLIP probleme ..PLOP..
+ mReader->FileLowerLeftOn();
+
if (name.size() == 0)
{
const char *test =mReader->GetDescriptiveName();
mViewer->SetColorLevel(0.5 * (range[1] + range[0]));
mViewer->GetRenderer()->ResetCamera();
+
+ //EED 21 mars 2012 FLIP problem ..PLOP..
+ vtkCamera *camera =mViewer->GetRenderer()->GetActiveCamera();
+ camera->SetViewUp ( 0 , -1 , 0 );
+ camera->SetPosition ((x1+x2)/2 , (y1+y2)/2 , -10000);
+ camera->SetFocalPoint ((x1+x2)/2 , (y1+y2)/2 , 0 );
+ camera->SetParallelScale( (x2-x1)/3.0 );
+
+
double bounds[6];
mViewer->GetRenderer()->ComputeVisiblePropBounds(bounds);