]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoints.h
Support #1768 CREATIS Licence insertion
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualViewPoints.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 #ifndef manualViewPoints_h
27 #define manualViewPoints_h
28
29 #include "manualViewBaseContour.h"
30 #include "manualViewPoint.h"
31 #include <vector>
32
33
34 // --------------------------------------------------------------------------------------------
35 // Class that includes the functionality to manage some selected points like a new contour
36 // @author RaC 09-09
37 class creaMaracasVisu_EXPORT manualViewPoints: public manualViewBaseContour
38 {
39         
40 //---------------------------------------------------
41 // PUBLIC METHODS & ATTS
42 //---------------------------------------------------
43 public:
44         //
45         // Class Constructor
46         //
47         manualViewPoints();
48
49         //
50         // Method to copy all attributes to the clone object references by parameter
51         // @param *cloneObject - manualViewPoints Clone object
52         ///
53         void CopyAttributesTo( manualViewPoints *cloneObject );
54
55         //---------------------------------------------------
56         // PUBLIC & VIRTUAL METHODS & ATTS
57         //---------------------------------------------------
58
59         ///
60         // Class Destructor. Delete all elements in points copy list
61         ///
62         virtual ~manualViewPoints();
63
64         //
65         // Method to clone a manualViewPoints object
66         //
67         virtual manualViewPoints * Clone();
68
69         //
70         // Returns the contour type
71         // Points Contour type := 7
72         // @return type - int   
73         //
74         virtual int GetType();
75
76         //
77         // Returns true if the point with the (x,y,z) window coordinates touch the contour
78         // @param x - int
79         // @param y - int
80         // @param z - int
81         // @return true if touch contour, false otherwise
82         //
83         virtual bool ifTouchContour(int x,int y, int z);
84
85         //
86         // Refresh control points with the specified color, calls the RefreshContour method 
87         // and render the contour
88         //
89         virtual void Refresh();
90
91         //
92         // Refresh contour. In this case, it synchronizes the copy list with the control points list in order
93         // to paint the point actors in the position assigned in the model points list
94         //
95         virtual void RefreshContour();
96
97         //
98         // Removes actor of the contour points, but no the control points.
99         //
100         virtual void RemoveSplineActor();
101
102         //
103         // Adds actor of the contour points, but no the control points.
104         //
105         virtual void AddSplineActor();
106
107         //
108         // Constructs VTKObjects. Only initializes text actor
109         //
110         virtual void ConstructVTKObjects();
111
112         //
113         // To move all the contour
114         //
115         //virtual void MoveContour(int x, int y, int z);
116
117 //---------------------------------------------------
118 // PRIVATE METHODS & ATTS
119 //---------------------------------------------------
120 private:
121
122         //
123         // Copy of the control points list. These are the points which are painted when the
124         // contour is not selected
125         //
126         std::vector<manualViewPoint*>   _copyViewPoints;
127         
128 };
129
130 #endif // manualViewPoints_h