1 // -*- c-basic-offset: 4 -*- 2 /** @file PanosphereSphereTool.h 3 * 4 * @author Darko Makreshanski 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public 8 * License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * This software is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public 17 * License along with this software. If not, see 18 * <http://www.gnu.org/licenses/>. 19 * 20 */ 21 22 #ifndef _PANOSPHERE_SPHERE_TOOL_H 23 #define _PANOSPHERE_SPHERE_TOOL_H 24 25 #include "Tool.h" 26 27 /** 28 * tool to draw a whiteish transparent sphere for the panosphere 29 */ 30 class PanosphereSphereTool : public PanosphereOverviewTool 31 { 32 public: 33 void Activate(); 34 PanosphereSphereTool(PanosphereOverviewToolHelper *helper, const wxColour backgroundColour); 35 36 void BeforeDrawImagesBackEvent(); 37 void BeforeDrawImagesFrontEvent(); 38 /** sets the sphere background color */ 39 void SetPreviewBackgroundColor (wxColour c); 40 41 protected: 42 wxColour m_background_color; 43 }; 44 45 #endif 46 47