|
MorphoGraphX
|
Public Types | |
| enum | Position { Top, Bottom, Left, Right, TopLeft, BottomLeft, TopRight, BottomRight, Center } |
| enum | Direction { Horizontal, Vertical } |
| enum | TextPosition { In, Out } |
| typedef util::Vector< 2, size_t > | Point2u |
Public Member Functions | |
| void | setWantedSize (double ws) |
| void | setScale (double s) |
| void | setUnit (QString u) |
| void | setPosition (Position p) |
| void | setThickness (int th) |
| void | setShiftBorder (const Point2u &pt) |
| void | setFont (const QFont &fnt) |
| void | setFontSize (int size) |
| void | init (QGLViewer *viewer) |
| void | draw (QGLViewer *viewer, QPaintDevice *device=0) |
| void | readParms (util::Parms &parms, QString section) |
| void | writeParms (QTextStream &pout, QString section) |
| void | scaleDrawing (double s) |
| void | restoreScale () |
Protected Member Functions | |
| void | findScale (double unit_size) |
Protected Attributes | |
| double | wantedSize |
| double | scale |
| QString | unit |
| bool | displayUnit |
| Position | pos |
| Direction | dir |
| QFont | unit_font |
| double | thickness |
| Point2u | shiftBorder |
| TextPosition | textPosition |
| int | fontSize |
| bool | autoScale |
| bool | autoUnit |
| double | minSize |
| double | maxSize |
| double | globalScale |
1.8.11