Coin Logo http://www.sim.no
http://www.coin3d.org

SoQtCursor.h
1 #ifndef SOQT_CURSOR_H
2 #define SOQT_CURSOR_H
3 
4 // src/Inventor/Qt/SoQtCursor.h. Generated from SoGuiCursor.h.in by configure.
5 
6 /**************************************************************************\
7  *
8  * This file is part of the Coin 3D visualization library.
9  * Copyright (C) by Kongsberg Oil & Gas Technologies.
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * ("GPL") version 2 as published by the Free Software Foundation.
14  * See the file LICENSE.GPL at the root directory of this source
15  * distribution for additional information about the GNU GPL.
16  *
17  * For using Coin with software that can not be combined with the GNU
18  * GPL, and for taking advantage of the additional benefits of our
19  * support services, please contact Kongsberg Oil & Gas Technologies
20  * about acquiring a Coin Professional Edition License.
21  *
22  * See http://www.coin3d.org/ for more information.
23  *
24  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
25  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
26  *
27 \**************************************************************************/
28 
29 #include <Inventor/SbLinear.h>
30 #include <Inventor/Qt/SoQtBasic.h>
31 
32 class SOQT_DLL_API SoQtCursor {
33 public:
34  static void initClass(void);
35 
36  struct CustomCursor {
37  SbVec2s dim;
38  SbVec2s hotspot;
39  unsigned char * bitmap;
40  unsigned char * mask;
41  };
42 
43 
44  // FIXME: add more default shapes. 20011119 pederb.
45  enum Shape {
46  CUSTOM_BITMAP = -1,
47  DEFAULT = 0,
50  UPARROW
51  };
52 
53  SoQtCursor(void);
54  SoQtCursor(const Shape shape);
55  SoQtCursor(const CustomCursor * cc);
56  SoQtCursor(const SoQtCursor & cursor);
57  ~SoQtCursor();
58 
59  SoQtCursor & operator=(const SoQtCursor & c);
60 
61  Shape getShape(void) const;
62  void setShape(const Shape shape);
63 
64  const CustomCursor & getCustomCursor(void) const;
65 
66  static const SoQtCursor & getZoomCursor(void);
67  static const SoQtCursor & getPanCursor(void);
68  static const SoQtCursor & getRotateCursor(void);
69  static const SoQtCursor & getBlankCursor(void);
70 
71 private:
72  void commonConstructor(const Shape shape, const CustomCursor * cc);
73 
74  Shape shape;
75  CustomCursor * cc;
76 };
77 
78 #endif // ! SOQT_CURSOR_H

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Thu Mar 28 2013 for SoQt by Doxygen 1.8.3.1.