PSQt::GURuler Class Reference
[PSQt package]

Shows ruller on QGraphicsScene through QGraphicsView. More...

#include <GURuler.h>

List of all members.

Public Types

 HD = 0
 HU
 VL
 VR
enum  ORIENT { HD = 0, HU, VL, VR }

Public Member Functions

 GURuler (QGraphicsView &view, const ORIENT &orient=HD, const float &vmin=0, const float &vmax=100, const float &vort=0, const unsigned &ndiv1=5, const unsigned &ndiv2=2, const unsigned &opt=1, const int &txt_off_h=0, const int &txt_off_v=0, const int &size_tick1=8, const int &size_tick2=4, const QColor &color=QColor(Qt::black), const QPen &pen=QPen(Qt::black, 2, Qt::SolidLine), const QFont &font=QFont())
virtual ~GURuler ()
void setPars ()
void setPathForRuler ()
const QPainterPath & pathForRuler ()
void printTransform ()
int precision ()


Detailed Description

Shows ruller on QGraphicsScene through QGraphicsView.

This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.

See also:
GUAxes
Version:
Id
GURuler.h 11039 2015-12-01 01:18:58Z dubrovin@SLAC.STANFORD.EDU
Author:
Mikhail Dubrovin

Definition at line 41 of file GURuler.h.


Member Enumeration Documentation

enum PSQt::GURuler::ORIENT

Enumerator:
HD 
HU 
VL 
VR 

Definition at line 47 of file GURuler.h.


Constructor & Destructor Documentation

PSQt::GURuler::GURuler ( QGraphicsView &  view,
const ORIENT orient = HD,
const float &  vmin = 0,
const float &  vmax = 100,
const float &  vort = 0,
const unsigned &  ndiv1 = 5,
const unsigned &  ndiv2 = 2,
const unsigned &  opt = 1,
const int &  txt_off_h = 0,
const int &  txt_off_v = 0,
const int &  size_tick1 = 8,
const int &  size_tick2 = 4,
const QColor &  color = QColor(Qt::black),
const QPen &  pen = QPen(Qt::black, 2, Qt::SolidLine),
const QFont &  font = QFont() 
)

Definition at line 27 of file GURuler.cpp.

References setPars(), and setPathForRuler().

PSQt::GURuler::~GURuler (  )  [virtual]

Definition at line 73 of file GURuler.cpp.


Member Function Documentation

const QPainterPath& PSQt::GURuler::pathForRuler (  )  [inline]

Definition at line 72 of file GURuler.h.

int PSQt::GURuler::precision (  ) 

Definition at line 153 of file GURuler.cpp.

Referenced by setPathForRuler().

void PSQt::GURuler::printTransform (  ) 

Definition at line 139 of file GURuler.cpp.

void PSQt::GURuler::setPars (  ) 

Definition at line 90 of file GURuler.cpp.

References HD, HU, VL, and VR.

Referenced by GURuler().

void PSQt::GURuler::setPathForRuler (  ) 

Definition at line 166 of file GURuler.cpp.

References HD, HU, and precision().

Referenced by GURuler().


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7