#include <QGIViewSection.h>
Public Types | |
enum { Type = QGraphicsItem::UserType + 108 } | |
![]() | |
enum { Type = QGraphicsItem::UserType + 102 } | |
![]() | |
enum { Type = QGraphicsItem::UserType + 101 } | |
Public Member Functions | |
virtual void draw () override | |
void drawSectionLine (TechDraw::DrawViewSection *s, bool b) override | |
QGIViewSection ()=default | |
int type () const override | |
virtual void updateView (bool update=false) override | |
~QGIViewSection ()=default | |
![]() | |
virtual QRectF boundingRect () const override | |
virtual void drawAllSectionLines (void) | |
virtual void drawCenterLines (bool b) | |
virtual void drawHighlight (TechDraw::DrawViewDetail *viewDetail, bool b) | |
virtual void drawMatting (void) | |
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 | |
~QGIViewPart () | |
![]() | |
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) | |
Protected Member Functions | |
void drawSectionFace () | |
![]() | |
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... | |
![]() | |
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 | |
Additional Inherited Members | |
![]() | |
virtual void onSourceChange (TechDraw::DrawView *newParent) | |
![]() | |
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 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) | |
![]() | |
bool showSection | |
![]() | |
boost::signals2::signal< void(QGIView *, QPointF)> signalSelectPoint | |
![]() | |
static const double DefaultFontSizeInMM = 5.0 | |
![]() | |
bool m_isExporting | |
![]() | |
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 | |
Member Enumeration Documentation
◆ anonymous enum
Constructor & Destructor Documentation
◆ QGIViewSection()
|
default |
◆ ~QGIViewSection()
|
default |
Member Function Documentation
◆ draw()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIViewPart.
References TechDrawGui::QGIViewPart::draw(), drawSectionFace(), and TechDrawGui::QGIView::isVisible().
Referenced by updateView().
◆ drawSectionFace()
|
protected |
References TechDrawGui::QGIFace::addLineSet(), TechDrawGui::QGIFace::clearLineSets(), Base::Console(), TechDrawGui::ViewProviderViewSection::CutSurfaceColor, TechDrawGui::QGIFace::draw(), TechDrawGui::QGIViewPart::drawFace(), TechDrawGui::ViewProviderViewSection::GeomHatchColor, TechDrawGui::QGIFace::GeomHatchFill, TechDrawGui::QGIViewPart::getExporting(), App::PropertyQuantity::getValue(), App::PropertyFloat::getValue(), App::PropertyBool::getValue(), App::PropertyColor::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::ViewProviderViewSection::HatchColor, TechDrawGui::QGIFace::hideSvg(), TechDrawGui::QGIFace::isHatched(), TechDrawGui::ViewProviderViewPart::LineWidth, TechDrawGui::QGIFace::PlainFill, ZVALUE::SECTIONFACE, TechDrawGui::QGIFace::setDrawEdges(), TechDrawGui::QGIPrimPath::setFillColor(), TechDrawGui::QGIFace::setFillMode(), TechDrawGui::QGIPrimPath::setFillStyle(), TechDrawGui::QGIFace::setHatchColor(), TechDrawGui::QGIFace::setHatchFile(), TechDrawGui::QGIFace::setHatchScale(), TechDrawGui::QGIFace::setLineWeight(), TechDrawGui::QGIFace::setPrettyNormal(), TechDrawGui::QGIPrimPath::setStyle(), TechDrawGui::QGIPrimPath::setWidth(), TechDrawGui::ViewProviderViewSection::ShowCutSurface, TechDrawGui::QGIFace::SvgFill, Base::ConsoleSingleton::Warning(), and TechDrawGui::ViewProviderViewSection::WeightPattern.
Referenced by draw().
◆ drawSectionLine()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIViewPart.
◆ type()
|
override |
◆ updateView()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIViewPart.
References draw(), TechDrawGui::QGIView::getViewObject(), and TechDrawGui::QGIView::updateView().
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGIViewSection.h
- src/Mod/TechDraw/Gui/QGIViewSection.cpp