comparison Framework/Scene2DViewport/ViewportController.h @ 865:a29c13497557

Added operators to ScenePoint2D + highlight support on MouseOver for measuring tools
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 25 Jun 2019 15:24:13 +0200
parents e3c56d4f863f
children 0aff28f15ea2
comparison
equal deleted inserted replaced
864:ae3eccd0f545 865:a29c13497557
40 40
41 const uint8_t TEXT_COLOR_RED = 0; 41 const uint8_t TEXT_COLOR_RED = 0;
42 const uint8_t TEXT_COLOR_GREEN = 223; 42 const uint8_t TEXT_COLOR_GREEN = 223;
43 const uint8_t TEXT_COLOR_BLUE = 81; 43 const uint8_t TEXT_COLOR_BLUE = 81;
44 44
45 const uint8_t TOOL_ANGLE_LINES_COLOR_RED = 0;
46 const uint8_t TOOL_ANGLE_LINES_COLOR_GREEN = 183;
47 const uint8_t TOOL_ANGLE_LINES_COLOR_BLUE = 17;
48
49 const uint8_t TOOL_ANGLE_LINES_HL_COLOR_RED = 0;
50 const uint8_t TOOL_ANGLE_LINES_HL_COLOR_GREEN = 17;
51 const uint8_t TOOL_ANGLE_LINES_HL_COLOR_BLUE = 183;
52
45 const uint8_t TOOL_LINES_COLOR_RED = 0; 53 const uint8_t TOOL_LINES_COLOR_RED = 0;
46 const uint8_t TOOL_LINES_COLOR_GREEN = 223; 54 const uint8_t TOOL_LINES_COLOR_GREEN = 223;
47 const uint8_t TOOL_LINES_COLOR_BLUE = 21; 55 const uint8_t TOOL_LINES_COLOR_BLUE = 21;
48 56
57 const uint8_t TOOL_LINES_HL_COLOR_RED = 0;
58 const uint8_t TOOL_LINES_HL_COLOR_GREEN = 21;
59 const uint8_t TOOL_LINES_HL_COLOR_BLUE = 223;
49 60
50 const uint8_t TEXT_OUTLINE_COLOR_RED = 0; 61 const uint8_t TEXT_OUTLINE_COLOR_RED = 0;
51 const uint8_t TEXT_OUTLINE_COLOR_GREEN = 56; 62 const uint8_t TEXT_OUTLINE_COLOR_GREEN = 56;
52 const uint8_t TEXT_OUTLINE_COLOR_BLUE = 21; 63 const uint8_t TEXT_OUTLINE_COLOR_BLUE = 21;
53 64
84 This method returns the list of measure tools containing the supplied point 95 This method returns the list of measure tools containing the supplied point
85 (in scene coords). A tracker can then be requested from the chosen 96 (in scene coords). A tracker can then be requested from the chosen
86 measure tool, if needed 97 measure tool, if needed
87 */ 98 */
88 std::vector<boost::shared_ptr<MeasureTool> > HitTestMeasureTools(ScenePoint2D p); 99 std::vector<boost::shared_ptr<MeasureTool> > HitTestMeasureTools(ScenePoint2D p);
100
101 /**
102 This function will traverse the measuring tools and will clear their
103 highlighted state
104 */
105 void ResetMeasuringToolsHighlight();
89 106
90 /** 107 /**
91 With this method, the object takes ownership of the supplied tracker and 108 With this method, the object takes ownership of the supplied tracker and
92 updates it according to user interaction 109 updates it according to user interaction
93 */ 110 */