10 class vvMeshReader : public QThread
13 ///Returns the contour names present in a dc struct file
14 std::vector<std::pair<int,std::string> > GetROINames();
17 void SetFilename(const std::string f) { filename=f; }
18 void SetModeToVTK() {vtk_mode=true;}
19 void SetSelectedItems(const std::vector<int> & items) {selected_contours=items;}
20 void SetImage(vvImage::Pointer im) {image=im;}
21 void SetPropagationVF(vvImage::Pointer vf) {this->vf=vf;}
22 std::vector<vvMesh::Pointer> GetOutput() {return result;}
23 ///Called from the main thread, runs the reader and displays the progress bar
29 ///Indicates if the reader should expect a vtk polydata file instead of a dicom-struct
31 ///The list of indexes of contours the reader should read
32 std::vector<int> selected_contours;
33 ///Image the mesh will be displayed over, for binarization
34 vvImage::Pointer image;
35 std::vector<vvMesh::Pointer> result;
37 ///Read a DC-struct file and return an extruded version of the contours
38 std::vector<vvMesh::Pointer> readSelectedContours();
39 ///Vector field used to propagate the contour
41 ///Binarize the output of readSelectedContours() and mesh it with a Marching Cubes
42 void Remesh(vvMesh::Pointer roi);