TechDrawGui::QGITile Class Reference

#include <QGITile.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 325 }
 
- Public Types inherited from TechDrawGui::QGIDecoration
enum  { Type = QGraphicsItem::UserType + 173 }
 

Public Member Functions

virtual QRectF boundingRect () const
 
virtual void draw (void)
 
bool isTailRight (void)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
 
 QGITile (TechDraw::DrawTileWeld *)
 
void setAltWeld (bool b)
 
void setFont (QFont f, double fSizePx)
 
void setFont (std::string fName, double fSizePx)
 
void setSymbolFile (std::string s)
 
void setTailRight (bool b)
 
void setTilePosition (QPointF org, int r, int c)
 
void setTileScale (double s)
 
void setTileTextCenter (std::string s)
 
void setTileTextLeft (std::string s)
 
void setTileTextRight (std::string s)
 
int type (void) const
 
 ~QGITile (void)
 
- Public Member Functions inherited from TechDrawGui::QGIDecoration
virtual QRectF boundingRect () const
 
virtual void draw ()
 
QColor getColor (void)
 
void makeMark (Base::Vector3d v)
 
void makeMark (double x, double y)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
 
 QGIDecoration (void)
 
void setColor (QColor c)
 
void setFill (Qt::BrushStyle bs)
 
void setStyle (Qt::PenStyle s)
 
void setWidth (double w)
 
int type () const
 
 ~QGIDecoration ()
 

Protected Member Functions

bool getAltWeld (void)
 
std::string getStringFromFile (std::string inSpec)
 
QByteArray getSvgString (QString svgPath)
 
double getSymbolFactor (void) const
 
double getSymbolHeight (void) const
 
double getSymbolWidth (void) const
 
QColor getTileColor (void) const
 
bool isReadable (QString filePath)
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value)
 
void makeSymbol (void)
 
void makeText (void)
 
double prefFontSize (void) const
 
QString prefTextFont (void) const
 
void setPrettyNormal ()
 
void setPrettyPre ()
 
void setPrettySel ()
 
- Protected Member Functions inherited from TechDrawGui::QGIDecoration
virtual QColor prefNormalColor (void)
 
virtual QColor prefPreColor (void)
 
virtual QColor prefSelectColor (void)
 
void setPrettyNormal ()
 
void setPrettyPre ()
 
void setPrettySel ()
 

Additional Inherited Members

- Protected Attributes inherited from TechDrawGui::QGIDecoration
QBrush m_brush
 
Qt::BrushStyle m_brushCurrent
 
QColor m_colCurrent
 
QColor m_colNormal
 
QPen m_pen
 
Qt::PenStyle m_styleCurrent
 
double m_width
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGITile()

◆ ~QGITile()

QGITile::~QGITile ( void  )

Member Function Documentation

◆ boundingRect()

QRectF QGITile::boundingRect ( ) const
virtual

Reimplemented from TechDrawGui::QGIDecoration.

◆ draw()

◆ getAltWeld()

bool QGITile::getAltWeld ( void  )
protected

Referenced by draw().

◆ getStringFromFile()

std::string QGITile::getStringFromFile ( std::string  inSpec)
protected

Referenced by makeSymbol().

◆ getSvgString()

QByteArray TechDrawGui::QGITile::getSvgString ( QString  svgPath)
protected

◆ getSymbolFactor()

double QGITile::getSymbolFactor ( void  ) const
protected

◆ getSymbolHeight()

double QGITile::getSymbolHeight ( void  ) const
protected

◆ getSymbolWidth()

double QGITile::getSymbolWidth ( void  ) const
protected

◆ getTileColor()

◆ isReadable()

bool TechDrawGui::QGITile::isReadable ( QString  filePath)
protected

◆ isTailRight()

bool QGITile::isTailRight ( void  )

Referenced by draw().

◆ itemChange()

QVariant QGITile::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
protectedvirtual

◆ makeSymbol()

◆ makeText()

◆ paint()

void QGITile::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = nullptr 
)
virtual

◆ prefFontSize()

double QGITile::prefFontSize ( void  ) const
protected

◆ prefTextFont()

QString QGITile::prefTextFont ( void  ) const
protected

Referenced by QGITile().

◆ setAltWeld()

void TechDrawGui::QGITile::setAltWeld ( bool  b)

◆ setFont() [1/2]

void QGITile::setFont ( QFont  f,
double  fSizePx 
)

◆ setFont() [2/2]

void QGITile::setFont ( std::string  fName,
double  fSizePx 
)

◆ setPrettyNormal()

◆ setPrettyPre()

◆ setPrettySel()

◆ setSymbolFile()

void QGITile::setSymbolFile ( std::string  s)

◆ setTailRight()

void TechDrawGui::QGITile::setTailRight ( bool  b)

◆ setTilePosition()

void QGITile::setTilePosition ( QPointF  org,
int  r,
int  c 
)

◆ setTileScale()

void QGITile::setTileScale ( double  s)

◆ setTileTextCenter()

void QGITile::setTileTextCenter ( std::string  s)

◆ setTileTextLeft()

void QGITile::setTileTextLeft ( std::string  s)

◆ setTileTextRight()

void QGITile::setTileTextRight ( std::string  s)

◆ type()

int TechDrawGui::QGITile::type ( void  ) const

The documentation for this class was generated from the following files: