#include <QGIViewPart.h>
Public Types | |
| enum | { Type = QGraphicsItem::UserType + 102 } |
Public Types inherited from TechDrawGui::QGIView | |
| enum | { Type = QGraphicsItem::UserType + 101 } |
Public Member Functions | |
| virtual QRectF | boundingRect () const override |
| virtual void | draw () override |
| virtual void | drawAllSectionLines (void) |
| virtual void | drawCenterLines (bool b) |
| virtual void | drawHighlight (TechDraw::DrawViewDetail *viewDetail, bool b) |
| virtual void | drawMatting (void) |
| virtual void | drawSectionLine (TechDraw::DrawViewSection *s, bool b) |
| bool | getExporting (void) |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override |
| QGIViewPart () | |
| virtual void | rotateView (void) override |
| void | setExporting (bool b) |
| void | setViewPartFeature (TechDraw::DrawViewPart *obj) |
| void | tidy () |
| void | toggleCache (bool state) override |
| void | toggleCosmeticLines (bool state) |
| int | type () const override |
| virtual void | updateView (bool update=false) override |
| ~QGIViewPart () | |
Public Member Functions inherited from TechDrawGui::QGIView | |
| virtual void | addArbitraryItem (QGraphicsItem *qgi) |
| void | alignTo (QGraphicsItem *, const QString &alignment) |
| virtual void | drawBorder (void) |
| virtual void | drawCaption (void) |
| QGIViewClip * | getClipGroup (void) |
| virtual QColor | getCurrentColor (void) |
| virtual bool | getFrameState (void) |
| MDIViewPage * | getMDIViewPage (void) const |
| virtual QColor | getNormalColor (void) |
| virtual QColor | getPreColor (void) |
| double | getScale (void) |
| virtual QColor | getSelectColor (void) |
| virtual QColor | getSettingColor (void) |
| const char * | getViewName () const |
| const std::string | getViewNameAsString () const |
| TechDraw::DrawView * | getViewObject () const |
| virtual void | isVisible (bool state) |
| virtual bool | isVisible (void) |
| void | makeMark (Base::Vector3d v, QColor c=Qt::red) |
| void | makeMark (double x, double y, QColor c=Qt::red) |
| void | makeMark (QPointF p, QColor c=Qt::red) |
| virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
| QGIView () | |
| virtual void | removeChild (QGIView *child) |
| virtual void | setGroupSelection (bool b) |
| void | setLocked (bool b) |
| virtual void | setSettingColor (QColor c) |
| void | setViewFeature (TechDraw::DrawView *obj) |
| int | type () const override |
| virtual | ~QGIView () |
| void | setPosition (qreal x, qreal y) |
| Methods to ensure that Y-Coordinates are orientated correctly. More... | |
| qreal | getY () |
| bool | isInnerView () |
| void | isInnerView (bool state) |
| double | getYInClip (double y) |
Static Public Member Functions | |
| static QPainterPath | geomToPainterPath (TechDraw::BaseGeom *baseGeom, double rotation=0.0) |
| static void | pathArc (QPainterPath &path, double rx, double ry, double x_axis_rotation, bool large_arc_flag, bool sweep_flag, double x, double y, double curx, double cury) |
| Draws an arc using QPainterPath path. More... | |
| static void | pathArcSegment (QPainterPath &path, double xc, double yc, double th0, double th1, double rx, double ry, double xAxisRotation) |
| Helper for pathArc() More... | |
Static Public Member Functions inherited from TechDrawGui::QGIView | |
| static int | calculateFontPixelSize (double sizeInMillimetres) |
| static int | calculateFontPixelWidth (const QFont &font) |
| static double | getDimFontSize (void) |
| static QGVPage * | getGraphicsView (TechDraw::DrawView *dv) |
| static QString | getPrefFont (void) |
| static double | getPrefFontSize (void) |
| static Gui::ViewProvider * | getViewProvider (App::DocumentObject *obj) |
Public Attributes | |
| bool | showSection |
Public Attributes inherited from TechDrawGui::QGIView | |
| boost::signals2::signal< void(QGIView *, QPointF)> | signalSelectPoint |
Protected Member Functions | |
| QGIFace * | drawFace (TechDraw::Face *f, int idx) |
| QPainterPath | drawPainterPath (TechDraw::BaseGeom *baseGeom) const |
| void | drawViewPart () |
| void | dumpPath (const char *text, QPainterPath path) |
| TechDraw::DrawGeomHatch * | faceIsGeomHatched (int i, std::vector< TechDraw::DrawGeomHatch * > geomObjs) const |
| TechDraw::DrawHatch * | faceIsHatched (int i, std::vector< TechDraw::DrawHatch * > hatchObjs) const |
| bool | formatGeomFromCenterLine (std::string cTag, QGIEdge *item) |
| bool | formatGeomFromCosmetic (std::string cTag, QGIEdge *item) |
| virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
| bool | prefFaceEdges (void) |
| bool | prefPrintCenters (void) |
| void | removeDecorations (void) |
| Remove all existing QGIDecoration items(SectionLine,SectionMark,...) More... | |
| void | removePrimitives (void) |
| Remove all existing QGIPrimPath items(Vertex,Edge,Face) More... | |
Protected Member Functions inherited from TechDrawGui::QGIView | |
| virtual QRectF | customChildrenBoundingRect (void) const |
| void | dumpRect (const char *text, QRectF r) |
| Base::Reference< ParameterGrp > | getParmGroupCol (void) |
| QGIView * | getQGIVByName (std::string name) |
| virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
| virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
Protected Attributes | |
| bool | m_isExporting |
Protected Attributes inherited from TechDrawGui::QGIView | |
| QHash< QString, QGraphicsItem * > | alignHash |
| QGCustomBorder * | m_border |
| QBrush | m_brush |
| QGICaption * | m_caption |
| QColor | m_colCurrent |
| QColor | m_colNormal |
| QColor | m_colPre |
| QColor | m_colSel |
| QColor | m_colSetting |
| QPen | m_decorPen |
| QFont | m_font |
| bool | m_innerView |
| QGCustomLabel * | m_label |
| QGCustomImage * | m_lock |
| bool | m_locked |
| double | m_lockHeight |
| double | m_lockWidth |
| QPen | m_pen |
| std::string | viewName |
| TechDraw::DrawView * | viewObj |
Additional Inherited Members | |
Public Slots inherited from TechDrawGui::QGIView | |
| virtual void | onSourceChange (TechDraw::DrawView *newParent) |
Static Public Attributes inherited from TechDrawGui::QGIView | |
| static const double | DefaultFontSizeInMM = 5.0 |
Member Enumeration Documentation
◆ anonymous enum
Constructor & Destructor Documentation
◆ QGIViewPart()
|
explicit |
References showSection.
◆ ~QGIViewPart()
| QGIViewPart::~QGIViewPart | ( | ) |
References tidy().
Member Function Documentation
◆ boundingRect()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::boundingRect().
◆ draw()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
Reimplemented in TechDrawGui::QGIViewSection.
References drawAllSectionLines(), drawCenterLines(), drawMatting(), drawViewPart(), and TechDrawGui::QGIView::isVisible().
Referenced by TechDrawGui::QGIViewSection::draw(), and updateView().
◆ drawAllSectionLines()
|
virtual |
References drawSectionLine(), TechDraw::DrawViewPart::getSectionRefs(), TechDrawGui::QGIView::getViewObject(), and TechDrawGui::QGIView::getViewProvider().
Referenced by draw().
◆ drawCenterLines()
|
virtual |
References TechDrawGui::QGICenterLine::draw(), TechDraw::DrawViewPart::getBoxX(), TechDraw::DrawViewPart::getBoxY(), App::PropertyBool::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), TechDrawGui::ViewProviderViewPart::HorizCenterLine, ZVALUE::SECTIONLINE, TechDrawGui::QGICenterLine::setBounds(), TechDrawGui::QGICenterLine::setIntersection(), and TechDrawGui::QGIDecoration::setWidth().
Referenced by draw().
◆ drawFace()
|
protected |
References drawPainterPath(), and TechDrawGui::QGIFace::setOutline().
Referenced by TechDrawGui::QGIViewSection::drawSectionFace(), and drawViewPart().
◆ drawHighlight()
|
virtual |
References TechDraw::DrawViewDetail::AnchorPoint, TechDraw::DrawView::getScale(), App::PropertyQuantity::getValue(), App::PropertyVector::getValue(), App::PropertyFloat::getValue(), App::PropertyString::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), ZVALUE::HIGHLIGHT, TechDrawGui::QGIView::m_font, TechDraw::DrawViewDetail::Radius, TechDraw::DrawViewDetail::Reference, and TechDraw::DrawView::Rotation.
Referenced by drawViewPart().
◆ drawMatting()
|
virtual |
References TechDrawGui::QGIMatting::draw(), Base::Persistence::getClassTypeId(), TechDraw::DrawView::getScale(), App::PropertyFloat::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::Rez::guiX(), TechDraw::DrawViewDetail::Radius, DraftVecUtils::scale(), and TechDrawGui::QGIMatting::setRadius().
Referenced by draw().
◆ drawPainterPath()
|
protected |
References geomToPainterPath(), App::PropertyQuantity::getValue(), TechDrawGui::QGIView::getViewObject(), and TechDraw::DrawView::Rotation.
Referenced by drawFace(), and drawViewPart().
◆ drawSectionLine()
|
virtual |
Reimplemented in TechDrawGui::QGIViewSection.
References TechDrawGui::QGISectionLine::draw(), TechDraw::DrawView::getScale(), App::PropertyQuantity::getValue(), App::PropertyVector::getValue(), App::PropertyString::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), TechDraw::DrawViewPart::hasGeometry(), TechDrawGui::QGIView::m_font, Base::Vector3< _Precision >::Normalize(), TechDraw::DrawViewPart::projectPoint(), TechDraw::DrawView::Rotation, DraftVecUtils::scale(), ZVALUE::SECTIONLINE, TechDraw::DrawViewSection::sectionLineEnds(), TechDraw::DrawViewSection::SectionNormal, TechDraw::DrawViewSection::SectionSymbol, TechDrawGui::QGISectionLine::setDirection(), TechDrawGui::QGISectionLine::setEnds(), TechDrawGui::QGISectionLine::setFont(), TechDrawGui::QGISectionLine::setSectionColor(), TechDrawGui::QGISectionLine::setSectionStyle(), TechDrawGui::QGISectionLine::setSymbol(), TechDrawGui::QGIDecoration::setWidth(), Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
Referenced by drawAllSectionLines().
◆ drawViewPart()
|
protected |
References TechDrawGui::QGIFace::addLineSet(), App::Color::asValue(), TechDrawGui::QGIFace::clearLineSets(), TechDraw::CosmeticVertex::color, TechDrawGui::ViewProviderGeomHatch::ColorPattern, Base::Console(), TechDrawGui::QGIFace::draw(), drawFace(), drawHighlight(), drawPainterPath(), TechDraw::ecHARD, TechDraw::ecOUTLINE, TechDraw::ecSEAM, TechDraw::ecSMOOTH, TechDraw::ecUVISO, ZVALUE::EDGE, ZVALUE::FACE, faceIsGeomHatched(), faceIsHatched(), formatGeomFromCenterLine(), formatGeomFromCosmetic(), TechDrawGui::QGIFace::GeomHatchFill, App::GetApplication(), getExporting(), ParameterGrp::GetFloat(), TechDrawGui::QGIView::getFrameState(), ParameterGrp::GetGroup(), TechDraw::DrawUtil::getIndexFromName(), App::PropertyLinkSub::getSubValues(), TechDraw::DrawGeomHatch::getTrimmedLines(), App::Application::GetUserParameter(), App::PropertyQuantity::getValue(), App::PropertyFileIncluded::getValue(), App::PropertyFloat::getValue(), App::PropertyColor::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), TechDrawGui::ViewProviderHatch::HatchColor, TechDrawGui::ViewProviderHatch::HatchScale, ZVALUE::HIDEDGE, TechDrawGui::QGIFace::hideSvg(), App::PropertyFileIncluded::isEmpty(), TechDrawGui::QGIFace::isHatched(), TechDrawGui::ViewProviderViewPart::LineWidth, TechDraw::LineFormat::m_color, TechDraw::GeomFormat::m_format, TechDraw::LineFormat::m_style, TechDraw::LineFormat::m_visible, TechDraw::LineFormat::m_weight, Base::ConsoleSingleton::Message(), TechDrawGui::PreferencesGui::normalQColor(), TechDraw::DrawGeomHatch::PatIncluded, TechDrawGui::QGIFace::PlainFill, prefFaceEdges(), prefPrintCenters(), removeDecorations(), removePrimitives(), TechDraw::DrawGeomHatch::ScalePattern, TechDrawGui::QGIFace::setDrawEdges(), TechDrawGui::QGIPrimPath::setFillColor(), TechDrawGui::QGIFace::setFillMode(), TechDrawGui::QGIFace::setHatchColor(), TechDrawGui::QGIFace::setHatchFile(), TechDrawGui::QGIFace::setHatchScale(), TechDrawGui::QGIEdge::setHiddenEdge(), TechDrawGui::QGIFace::setLineWeight(), TechDrawGui::QGIPrimPath::setNormalColor(), TechDrawGui::QGIPrimPath::setPrettyNormal(), TechDrawGui::QGICMark::setPrettyNormal(), TechDrawGui::QGIEdge::setPrettyNormal(), TechDrawGui::QGIFace::setPrettyNormal(), TechDrawGui::QGIVertex::setRadius(), TechDrawGui::QGICMark::setSize(), TechDrawGui::QGIPrimPath::setStyle(), TechDrawGui::QGICMark::setThick(), TechDrawGui::QGIPrimPath::setWidth(), TechDraw::CosmeticVertex::size, TechDraw::DrawGeomHatch::Source, TechDrawGui::QGIFace::SvgFill, TechDraw::DrawHatch::SvgIncluded, ZVALUE::VERTEX, TechDrawGui::PreferencesGui::vertexQColor(), and TechDrawGui::ViewProviderGeomHatch::WeightPattern.
Referenced by draw().
◆ dumpPath()
|
protected |
References Base::Console(), and Base::ConsoleSingleton::Message().
◆ faceIsGeomHatched()
|
protected |
References TechDraw::DrawUtil::getIndexFromName(), App::PropertyLinkSub::getSubValues(), and TechDraw::DrawGeomHatch::Source.
Referenced by drawViewPart().
◆ faceIsHatched()
|
protected |
References TechDraw::DrawUtil::getIndexFromName(), App::PropertyLinkSub::getSubValues(), and TechDraw::DrawHatch::Source.
Referenced by drawViewPart().
◆ formatGeomFromCenterLine()
References App::Color::asValue(), TechDrawGui::QGIView::getViewObject(), TechDraw::LineFormat::m_color, TechDraw::CenterLine::m_format, TechDraw::LineFormat::m_style, TechDraw::LineFormat::m_visible, TechDraw::LineFormat::m_weight, TechDrawGui::QGIPrimPath::setNormalColor(), TechDrawGui::QGIPrimPath::setStyle(), and TechDrawGui::QGIPrimPath::setWidth().
Referenced by drawViewPart().
◆ formatGeomFromCosmetic()
References App::Color::asValue(), TechDrawGui::QGIView::getViewObject(), TechDraw::LineFormat::m_color, TechDraw::CosmeticEdge::m_format, TechDraw::LineFormat::m_style, TechDraw::LineFormat::m_visible, TechDraw::LineFormat::m_weight, TechDrawGui::QGIPrimPath::setNormalColor(), TechDrawGui::QGIPrimPath::setStyle(), and TechDrawGui::QGIPrimPath::setWidth().
Referenced by drawViewPart().
◆ geomToPainterPath()
|
static |
References TechDraw::Ellipse::angle, TechDraw::ARCOFCIRCLE, TechDraw::ARCOFELLIPSE, TechDraw::BEZIER, TechDraw::BSPLINE, TechDraw::Circle::center, TechDraw::Ellipse::center, TechDraw::CIRCLE, Base::Console(), TechDraw::AOE::cw, TechDraw::AOC::cw, TechDraw::ELLIPSE, TechDraw::AOE::endPnt, TechDraw::AOC::endPnt, Base::ConsoleSingleton::Error(), TechDraw::GENERIC, TechDraw::BaseGeom::geomType, TechDrawGui::Rez::guiX(), TechDraw::AOE::largeArc, TechDraw::AOC::largeArc, TechDraw::Ellipse::major, TechDraw::Ellipse::minor, pathArc(), TechDraw::BezierSegment::pnts, TechDraw::Generic::points, TechDraw::BezierSegment::poles, TechDraw::Circle::radius, TechDraw::BaseGeom::reversed, TechDraw::BSpline::segments, TechDraw::AOE::startPnt, TechDraw::AOC::startPnt, Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
Referenced by drawPainterPath().
◆ getExporting()
| bool TechDrawGui::QGIViewPart::getExporting | ( | void | ) |
Referenced by TechDrawGui::QGIViewSection::drawSectionFace(), and drawViewPart().
◆ itemChange()
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::itemChange(), and tidy().
◆ paint()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::paint().
◆ pathArc()
|
static |
Draws an arc using QPainterPath path.
x_axis_rotation is in radian
References pathArcSegment().
Referenced by geomToPainterPath().
◆ pathArcSegment()
|
static |
◆ prefFaceEdges()
|
protected |
References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
Referenced by drawViewPart().
◆ prefPrintCenters()
|
protected |
References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
Referenced by drawViewPart().
◆ removeDecorations()
|
protected |
Remove all existing QGIDecoration items(SectionLine,SectionMark,...)
Referenced by drawViewPart().
◆ removePrimitives()
|
protected |
Remove all existing QGIPrimPath items(Vertex,Edge,Face)
References TechDrawGui::MDIViewPage::blockSelection(), and TechDrawGui::QGIView::getMDIViewPage().
Referenced by drawViewPart().
◆ rotateView()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
◆ setExporting()
| void TechDrawGui::QGIViewPart::setExporting | ( | bool | b | ) |
Referenced by TechDrawGui::QGVPage::setExporting().
◆ setViewPartFeature()
| void QGIViewPart::setViewPartFeature | ( | TechDraw::DrawViewPart * | obj | ) |
References TechDrawGui::QGIView::setViewFeature().
◆ tidy()
| void QGIViewPart::tidy | ( | ) |
Referenced by itemChange(), and ~QGIViewPart().
◆ toggleCache()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
◆ toggleCosmeticLines()
| void QGIViewPart::toggleCosmeticLines | ( | bool | state | ) |
References TechDrawGui::QGIEdge::setCosmetic().
◆ type()
|
override |
◆ updateView()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
Reimplemented in TechDrawGui::QGIViewSection.
References draw(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), and TechDrawGui::QGIView::updateView().
Member Data Documentation
◆ m_isExporting
|
protected |
◆ showSection
| bool TechDrawGui::QGIViewPart::showSection |
Referenced by QGIViewPart().
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGIViewPart.h
- src/Mod/TechDraw/Gui/QGIViewPart.cpp
Public Types inherited from
1.8.17