- Timestamp:
- Feb 7, 2015, 12:38:59 PM (10 years ago)
- Location:
- trunk/gui/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/src/RpDicomToVtk.cc
r4128 r4979 27 27 #include <stdio.h> 28 28 #include "tcl.h" 29 30 // #define RP_DICOM_TRACE 29 31 30 32 static int … … 95 97 int series = 0; 96 98 99 #ifdef RP_DICOM_TRACE 97 100 fprintf(stderr, "Num Studies: %d\n", numStudies); 101 #endif 98 102 vtkStringArray *files; 99 103 #if 0 100 104 for (int i = 0; i < numStudies; i++) { 101 105 int numSeries = sorter->GetNumberOfSeriesInStudy(i); 106 #ifdef RP_DICOM_TRACE 102 107 fprintf(stderr, "Study %d: %d series\n", i, numSeries); 108 #endif 103 109 int k = sorter->GetFirstSeriesInStudy(i); 104 110 for (int j = 0; j < numSeries; j++) { … … 144 150 #ifdef USE_VTK_DICOM_PACKAGE 145 151 vtkStringArray *ids = reader->GetStackIDs(); 152 #ifdef RP_DICOM_TRACE 146 153 for (int i = 0; i < ids->GetNumberOfValues(); i++) { 147 154 fprintf(stderr, "Stack: %s\n", ids->GetValue(i).c_str()); 148 155 } 156 #endif 149 157 vtkIntArray *fidxArray = reader->GetFileIndexArray(); 150 158 vtkDICOMMetaData *md = reader->GetMetaData(); … … 160 168 } 161 169 #endif 170 #ifdef RP_DICOM_TRACE 162 171 fprintf(stderr, "Number of data elements: %d\n", md->GetNumberOfDataElements()); 163 172 #endif 164 173 Tcl_ListObjAppendElement(interp, metaDataObj, Tcl_NewStringObj("num_files", -1)); 165 174 Tcl_ListObjAppendElement(interp, metaDataObj, Tcl_NewIntObj(md->GetNumberOfInstances())); … … 234 243 235 244 Tcl_ListObjAppendList(interp, objPtr, metaDataObj); 236 245 #ifdef RP_DICOM_TRACE 237 246 fprintf(stderr, "writing VTK\n"); 238 247 #endif 239 248 vtkSmartPointer<vtkDataSetWriter> writer = vtkSmartPointer<vtkDataSetWriter>::New(); 240 249 writer->SetInputConnection(reader->GetOutputPort()); … … 242 251 writer->WriteToOutputStringOn(); 243 252 writer->Update(); 244 253 #ifdef RP_DICOM_TRACE 245 254 fprintf(stderr, "writing VTK...done\n"); 246 255 #endif 247 256 Tcl_ListObjAppendElement(interp, objPtr, Tcl_NewStringObj("vtkdata", -1)); 248 257 -
trunk/gui/src/RpReadPoints.c
r3404 r4979 88 88 return TCL_OK; 89 89 } 90 90 91 91 /* 92 92 * ReadPoints string dimVar pointsVar
Note: See TracChangeset
for help on using the changeset viewer.