#include <QGICenterLine.h>
Public Types | |
enum | { Type = QGraphicsItem::UserType + 174 } |
Public Types inherited from TechDrawGui::QGIDecoration | |
enum | { Type = QGraphicsItem::UserType + 173 } |
Public Member Functions | |
virtual void | draw () |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) |
QGICenterLine () | |
void | setBounds (double x1, double y1, double x2, double y2) |
void | setIntersection (bool isIntersecting) |
int | type () const |
~QGICenterLine () | |
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 | |
QColor | getCenterColor () |
Qt::PenStyle | getCenterStyle () |
void | makeLine () |
void | setTools () |
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 |
|
explicit |
TechDrawGui::QGICenterLine::~QGICenterLine | ( | ) |
|
virtual |
Reimplemented from TechDrawGui::QGIDecoration.
References makeLine().
Referenced by TechDrawGui::QGIViewPart::drawCenterLines().
|
protected |
References TechDrawGui::PreferencesGui::centerQColor().
Referenced by QGICenterLine().
|
protected |
References App::GetApplication(), ParameterGrp::GetGroup(), ParameterGrp::GetInt(), and App::Application::GetUserParameter().
Referenced by QGICenterLine().
|
protected |
Referenced by draw().
|
virtual |
Reimplemented from TechDrawGui::QGIDecoration.
References TechDrawGui::QGIDecoration::paint(), and setTools().
void QGICenterLine::setBounds | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
Referenced by TechDrawGui::QGIViewPart::drawCenterLines().
void QGICenterLine::setIntersection | ( | bool | isIntersecting | ) |
Set the intersection style for the centerline. If isIntersecting is set to true, the middle of the centerline will be the middle of a dash - therefore if two lines intersect, they will form a cross. If isIntersecting is set to false, the middle of the centerline will be a dot.
Referenced by TechDrawGui::QGIViewPart::drawCenterLines().
|
protected |
int TechDrawGui::QGICenterLine::type | ( | ) | const |
Referenced by ArchProfile.ProfileTaskPanel::accept(), and ArchProfile.ProfileTaskPanel::retranslateUi().