MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
networkMapCamera.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 
7 #ifndef _networkMapCamera_H_
8 #define _networkMapCamera_H_
9 
10 #define RTI_CAMERA_SPEED 1.25
11 #define RTI_CAMERA_PAN_SPEED 6
12 
13 #include <QtOpenGL/QtOpenGL>
14 #include <Qt/qwidget.h>
15 
17 {
18 public:
21 
23  virtual ~DtNetworkMapCamera();
24 
26  virtual void update( float delta );
27 
29  virtual void displayCamera();
30 
32  virtual void zoom( QWheelEvent * event );
33 
35  virtual void pan( QMouseEvent * event );
36 
37  virtual void updateMouse( int x, int y );
38 
39  virtual void reset( float x, float y, float z );
40 
41  virtual void resetToDefault();
42 
43  virtual float getDistance() { return myDestinationPosition[2]; };
44 
45  virtual void getCurrMousePos(float& x, float& y)
46  {
47  x = myCurrMouse[0];
48  y = myCurrMouse[1];
49  }
50 
51 protected:
53  virtual void focusCamera( float x, float y, float z );
54 
55 protected:
57  int myPrevMouse[2];
58 
60  int myCurrMouse[2];
61 
64 
66  float myPosition[3];
67 
70 
72  static const float theDefaultZPos;
73 };
74 
75 
76 #endif
77 
78 

Document ID: Generated on Mon Mar 21 09:41:37 EDT 2016 from SVN revision 163228
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)