#include <GLViewer_Text.h>
Public Member Functions | |
| GLViewer_Text (const QString &, float xPos=0.0, float yPos=0.0, const QColor &color=QColor(0, 255, 0)) | |
| GLViewer_Text (const QString &, float xPos, float yPos, const QColor &, QFont theFont, int theSeparator) | |
| ~GLViewer_Text () | |
| void | setText (const QString &text) | 
| Sets text.  More... | |
| QString | getText () const | 
| Returns text.  More... | |
| void | setPosition (float xPos, float yPos) | 
| Sets text position.  More... | |
| void | getPosition (float &xPos, float &yPos) | 
| Returns text position.  More... | |
| void | setColor (const QColor &color) | 
| Sets text color.  More... | |
| QColor | getColor () const | 
| Returns text color.  More... | |
| void | setFont (const QFont theQFont) | 
| Sets text font.  More... | |
| QFont | getFont () const | 
| Returns text font.  More... | |
| int | getSeparator () | 
| Returns text separator.  More... | |
| void | setSeparator (int theSep) | 
| Sets text separator.  More... | |
| int | getWidth () | 
| Returns text width.  More... | |
| int | getHeight () | 
| Returns text height.  More... | |
| QByteArray | getByteCopy () const | 
| A function for coding object to the byte copy.  More... | |
| DisplayTextFormat | getDisplayTextFormat () const | 
| Sets text format BITMAP or TEXTURE.  More... | |
| void | setTextDisplayFormat (DisplayTextFormat theDTF) | 
| Returns text format BITMAP or TEXTURE.  More... | |
Static Public Member Functions | |
| static GLViewer_Text * | fromByteCopy (QByteArray) | 
| A function for decoding object from the byte copy.  More... | |
Protected Attributes | |
| QString | myText | 
| float | myXPos | 
| float | myYPos | 
| QColor | myColor | 
| QFont | myQFont | 
| int | mySeparator | 
| DisplayTextFormat | myDTF | 
Substitution of Prs3d_Text for OpenGL
| GLViewer_Text::GLViewer_Text | ( | const QString & | text, | 
| float | xPos = 0.0,  | 
        ||
| float | yPos = 0.0,  | 
        ||
| const QColor & | color = QColor( 0, 255, 0 )  | 
        ||
| ) | 
Constructor
References OCCViewer::color(), DTF_BITMAP, myColor, myDTF, myQFont, mySeparator, myText, myXPos, and myYPos.
| GLViewer_Text::GLViewer_Text | ( | const QString & | text, | 
| float | xPos, | ||
| float | yPos, | ||
| const QColor & | color, | ||
| QFont | theFont, | ||
| int | theSeparator | ||
| ) | 
Constructor
References OCCViewer::color(), DTF_BITMAP, myColor, myDTF, myQFont, mySeparator, myText, myXPos, and myYPos.
| GLViewer_Text::~GLViewer_Text | ( | ) | 
Destructor
      
  | 
  static | 
A function is used for copy-past technollogy in past method
Initialize text from binary representation
| theBuf | - byte array | 
References GLViewer_Text().
| QByteArray GLViewer_Text::getByteCopy | ( | ) | const | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
| int GLViewer_Text::getHeight | ( | ) | 
References myQFont.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
| int GLViewer_Text::getWidth | ( | ) | 
References myQFont, mySeparator, and myText.
      
  | 
  inline | 
References OCCViewer::color().
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected |