add "o" to the file list.
ex
vtkgdcmViewer2 gdcmData/XA_GE_JPEG_02_with_Overlays.dcm
--> usual way of viewing the image
vtkgdcmViewer2 gdcmData/XA_GE_JPEG_02_with_Overlays.dcm o
--> overlays are displayed.
The default mode is, of course, NOT TO LOAD the overlays
Program: gdcm
Module: $RCSfile: vtkGdcmReader.cxx,v $
Language: C++
- Date: $Date: 2007/06/21 14:47:16 $
- Version: $Revision: 1.91 $
+ Date: $Date: 2007/09/04 16:21:50 $
+ Version: $Revision: 1.92 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include <vtkPointData.h>
#include <vtkLookupTable.h>
-vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.91 $")
+vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.92 $")
vtkStandardNewMacro(vtkGdcmReader)
//-----------------------------------------------------------------------------
this->OwnFile=true;
// this->Execution=false; // For VTK5.0
+
+ this->KeepOverlays = false;
}
vtkGdcmReader::~vtkGdcmReader()
GDCM_NAME_SPACE::FileHelper *fileH = GDCM_NAME_SPACE::FileHelper::New( f );
fileH->SetUserFunction( UserFunction );
-
+
+ fileH->SetKeepOverlays ( this->KeepOverlays);
+
int numColumns = f->GetXSize();
int numLines = f->GetYSize();
int numPlanes = f->GetZSize();
Program: gdcm
Module: $RCSfile: vtkGdcmReader.h,v $
Language: C++
- Date: $Date: 2007/07/13 08:17:22 $
- Version: $Revision: 1.34 $
+ Date: $Date: 2007/09/04 16:21:50 $
+ Version: $Revision: 1.35 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
vtkGetMacro(AllowLookupTable, bool);
vtkBooleanMacro(AllowLookupTable, bool);
+
+ vtkSetMacro(KeepOverlays, bool);
+ vtkGetMacro(KeepOverlays, bool);
+ vtkBooleanMacro(KeepOverlays, bool);
+
vtkGetObjectMacro(LookupTable, vtkLookupTable);
// FIXME : HOW to doxygen a VTK macro?
bool DropDuplicatePositions;
+ bool KeepOverlays;
+
/// Pointer to a user suplied function to allow modification of pixel order
VOID_FUNCTION_PUINT8_PFILE_POINTER UserFunction;
Program: gdcm
Module: $RCSfile: vtkgdcmViewer2.cxx,v $
Language: C++
- Date: $Date: 2007/08/28 14:02:13 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2007/09/04 16:21:50 $
+ Version: $Revision: 1.11 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// given as command line arguments,
// * you can navigate through the stack by hitting any character key,
// * the produced vtk file is named "foo.vtk" (in the invocation directory).
+// * if the last 'filename' == "o", overlays (group 60xx) are loaded.
+// * just a test!
//
//----------------------------------------------------------------------------
#include <vtkRenderWindowInteractor.h>
vtkGdcmReader *reader = vtkGdcmReader::New();
reader->AllowLookupTableOff();
+
+ if (strcmp (argv[argc-1], "o") == 0)
+ {
+ argc--; // Is it allowed?!?
+ reader->SetKeepOverlays(true);
+ }
+
if( argc == 2 )
reader->SetFileName( argv[1] );
else