1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
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
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.
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
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 # ------------------------------------------------------------------------ */
26 #ifndef manualViewPoints_h
27 #define manualViewPoints_h
29 #include "manualViewBaseContour.h"
30 #include "manualViewPoint.h"
34 // --------------------------------------------------------------------------------------------
35 // Class that includes the functionality to manage some selected points like a new contour
37 class creaMaracasVisu_EXPORT manualViewPoints: public manualViewBaseContour
40 //---------------------------------------------------
41 // PUBLIC METHODS & ATTS
42 //---------------------------------------------------
50 // Method to copy all attributes to the clone object references by parameter
51 // @param *cloneObject - manualViewPoints Clone object
53 void CopyAttributesTo( manualViewPoints *cloneObject );
55 //---------------------------------------------------
56 // PUBLIC & VIRTUAL METHODS & ATTS
57 //---------------------------------------------------
60 // Class Destructor. Delete all elements in points copy list
62 virtual ~manualViewPoints();
65 // Method to clone a manualViewPoints object
67 virtual manualViewPoints * Clone();
70 // Returns the contour type
71 // Points Contour type := 7
74 virtual int GetType();
77 // Returns true if the point with the (x,y,z) window coordinates touch the contour
81 // @return true if touch contour, false otherwise
83 virtual bool ifTouchContour(int x,int y, int z);
86 // Refresh control points with the specified color, calls the RefreshContour method
87 // and render the contour
89 virtual void Refresh();
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
95 virtual void RefreshContour();
98 // Removes actor of the contour points, but no the control points.
100 virtual void RemoveSplineActor();
103 // Adds actor of the contour points, but no the control points.
105 virtual void AddSplineActor();
108 // Constructs VTKObjects. Only initializes text actor
110 virtual void ConstructVTKObjects();
113 // To move all the contour
115 //virtual void MoveContour(int x, int y, int z);
117 //---------------------------------------------------
118 // PRIVATE METHODS & ATTS
119 //---------------------------------------------------
123 // Copy of the control points list. These are the points which are painted when the
124 // contour is not selected
126 std::vector<manualViewPoint*> _copyViewPoints;
130 #endif // manualViewPoints_h