VR-Forces 4.1 Class Documentation
DtPickableWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <boost/signal.hpp>
15 
16 namespace makVrv
17 {
18 
19  class DtQuad;
20  class DtBoundingBox;
21  class DtLineSegment;
22  class DtWidgetPicker;
23  class DtTriangleProxy;
24 
28  {
29  public:
30 
31  friend class DtWidgetPicker;
32 
34  virtual ~DtPickableWidget();
35 
37  static unsigned int idFromColor( unsigned int );
38 
40  void setUserData( unsigned long long data );
41 
43  unsigned long long userData() const;
44 
46  boost::signal<void (int x, int y)> signal_mouseEnter;
47 
50  boost::signal<void ()> signal_mouseLeave;
51 
53  boost::signal<void (int x, int y)> signal_mouseMove;
54 
56  boost::signal<void (int x, int y, int button)> signal_mousePress;
57 
59  boost::signal<void (int x, int y, int button)> signal_mouseRelease;
60 
62  boost::signal<void (int x, int y, int button)> signal_mouseDoubleClick;
63 
65  boost::signal<void (int x, int y, int wheel)> signal_mouseWheel;
66 
67  protected:
68 
71 
72  protected:
73 
75  unsigned int myId;
76  unsigned long long myUserData;
77 
78  };
79 
80 
84  {
85  public:
86 
87  friend class DtWidgetPicker;
88 
90  virtual ~DtPickableQuad();
91 
96  void setPosition( float x, float y, float z, float w );
97 
99  void setRotation( float angle );
100 
103  void setPoints( const float points[8] );
104 
106  void setGroup( float group );
107 
108  protected:
109 
111  DtPickableQuad( DtWidgetPicker& picker );
112 
113  protected:
114 
116 
117  };
118 
119 
124  {
125  public:
126 
127  friend class DtWidgetPicker;
128 
130  virtual ~DtPickableLine();
131 
136  void set3DPosition( int index0or1, float x, float y, float z, float w );
137 
139  void set2DPosition( int index0or1, float x, float y );
140 
142  void set3DDirection( unsigned int vertexIndex, float x, float y, float z );
143 
145  void setDirection2DLength( unsigned int vertexIndex, float length );
146 
148  void setGroup( float group );
149 
151  void setWidth( float w );
152 
153  protected:
154 
156  DtPickableLine( DtWidgetPicker& picker );
157 
158  protected:
159 
161 
162  };
163 
164 
169  {
170  public:
171 
172  friend class DtWidgetPicker;
173 
175  virtual ~DtPickableTriangle();
176 
178  void set3DPosition( float x, float y, float z, float w );
179 
181  void set3DPosition( unsigned int index, float x, float y, float z, float w );
182 
185  void set2DPosition( unsigned int index, float x, float y );
186 
188  void setGroup( float order );
189 
190  protected:
191 
194 
195  protected:
196 
198 
199  };
200 
201 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)