Langmuir
Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
corneraxis.h
Go to the documentation of this file.
1 #ifndef CORNERAXIS_H
2 #define CORNERAXIS_H
3 
4 #include "axis.h"
5 
6 namespace LangmuirView {
7 
11 class CornerAxis : public Axis
12 {
13  Q_OBJECT
14  Q_ENUMS(Location)
15 
16 public:
20  enum Location {
25  };
26 
32  explicit CornerAxis(LangmuirViewer &viewer, QObject *parent = 0);
33 
37  Location getLocation() const;
38 
42  int getSize() const;
43 
47  int getShift() const;
48 
49 signals:
54 
58  void shiftChanged(int);
59 
63  void sizeChanged(int);
64 
65 public slots:
70  void setLocation(Location location);
71 
76  void setShift(int shift);
77 
82  void setSize(int size);
83 
87  virtual void makeConnections();
88 
89 protected:
93  virtual void init();
94 
98  virtual void preDraw();
99 
103  virtual void postDraw();
104 
105 private:
108 
110  int m_scissorBox[4];
111 
113  int m_viewPort[4];
114 
116  int m_shift;
117 
119  int m_size;
120 };
121 
122 }
123 
124 #endif // CORNERAXIS_H
int m_scissorBox[4]
storage for scissor box
Definition: corneraxis.h:110
virtual void postDraw()
perform OpenGL drawing operations after draw()
Location getLocation() const
get the location of the corner axis
draw axis in lower right
Definition: corneraxis.h:24
draw axis in lower left
Definition: corneraxis.h:22
Location
the location of the axis
Definition: corneraxis.h:20
A class to represent an xyz axis that doesnt change size/position.
Definition: corneraxis.h:11
int m_viewPort[4]
storage for viewport
Definition: corneraxis.h:113
A class to represent an xyz axis.
Definition: axis.h:11
void locationChanged(Location)
signal that the axis location has changed
void setShift(int shift)
set the axis shift
CornerAxis(LangmuirViewer &viewer, QObject *parent=0)
create the CornerAxis
Definition: corneraxis.h:21
int m_shift
shift of axis from edge
Definition: corneraxis.h:116
void shiftChanged(int)
signal that the axis shift has changed
Location m_location
location of axis
Definition: corneraxis.h:107
void sizeChanged(int)
signal that the axis size has changed
Definition: axis.h:6
void setSize(int size)
set the axis size
void setLocation(Location location)
set the axis location
int m_size
size of altered viewport
Definition: corneraxis.h:119
virtual void init()
initialize object
Widget to view Langmuir Simulation in real time.
Definition: langmuirviewer.h:47
virtual void preDraw()
perform OpenGL drawing operations before draw()
int getSize() const
get the size of the viewport
draw axis in upper left
Definition: corneraxis.h:23
virtual void makeConnections()
make signal/slot connections
int getShift() const
get the shift of the viewport