#include <GLViewer_BaseObjects.h>

Public Member Functions | |
| GLViewer_TextObject (const QString &, float xPos=0, float yPos=0, const QColor &color=QColor(0, 255, 0), const QString &toolTip="GLText") | |
| ~GLViewer_TextObject () | |
| virtual void | compute () |
| virtual GLViewer_Drawer * | createDrawer () |
| virtual void | setDrawer (GLViewer_Drawer *theDrawer) |
| virtual GLboolean | highlight (GLfloat x, GLfloat y, GLfloat tol, GLboolean isCircle=GL_FALSE) |
| virtual GLboolean | unhighlight () |
| virtual GLboolean | select (GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull=GL_FALSE, GLboolean isCircle=GL_FALSE, GLboolean isShift=GL_FALSE) |
| virtual GLboolean | unselect () |
| virtual GLViewer_Rect * | getUpdateRect () |
| virtual void | moveObject (float, float, bool fromGroup=false) |
| virtual QByteArray | getByteCopy () |
| virtual bool | initializeFromByteCopy (QByteArray) |
| virtual bool | translateToPS (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPSCS) |
| virtual bool | translateToHPGL (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aHPGLCS) |
| int | getWidth () |
| int | getHeight () |
| void | setWidth (int w) |
| void | setHeight (int h) |
Public Member Functions inherited from GLViewer_Object | |
| GLViewer_Object () | |
| A constructor. More... | |
| virtual | ~GLViewer_Object () |
| A destructor. More... | |
| GLViewer_Drawer * | getDrawer () const |
| Returns current drawer. More... | |
| virtual GLboolean | isInside (GLViewer_Rect theRect) |
| Returns if theRect inside object. More... | |
| virtual bool | portContains (GLViewer_Pnt) |
| virtual bool | startPulling (GLViewer_Pnt) |
| virtual void | pull (GLViewer_Pnt, GLViewer_Object *) |
| virtual void | finishPulling () |
| virtual bool | isPulling () |
| virtual GLViewer_Rect | getPullingRect () const |
| virtual void | setRect (GLViewer_Rect *rect) |
| Installs object rectangle. More... | |
| virtual GLViewer_Rect * | getRect () const |
| Returns object rectungle. More... | |
| virtual void | setScale (GLfloat xScale, GLfloat yScale) |
| Installs scale factors. More... | |
| virtual void | getScale (GLfloat &xScale, GLfloat &yScale) const |
| Returns scale factors. More... | |
| virtual GLboolean | setZoom (GLfloat zoom, bool recompute, bool fromGroup=false) |
| virtual GLfloat | getZoom () const |
| virtual GLboolean | updateZoom (bool zoomIn) |
| virtual GLboolean | isHighlighted () const |
| Returns true if object is highlighted. More... | |
| virtual GLboolean | isSelected () const |
| Returns true if object is selected. More... | |
| virtual void | setSelected (GLboolean state) |
| Installs select status to object. More... | |
| void | setGLText (GLViewer_Text *glText) |
| Installs GLText to object. More... | |
| GLViewer_Text * | getGLText () const |
| Returns object GLText. More... | |
| virtual void | setAspectLine (GLViewer_AspectLine *aspect) |
| Installs acpect line for object presentation. More... | |
| virtual GLViewer_AspectLine * | getAspectLine () const |
| Returns acpect line of object presentation. More... | |
| QString | getObjectType () const |
| Returns object type. More... | |
| void | setName (QString name) |
| Installs object name. More... | |
| QString | getName () const |
| Returns object name. More... | |
| virtual int | getPriority () const |
| Returns object priority. More... | |
| virtual bool | finishMove () |
| Finaly recomputing object after moving. More... | |
| virtual bool | getVisible () const |
| Returns visible object status. More... | |
| virtual void | setVisible (bool theStatus) |
| Installs visible object status. More... | |
| void | setToolTipText (QString str) |
| Installs onject tool tip text. More... | |
| virtual QString | getToolTipText () |
| Returns onject tool tip text. More... | |
| bool | isTooTipHTML () const |
| Returns true if tool tip contains HTML tags. More... | |
| void | setToolTipFormat (bool isHTML) |
| Installs tool tip supporting of HTML tags. More... | |
| SUIT_DataOwner * | owner () const |
| void | setOwner (SUIT_DataOwner *owner) |
| void | setGroup (GLViewer_Group *theGroup) |
| Adds object to group theGroup. More... | |
| GLViewer_Group * | getGroup () const |
| Returns object group. More... | |
| virtual GLViewer_Object * | getOwner () |
| virtual bool | isSelectable () |
| Returns true if object can be selected. More... | |
| virtual bool | isScalable () |
Protected Attributes | |
| bool | myHighFlag |
| int | myWidth |
| int | myHeight |
Protected Attributes inherited from GLViewer_Object | |
| QString | myName |
| Object name. More... | |
| QString | myType |
| Object type. More... | |
| GLViewer_Rect * | myRect |
| Object base rect. More... | |
| GLViewer_Rect * | myUpdateRect |
| Update object rect (after some viewer transformations) More... | |
| GLViewer_Text * | myGLText |
| Object GLText. More... | |
| GLfloat | myXScale |
| X scale factor. More... | |
| GLfloat | myYScale |
| Y scale factor. More... | |
| GLfloat | myXGap |
| Gap for X direction of rect. More... | |
| GLfloat | myYGap |
| Gap for Y direction of rect. More... | |
| GLfloat | myZoom |
| GLboolean | myIsHigh |
| Highlight status. More... | |
| GLboolean | myIsSel |
| Selectt status. More... | |
| GLViewer_Drawer * | myDrawer |
| Object drawer. More... | |
| GLViewer_AspectLine * | myAspectLine |
| Line aspect for object presentation. More... | |
| QString | myToolTipText |
| Objet tool tip text. More... | |
| bool | isToolTipHTML |
| HTML object tool tip status. More... | |
| bool | myIsVisible |
| Object visibke status. More... | |
| SUIT_DataOwner * | myOwner |
| GLViewer_Group * | myGroup |
| Object Group. More... | |
Text as Object for OpenGL
| GLViewer_TextObject::GLViewer_TextObject | ( | const QString & | theStr, |
| float | xPos = 0, |
||
| float | yPos = 0, |
||
| const QColor & | color = QColor( 0, 255, 0 ), |
||
| const QString & | toolTip = "GLText" |
||
| ) |
Constructor
| theStr | - text string |
| xPos | - x position |
| yPos | - y position |
| color | - color of text |
| toolTip | - tooltip of text object |
References GLViewer_Object::myGLText, myHeight, myHighFlag, GLViewer_Object::myToolTipText, and myWidth.
| GLViewer_TextObject::~GLViewer_TextObject | ( | ) |
Destructor
References GLViewer_Object::myGLText.
|
virtual |
Computes all necessary information about object for presentation in drawer
Implements GLViewer_Object.
References GLViewer_Text::getHeight(), GLViewer_Text::getPosition(), GLViewer_Text::getText(), GLViewer_Text::getWidth(), GLViewer_Object::myGLText, myHeight, GLViewer_Object::myRect, myWidth, GLViewer_Rect::setBottom(), GLViewer_Rect::setLeft(), GLViewer_Rect::setRight(), and GLViewer_Rect::setTop().
|
virtual |
Creates corresponding drawer
Implements GLViewer_Object.
References compute(), and GLViewer_Object::myDrawer.
|
virtual |
Codes text object as byte copy
Reimplemented from GLViewer_Object.
References GLViewer_Object::getByteCopy().
|
inline |
|
virtual |
Implements GLViewer_Object.
References GLViewer_Rect::bottom(), GLViewer_Text::getPosition(), GLViewer_Text::getText(), GLViewer_Rect::left(), GLViewer_Object::myGLText, myHeight, GLViewer_Object::myRect, myWidth, GLViewer_Object::myXGap, GLViewer_Object::myXScale, GLViewer_Object::myYGap, GLViewer_Object::myYScale, GLViewer_Rect::right(), GLViewer_Rect::setBottom(), GLViewer_Rect::setLeft(), GLViewer_Rect::setRight(), GLViewer_Rect::setTop(), and GLViewer_Rect::top().
|
inline |
|
virtual |
Computes highlight presentation
| x | - x coord |
| y | - y coord |
| tol | - tolerance of detecting |
| isCircle | - true if sensitive area of detection is round |
Implements GLViewer_Object.
References GLViewer_Text::getPosition(), GLViewer_Object::myGLText, myHeight, myHighFlag, GLViewer_Object::myIsHigh, GLViewer_Object::myIsVisible, myWidth, GLViewer_Object::myXScale, GLViewer_Object::myYScale, and obj.
|
virtual |
Initialize text object by byte array
| theArray | - byte array |
Reimplemented from GLViewer_Object.
References GLViewer_Object::initializeFromByteCopy(), myHighFlag, and GLViewer_Object::myType.
|
virtual |
Moves object by recomputing
| dx | - moving along X coord |
| dy | - moving along Y coord |
| fromGroup | - is true if this method called from group |
Implements GLViewer_Object.
References compute(), GLViewer_Group::dragingObjects(), GLViewer_Text::getPosition(), GLViewer_Object::myGLText, GLViewer_Object::myGroup, and GLViewer_Text::setPosition().
|
virtual |
Selects text object /param x, y - co-ordinates of mouse /param tol - tolerance /param rect - rectangle (in case of rectangular selection) /param isFull - if it is true, then object may selected only if it lays whole in selection zone
| isCircle | - true if sensitive area of detection is round |
| isShift | - true if selection exec with append option |
Implements GLViewer_Object.
References myHighFlag, GLViewer_Object::myIsHigh, GLViewer_Object::myIsSel, GLViewer_Object::myIsVisible, GLViewer_Object::myRect, obj, and GLViewer_Rect::toQRect().
|
virtual |
Installing already exist drawer with same type
| theDrawer | - new drawer |
Reimplemented from GLViewer_Object.
References GLViewer_Object::myDrawer.
|
inline |
|
inline |
|
virtual |
Saves text object to file HPGL
| hFile | - file instance |
| aViewerCS | - viewer co-ordinates system |
| aHPGLCS | - paper co-ordinates system |
Implements GLViewer_Object.
References AddCoordsToHPGL(), GLViewer_Text::getPosition(), GLViewer_Text::getText(), and GLViewer_Object::myGLText.
|
virtual |
Saves text object to file PostScript
| hFile | - file instance |
| aViewerCS | - viewer co-ordinates system |
| aPSCS | - paper co-ordinates system |
Implements GLViewer_Object.
References AddCoordsToPS(), GLViewer_Text::getPosition(), GLViewer_Text::getText(), and GLViewer_Object::myGLText.
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |