1 #ifndef manualViewPoints_h
2 #define manualViewPoints_h
4 #include "manualViewBaseContour.h"
5 #include "manualViewPoint.h"
9 // --------------------------------------------------------------------------------------------
10 // Class that includes the functionality to manage some selected points like a new contour
12 class creaMaracasVisu_EXPORT manualViewPoints: public manualViewBaseContour
15 //---------------------------------------------------
16 // PUBLIC METHODS & ATTS
17 //---------------------------------------------------
25 // Method to copy all attributes to the clone object references by parameter
26 // @param *cloneObject - manualViewPoints Clone object
28 void CopyAttributesTo( manualViewPoints *cloneObject );
30 //---------------------------------------------------
31 // PUBLIC & VIRTUAL METHODS & ATTS
32 //---------------------------------------------------
35 // Class Destructor. Delete all elements in points copy list
37 virtual ~manualViewPoints();
40 // Method to clone a manualViewPoints object
42 virtual manualViewPoints * Clone();
45 // Returns the contour type
46 // Points Contour type := 7
49 virtual int GetType();
52 // Returns true if the point with the (x,y,z) window coordinates touch the contour
56 // @return true if touch contour, false otherwise
58 virtual bool ifTouchContour(int x,int y, int z);
61 // Refresh control points with the specified color, calls the RefreshContour method
62 // and render the contour
64 virtual void Refresh();
67 // Refresh contour. In this case, it synchronizes the copy list with the control points list in order
68 // to paint the point actors in the position assigned in the model points list
70 virtual void RefreshContour();
73 // Removes actor of the contour points, but no the control points.
75 virtual void RemoveSplineActor();
78 // Adds actor of the contour points, but no the control points.
80 virtual void AddSplineActor();
83 // Constructs VTKObjects. Only initializes text actor
85 virtual void ConstructVTKObjects();
88 // To move all the contour
90 //virtual void MoveContour(int x, int y, int z);
92 //---------------------------------------------------
93 // PRIVATE METHODS & ATTS
94 //---------------------------------------------------
98 // Copy of the control points list. These are the points which are painted when the
99 // contour is not selected
101 std::vector<manualViewPoint*> _copyViewPoints;
105 #endif // manualViewPoints_h