Open Inventor Reference
SoMouseWheelEvent.h
Go to the documentation of this file.
1/*
2 *
3 * Copyright (C) 2010 MeVis Medical Solutions AG, All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * Further, this software is distributed without any warranty that it is
16 * free of the rightful claim of any third person regarding infringement
17 * or the like. Any license provided herein, whether implied or
18 * otherwise, applies only to this software file. Patent licenses, if
19 * any, provided herein do not apply to combinations of this program with
20 * other software, or any other product whatsoever.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Contact information: MeVis Medical Solutions AG
27 * Universitätsallee 29, D-28359 Bremen, GERMANY, or:
28 *
29 * http://www.mevis.de/mms
30 *
31 */
32
33/*
34 * Copyright (C) 2010 MeVis Medical Solutions AG
35 *
36 * \file SoMouseWheelEvent.h
37 * \author Florian Link
38 * \date 11/2000
39 */
40
41#ifndef __SoMouseWheelEvent_H
42#define __SoMouseWheelEvent_H
43
46
48
55 typedef SoEvent inherited;
56
58
59public:
62 VERTICAL
63 };
64
65 SoMouseWheelEvent() { _wheelRotation = 0; _orientation = VERTICAL; }
66
67 static void initClass(void);
68
70 short getWheelRotation() const;
71
73 void setWheelRotation(short rot);
74
77
80
81private:
83 short _wheelRotation;
85 Orientation _orientation;
86};
87
88#endif
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Definition SbSystem.h:77
#define SO_EVENT_HEADER()
*** note: many of the macros use the "do { ... } while(0)" *** hack to define multiline blocks as a s...
Definition SoSubEvent.h:97
Base class for all events.
Definition SoEvent.h:84
Open Inventor SoEvent that represents a MouseWheel movement.
short getWheelRotation() const
get the wheel rotation value (may be positive or neagtive depending on the move direction)
static void initClass(void)
void setWheelOrientation(Orientation orient)
set the wheel's orientation
void setWheelRotation(short rot)
set the wheel rotation (should only be called by the event producer, not by the event user
Orientation getWheelOrientation() const
get the wheel's orientation