1 /*=========================================================================
4 Module: $RCSfile: vvLandmarks.h,v $
6 Date: $Date: 2010/01/06 13:31:58 $
7 Version: $Revision: 1.1 $
8 Author : Pierre Seroul (pierre.seroul@gmail.com)
11 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
12 CREATIS-LRMN http://www.creatis.insa-lyon.fr
14 This program is free software: you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation, version 3 of the License.
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 =========================================================================*/
33 #include "vtkFloatArray.h"
34 #include "vtkPolyData.h"
35 #include "vtkPoints.h"
36 #include "vvLandmarksGlyph.h"
48 vvLandmarks(int size);
51 void LoadFile(std::string filename);
52 void SaveFile(std::string filename);
54 void AddLandmark(float x,float y,float z,float t,double value);
55 void RemoveLastLandmark();
56 void ChangeComments(int index, std::string comments);
57 float* GetCoordinates(int index);
58 double GetPixelValue(int index);
59 std::string GetComments(int index);
60 int GetNumberOfPoints() {
61 return mLandmarks.size();
63 //int GetNumberOfSources(){return mText.size();}
65 vtkPolyData* GetOutput() {
68 //vtkPolyData* GetSources(int i){return mText[i]->GetOutput();}
69 void SetTime(int time);
71 bool ErrorMsg(int num,const char * text);
74 ///Helper function to tackle the use of the comma as the decimal separator
75 std::string replace_dots(std::string input);
76 std::vector<vvLandmark> mLandmarks;
77 vtkPolyData *mPolyData;
78 std::vector<vtkPoints*> mPoints;
80 //std::vector<vvLandmarksGlyph*> mText;
81 std::string mFilename;