TechDrawGui::QGIViewSection Class Reference

#include <QGIViewSection.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 108 }
 
- Public Types inherited from TechDrawGui::QGIViewPart
enum  { Type = QGraphicsItem::UserType + 102 }
 
- Public Types inherited from TechDrawGui::QGIView
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
 
- Public Member Functions inherited from TechDrawGui::QGIViewPart
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=nullptr) 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 QRectF boundingRect () const override
 
virtual void draw (void)
 
virtual void drawBorder (void)
 
virtual void drawCaption (void)
 
QGIViewClipgetClipGroup (void)
 
virtual QColor getCurrentColor (void)
 
virtual bool getFrameState (void)
 
MDIViewPagegetMDIViewPage (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::DrawViewgetViewObject () 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)
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGIView ()
 
virtual void removeChild (QGIView *child)
 
virtual void rotateView (void)
 
virtual void setGroupSelection (bool b)
 
void setLocked (bool b)
 
virtual void setSettingColor (QColor c)
 
void setViewFeature (TechDraw::DrawView *obj)
 
virtual void toggleCache (bool state)
 
int type () const override
 
virtual void updateView (bool update=false)
 
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 ()
 
- Protected Member Functions inherited from TechDrawGui::QGIViewPart
QGIFacedrawFace (TechDraw::FacePtr f, int idx)
 
QPainterPath drawPainterPath (TechDraw::BaseGeomPtr baseGeom) const
 
void drawViewPart ()
 
void dumpPath (const char *text, QPainterPath path)
 
TechDraw::DrawGeomHatchfaceIsGeomHatched (int i, std::vector< TechDraw::DrawGeomHatch * > geomObjs) const
 
TechDraw::DrawHatchfaceIsHatched (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< ParameterGrpgetParmGroupCol (void)
 
QGIViewgetQGIVByName (std::string name)
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 

Additional Inherited Members

- Public Slots inherited from TechDrawGui::QGIView
virtual void onSourceChange (TechDraw::DrawView *newParent)
 
- Static Public Member Functions inherited from TechDrawGui::QGIViewPart
static QPainterPath geomToPainterPath (TechDraw::BaseGeomPtr 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 QGSPagegetGraphicsScene (TechDraw::DrawView *dv)
 
static QGVPagegetGraphicsView (TechDraw::DrawView *dv)
 
static QString getPrefFont (void)
 
static double getPrefFontSize (void)
 
static Gui::ViewProvidergetViewProvider (App::DocumentObject *obj)
 
- Public Attributes inherited from TechDrawGui::QGIViewPart
bool showSection
 
- Public Attributes inherited from TechDrawGui::QGIView
boost::signals2::signal< void(QGIView *, QPointF)> signalSelectPoint
 
- Static Public Attributes inherited from TechDrawGui::QGIView
static const double DefaultFontSizeInMM = 5.0
 
- Protected Attributes inherited from TechDrawGui::QGIViewPart
bool m_isExporting
 
- Protected Attributes inherited from TechDrawGui::QGIView
QHash< QString, QGraphicsItem * > alignHash
 
QGCustomBorderm_border
 
QBrush m_brush
 
QGICaptionm_caption
 
QColor m_colCurrent
 
QColor m_colNormal
 
QColor m_colPre
 
QColor m_colSel
 
QColor m_colSetting
 
QPen m_decorPen
 
int m_dragState
 
QFont m_font
 
bool m_innerView
 
QGCustomLabelm_label
 
QGCustomImagem_lock
 
bool m_locked
 
double m_lockHeight
 
double m_lockWidth
 
QPen m_pen
 
std::string viewName
 
TechDraw::DrawViewviewObj
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGIViewSection()

TechDrawGui::QGIViewSection::QGIViewSection ( )
default

◆ ~QGIViewSection()

TechDrawGui::QGIViewSection::~QGIViewSection ( )
default

Member Function Documentation

◆ draw()

void QGIViewSection::draw ( void  )
overridevirtual

◆ drawSectionFace()

◆ drawSectionLine()

void QGIViewSection::drawSectionLine ( TechDraw::DrawViewSection s,
bool  b 
)
overridevirtual

Reimplemented from TechDrawGui::QGIViewPart.

◆ type()

int TechDrawGui::QGIViewSection::type ( void  ) const
override

◆ updateView()

void QGIViewSection::updateView ( bool  update = false)
overridevirtual

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