Open Inventor Reference
|
00001 /* 00002 * 00003 * Copyright (C) 2010 MeVis Medical Solutions AG, All Rights Reserved. 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * Further, this software is distributed without any warranty that it is 00016 * free of the rightful claim of any third person regarding infringement 00017 * or the like. Any license provided herein, whether implied or 00018 * otherwise, applies only to this software file. Patent licenses, if 00019 * any, provided herein do not apply to combinations of this program with 00020 * other software, or any other product whatsoever. 00021 * 00022 * You should have received a copy of the GNU Lesser General Public 00023 * License along with this library; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 * 00026 * Contact information: MeVis Medical Solutions AG 00027 * Universitätsallee 29, D-28359 Bremen, GERMANY, or: 00028 * 00029 * http://www.mevis.de/mms 00030 * 00031 */ 00032 00033 /* 00034 * Copyright (C) 2010 MeVis Medical Solutions AG 00035 * 00036 * \file SoMouseWheelEvent.h 00037 * \author Florian Link 00038 * \date 11/2000 00039 */ 00040 00041 #ifndef __SoMouseWheelEvent_H 00042 #define __SoMouseWheelEvent_H 00043 00044 #include <Inventor/system/SbSystem.h> 00045 #include <Inventor/events/SoSubEvent.h> 00046 00048 00054 class INVENTOR_API SoMouseWheelEvent : public SoEvent { 00055 typedef SoEvent inherited; 00056 00057 SO_EVENT_HEADER(); 00058 00059 public: 00060 enum Orientation { 00061 HORIZONTAL, 00062 VERTICAL 00063 }; 00064 00065 SoMouseWheelEvent() { _wheelRotation = 0; _orientation = VERTICAL; } 00066 00067 static void initClass(void); 00068 00070 short getWheelRotation(); 00071 00073 void setWheelRotation(short rot); 00074 00076 Orientation getWheelOrientation(); 00077 00079 void setWheelOrientation(Orientation orient); 00080 00081 private: 00083 short _wheelRotation; 00085 Orientation _orientation; 00086 }; 00087 00088 #endif