#include <QGIViewDimension.h>
Public Types | |
enum | { Type = QGraphicsItem::UserType + 106 } |
Public Types inherited from TechDrawGui::QGIView | |
enum | { Type = QGraphicsItem::UserType + 101 } |
Public Slots | |
void | datumLabelDragFinished (void) |
void | datumLabelDragged (bool ctrl) |
void | hover (bool state) |
void | onPrettyChanged (int state) |
void | select (bool state) |
void | updateDim () |
Public Slots inherited from TechDrawGui::QGIView | |
virtual void | onSourceChange (TechDraw::DrawView *newParent) |
Public Member Functions | |
virtual QRectF | boundingRect () const override |
virtual void | drawBorder () override |
virtual QGIDatumLabel * | getDatumLabel (void) |
QString | getLabelText (void) |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
virtual QColor | prefNormalColor (void) |
QGIViewDimension () | |
virtual void | setGroupSelection (bool b) override |
void | setNormalColorAll (void) |
void | setPrettyNormal (void) |
void | setPrettyPre (void) |
void | setPrettySel (void) |
void | setViewPartFeature (TechDraw::DrawViewDimension *obj) |
int | type () const override |
virtual void | updateView (bool update=false) override |
~QGIViewDimension ()=default | |
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) |
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) |
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) |
Public Attributes | |
TechDraw::DrawViewDimension * | dvDimension |
Public Attributes inherited from TechDrawGui::QGIView | |
boost::signals2::signal< void(QGIView *, QPointF)> | signalSelectPoint |
Protected Member Functions | |
void | arrowPositionsToFeature (const Base::Vector2d positions[]) const |
bool | constructDimensionArc (const Base::Vector2d &arcCenter, double arcRadius, double endAngle, double startRotation, double handednessFactor, double jointRotation, const Base::BoundBox2d &labelRectangle, int arrowCount, int standardStyle, bool flipArrows, std::vector< std::pair< double, bool > > &outputMarking) const |
bool | constructDimensionLine (const Base::Vector2d &targetPoint, double lineAngle, double startPosition, double jointPosition, const Base::BoundBox2d &labelRectangle, int arrowCount, int standardStyle, bool flipArrows, std::vector< std::pair< double, bool > > &outputMarking) const |
void | draw () override |
void | drawAngle (TechDraw::DrawViewDimension *dimension, ViewProviderDimension *viewProvider) const |
void | drawArrows (int count, const Base::Vector2d positions[], double angles[], bool flipped) const |
void | drawDiameter (TechDraw::DrawViewDimension *dimension, ViewProviderDimension *viewProvider) const |
void | drawDimensionArc (QPainterPath &painterPath, const Base::Vector2d &arcCenter, double arcRadius, double endAngle, double startRotation, double jointAngle, const Base::BoundBox2d &labelRectangle, int arrowCount, int standardStyle, bool flipArrows) const |
void | drawDimensionLine (QPainterPath &painterPath, const Base::Vector2d &targetPoint, double lineAngle, double startPosition, double jointPosition, const Base::BoundBox2d &labelRectangle, int arrowCount, int standardStyle, bool flipArrows) const |
void | drawDistance (TechDraw::DrawViewDimension *dimension, ViewProviderDimension *viewProvider) const |
void | drawDistanceExecutive (const Base::Vector2d &startPoint, const Base::Vector2d &endPoint, double lineAngle, const Base::BoundBox2d &labelRectangle, int standardStyle, int renderExtent, bool flipArrows) const |
void | drawDistanceOverride (const Base::Vector2d &startPoint, const Base::Vector2d &endPoint, double lineAngle, const Base::BoundBox2d &labelRectangle, int standardStyle, int renderExtent, bool flipArrows, double extensionAngle) const |
void | drawMultiArc (QPainterPath &painterPath, const Base::Vector2d &arcCenter, double arcRadius, const std::vector< std::pair< double, bool > > &drawMarking) const |
void | drawMultiLine (QPainterPath &painterPath, const Base::Vector2d &lineOrigin, double lineAngle, const std::vector< std::pair< double, bool > > &drawMarking) const |
void | drawRadius (TechDraw::DrawViewDimension *dimension, ViewProviderDimension *viewProvider) const |
void | drawRadiusExecutive (const Base::Vector2d ¢erPoint, const Base::Vector2d &midPoint, double radius, double endAngle, double startRotation, const Base::BoundBox2d &labelRectangle, double centerOverhang, int standardStyle, int renderExtent, bool flipArrow) const |
void | drawSingleArc (QPainterPath &painterPath, const Base::Vector2d &arcCenter, double arcRadius, double startAngle, double endAngle) const |
void | drawSingleLine (QPainterPath &painterPath, const Base::Vector2d &lineOrigin, double lineAngle, double startPosition, double endPosition) const |
Base::Vector3d | findIsoDir (Base::Vector3d ortho) const |
find the closest isometric axis given an ortho vector More... | |
Base::Vector3d | findIsoExt (Base::Vector3d isoDir) const |
find the iso extension direction corresponding to an iso dist direction More... | |
Base::Vector2d | getAsmeRefJointPoint (const Base::BoundBox2d &labelRectangle, bool right) const |
Base::Vector2d | getAsmeRefOutsetPoint (const Base::BoundBox2d &labelRectangle, bool right) const |
Base::Vector2d | getIsoRefJointPoint (const Base::BoundBox2d &labelRectangle, bool right) const |
Base::Vector2d | getIsoRefOutsetPoint (const Base::BoundBox2d &labelRectangle, bool right) const |
QString | getPrecision (void) |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
void | makeMarkC (double x, double y, QColor c=Qt::red) const |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
void | resetArrows (void) const |
virtual void | setPens (void) |
virtual void | setSvgPens (void) |
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) |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
Static Protected Member Functions | |
static int | compareAngleStraightness (double straightAngle, double leftAngle, double rightAngle, double leftStrikeFactor, double rightStrikeFactor) |
static double | computeArcStrikeFactor (const Base::BoundBox2d &labelRectangle, const Base::Vector2d &arcCenter, double arcRadius, const std::vector< std::pair< double, bool > > &drawMarking) |
static Base::Vector2d | computeExtensionLinePoints (const Base::Vector2d &originPoint, const Base::Vector2d &linePoint, double hintAngle, double overhangSize, double gapSize, Base::Vector2d &startPoint) |
static double | computeLineAndLabelAngles (const Base::Vector2d &rotationCenter, const Base::Vector2d &labelCenter, double lineLabelDistance, double &lineAngle, double &labelAngle) |
static double | computeLineStrikeFactor (const Base::BoundBox2d &labelRectangle, const Base::Vector2d &lineOrigin, double lineAngle, const std::vector< std::pair< double, bool > > &drawMarking) |
static Base::Vector2d | computePerpendicularIntersection (const Base::Vector2d &linePoint, const Base::Vector2d &perpendicularPoint, double lineAngle) |
static double | getAnglePlacementFactor (double testAngle, double endAngle, double startRotation) |
static double | getIsoStandardLinePlacement (double labelAngle) |
static double | normalizeStartPosition (double &startPosition, double &lineAngle) |
static double | normalizeStartRotation (double &startRotation) |
Protected Attributes | |
QGIArrow * | aHead1 |
QGIArrow * | aHead2 |
QGIDatumLabel * | datumLabel |
QGIDimLines * | dimLines |
bool | hasHover |
double | m_lineWidth |
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 |
int | m_dragState |
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 | |
Static Public Member Functions inherited from TechDrawGui::QGIView | |
static int | calculateFontPixelSize (double sizeInMillimetres) |
static int | calculateFontPixelWidth (const QFont &font) |
static double | getDimFontSize (void) |
static QGSPage * | getGraphicsScene (TechDraw::DrawView *dv) |
static QGVPage * | getGraphicsView (TechDraw::DrawView *dv) |
static QString | getPrefFont (void) |
static double | getPrefFontSize (void) |
static Gui::ViewProvider * | getViewProvider (App::DocumentObject *obj) |
Static Public Attributes inherited from TechDrawGui::QGIView | |
static const double | DefaultFontSizeInMM = 5.0 |
|
explicit |
|
default |
|
protected |
References TechDrawGui::QGIView::getViewObject().
Referenced by drawArrows().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References aHead1, aHead2, TechDrawGui::QGIDimLines::boundingRect(), TechDrawGui::QGIDatumLabel::boundingRect(), datumLabel, and dimLines.
|
staticprotected |
Referenced by drawAngle(), drawDiameter(), drawDistanceExecutive(), drawDistanceOverride(), and drawRadiusExecutive().
|
staticprotected |
Referenced by drawAngle().
|
staticprotected |
References Base::Vector2d::FromPolar(), and Base::Vector2d::Length().
Referenced by drawAngle(), drawDistanceExecutive(), and drawDistanceOverride().
|
staticprotected |
References Base::Vector2d::Angle(), getIsoStandardLinePlacement(), and Base::Vector2d::Length().
Referenced by drawDiameter(), and drawRadiusExecutive().
|
staticprotected |
Referenced by drawDiameter(), drawDistanceExecutive(), drawDistanceOverride(), and drawRadiusExecutive().
|
staticprotected |
References Base::Vector2d::FromPolar().
Referenced by drawDistanceExecutive().
|
protected |
References Base::Console(), Base::ConsoleSingleton::Error(), Base::BoundBox2d::GetCenter(), TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_INLINED, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_REFERENCING, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_ORIENTED, and Base::BoundBox2d::Width().
Referenced by drawAngle(), and drawDimensionArc().
|
protected |
References Base::Console(), Base::ConsoleSingleton::Error(), Base::BoundBox2d::GetCenter(), TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_INLINED, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_REFERENCING, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_ORIENTED, and Base::BoundBox2d::Width().
Referenced by drawDiameter(), drawDimensionLine(), drawDistanceExecutive(), drawDistanceOverride(), and drawRadiusExecutive().
|
slot |
References TechDrawGui::Rez::appX(), Gui::Command::commitCommand(), datumLabel, Gui::Command::Doc, TechDrawGui::QGIView::getViewObject(), Gui::Command::openCommand(), draftutils.translate::QT_TRANSLATE_NOOP, TechDrawGui::QGIDatumLabel::X(), and TechDrawGui::QGIDatumLabel::Y().
Referenced by QGIViewDimension().
|
slot |
References draw().
Referenced by QGIViewDimension().
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References Base::Console(), datumLabel, dimLines, drawAngle(), drawArrows(), drawDiameter(), drawDistance(), drawRadius(), Base::ConsoleSingleton::Error(), Base::Persistence::getClassTypeId(), App::PropertyEnumeration::getValueAsString(), TechDrawGui::QGIView::getViewObject(), TechDraw::DrawViewDimension::getViewPart(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), TechDraw::DrawViewDimension::has2DReferences(), TechDraw::DrawViewPart::hasGeometry(), Base::BaseClass::isDerivedFrom(), TechDrawGui::QGIView::isVisible(), Base::ConsoleSingleton::Log(), m_lineWidth, TechDrawGui::ViewProviderDimension::REND_EXTENT_NONE, resetArrows(), and TechDraw::DrawViewDimension::Type.
Referenced by datumLabelDragged(), hover(), itemChange(), setViewPartFeature(), and updateView().
|
protected |
References Base::Vector2d::Angle(), TechDrawGui::Rez::appX(), TechDrawGui::QGIDatumLabel::boundingRect(), compareAngleStraightness(), computeArcStrikeFactor(), computeExtensionLinePoints(), Base::Console(), constructDimensionArc(), datumLabel, dimLines, drawDimensionArc(), TechDraw::anglePoints::ends, Base::ConsoleSingleton::Error(), TechDrawGui::ViewProviderDimension::FlipArrowheads, Base::Vector2d::FromPolar(), getAsmeRefJointPoint(), getAsmeRefOutsetPoint(), Base::BoundBox2d::GetCenter(), getIsoRefJointPoint(), getIsoRefOutsetPoint(), getIsoStandardLinePlacement(), App::PropertyEnumeration::getValue(), App::PropertyBool::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), Base::BoundBox2d::Height(), Base::Vector2d::Length(), m_lineWidth, normalizeStartRotation(), TechDrawGui::ViewProviderDimension::REND_EXTENT_CONFINED, TechDrawGui::ViewProviderDimension::REND_EXTENT_NORMAL, TechDrawGui::ViewProviderDimension::REND_EXTENT_REDUCED, TechDrawGui::ViewProviderDimension::RenderingExtent, TechDrawGui::ViewProviderDimension::StandardAndStyle, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_INLINED, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_REFERENCING, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_ORIENTED, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_REFERENCING, and TechDraw::anglePoints::vertex.
Referenced by draw().
|
protected |
References aHead1, aHead2, arrowPositionsToFeature(), TechDrawGui::QGIArrow::draw(), TechDrawGui::QGIArrow::getPrefArrowSize(), TechDrawGui::QGIArrow::getPrefArrowStyle(), TechDrawGui::QGIArrow::setDirection(), TechDrawGui::QGIArrow::setFlipped(), TechDrawGui::QGIArrow::setSize(), and TechDrawGui::QGIArrow::setStyle().
Referenced by draw(), drawDimensionArc(), and drawDimensionLine().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
|
protected |
References Base::Vector2d::Angle(), TechDrawGui::QGIDatumLabel::boundingRect(), TechDraw::arcPoints::center, compareAngleStraightness(), computeLineAndLabelAngles(), computeLineStrikeFactor(), Base::Console(), constructDimensionLine(), datumLabel, dimLines, drawDimensionLine(), drawDistanceExecutive(), drawRadiusExecutive(), Base::ConsoleSingleton::Error(), TechDrawGui::ViewProviderDimension::FlipArrowheads, Base::Vector2d::FromPolar(), getAsmeRefJointPoint(), getAsmeRefOutsetPoint(), Base::BoundBox2d::GetCenter(), getIsoRefJointPoint(), getIsoRefOutsetPoint(), App::PropertyEnumeration::getValue(), App::PropertyBool::getValue(), TechDrawGui::Rez::guiX(), Base::BoundBox2d::Height(), Base::Vector2d::Length(), TechDraw::arcPoints::midArc, TechDraw::arcPoints::radius, TechDrawGui::ViewProviderDimension::REND_EXTENT_CONFINED, TechDrawGui::ViewProviderDimension::REND_EXTENT_EXPANDED, TechDrawGui::ViewProviderDimension::REND_EXTENT_NORMAL, TechDrawGui::ViewProviderDimension::REND_EXTENT_REDUCED, TechDrawGui::ViewProviderDimension::RenderingExtent, TechDrawGui::ViewProviderDimension::StandardAndStyle, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_INLINED, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_REFERENCING, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_ORIENTED, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_REFERENCING, Base::Vector2d::x, and Base::Vector2d::y.
Referenced by draw().
|
protected |
References constructDimensionArc(), drawArrows(), drawMultiArc(), Base::Vector2d::FromPolar(), and normalizeStartRotation().
Referenced by drawAngle().
|
protected |
References constructDimensionLine(), drawArrows(), drawMultiLine(), Base::Vector2d::FromPolar(), and normalizeStartPosition().
Referenced by drawDiameter(), drawDistanceExecutive(), drawDistanceOverride(), and drawRadiusExecutive().
|
protected |
References TechDrawGui::QGIDatumLabel::boundingRect(), datumLabel, drawDistanceExecutive(), drawDistanceOverride(), TechDrawGui::ViewProviderDimension::FlipArrowheads, App::PropertyEnumeration::getValue(), App::PropertyBool::getValue(), TechDrawGui::ViewProviderDimension::RenderingExtent, and TechDrawGui::ViewProviderDimension::StandardAndStyle.
Referenced by draw().
|
protected |
References TechDrawGui::Rez::appX(), TechDrawGui::QGIDatumLabel::boundingRect(), compareAngleStraightness(), computeExtensionLinePoints(), computeLineStrikeFactor(), computePerpendicularIntersection(), Base::Console(), constructDimensionLine(), datumLabel, dimLines, drawDimensionLine(), Base::ConsoleSingleton::Error(), Base::Vector2d::FromPolar(), getAsmeRefJointPoint(), getAsmeRefOutsetPoint(), Base::BoundBox2d::GetCenter(), getIsoRefJointPoint(), getIsoRefOutsetPoint(), getIsoStandardLinePlacement(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), Base::BoundBox2d::Height(), m_lineWidth, normalizeStartPosition(), Base::Vector2d::Perpendicular(), TechDrawGui::ViewProviderDimension::REND_EXTENT_CONFINED, TechDrawGui::ViewProviderDimension::REND_EXTENT_NORMAL, TechDrawGui::ViewProviderDimension::REND_EXTENT_REDUCED, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_INLINED, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_REFERENCING, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_ORIENTED, and TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_REFERENCING.
Referenced by drawDiameter(), and drawDistance().
|
protected |
References TechDrawGui::Rez::appX(), TechDrawGui::QGIDatumLabel::boundingRect(), compareAngleStraightness(), computeExtensionLinePoints(), computeLineStrikeFactor(), Base::Console(), constructDimensionLine(), datumLabel, dimLines, drawDimensionLine(), Base::ConsoleSingleton::Error(), Base::Vector2d::FromPolar(), getAsmeRefJointPoint(), getAsmeRefOutsetPoint(), Base::BoundBox2d::GetCenter(), getIsoRefJointPoint(), getIsoRefOutsetPoint(), getIsoStandardLinePlacement(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), Base::BoundBox2d::Height(), m_lineWidth, normalizeStartPosition(), TechDrawGui::ViewProviderDimension::REND_EXTENT_CONFINED, TechDrawGui::ViewProviderDimension::REND_EXTENT_NORMAL, TechDrawGui::ViewProviderDimension::REND_EXTENT_REDUCED, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_INLINED, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_REFERENCING, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_ORIENTED, and TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_REFERENCING.
Referenced by drawDistance().
|
protected |
References drawSingleArc().
Referenced by drawDimensionArc().
|
protected |
References drawSingleLine().
Referenced by drawDimensionLine().
|
protected |
References TechDraw::arcPoints::arcCW, TechDraw::arcPoints::arcEnds, TechDrawGui::QGIDatumLabel::boundingRect(), TechDraw::arcPoints::center, datumLabel, drawRadiusExecutive(), TechDrawGui::ViewProviderDimension::FlipArrowheads, App::PropertyEnumeration::getValue(), App::PropertyBool::getValue(), TechDraw::arcPoints::isArc, TechDraw::arcPoints::midArc, TechDraw::arcPoints::radius, TechDrawGui::ViewProviderDimension::RenderingExtent, and TechDrawGui::ViewProviderDimension::StandardAndStyle.
Referenced by draw().
|
protected |
References Base::Vector2d::Angle(), TechDrawGui::QGIDatumLabel::boundingRect(), compareAngleStraightness(), computeLineAndLabelAngles(), computeLineStrikeFactor(), Base::Console(), constructDimensionLine(), datumLabel, dimLines, drawDimensionLine(), Base::ConsoleSingleton::Error(), Base::Vector2d::FromPolar(), getAnglePlacementFactor(), getAsmeRefJointPoint(), getAsmeRefOutsetPoint(), Base::BoundBox2d::GetCenter(), getIsoRefJointPoint(), getIsoRefOutsetPoint(), Base::BoundBox2d::Height(), Base::Vector2d::Length(), TechDrawGui::ViewProviderDimension::REND_EXTENT_NORMAL, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_INLINED, TechDrawGui::ViewProviderDimension::STD_STYLE_ASME_REFERENCING, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_ORIENTED, TechDrawGui::ViewProviderDimension::STD_STYLE_ISO_REFERENCING, and Base::Vector2d::x.
Referenced by drawDiameter(), and drawRadius().
|
protected |
References Base::Vector2d::x, and Base::Vector2d::y.
Referenced by drawMultiArc().
|
protected |
References Base::Vector2d::FromPolar().
Referenced by drawMultiLine().
|
protected |
find the closest isometric axis given an ortho vector
References Base::Vector3< _Precision >::GetAngle().
|
protected |
find the iso extension direction corresponding to an iso dist direction
References Base::Console(), TechDrawGui::QGIView::getViewObject(), Base::Vector3< _Precision >::IsEqual(), and Base::ConsoleSingleton::Message().
|
staticprotected |
Referenced by drawRadiusExecutive().
|
protected |
References Base::BoundBox2d::GetCenter(), Base::BoundBox2d::MaxX, Base::BoundBox2d::MinX, and Base::Vector2d::y.
Referenced by drawAngle(), drawDiameter(), drawDistanceExecutive(), drawDistanceOverride(), and drawRadiusExecutive().
|
protected |
References Base::BoundBox2d::GetCenter(), Base::BoundBox2d::MaxX, Base::BoundBox2d::MinX, and Base::Vector2d::y.
Referenced by drawAngle(), drawDiameter(), drawDistanceExecutive(), drawDistanceOverride(), and drawRadiusExecutive().
|
virtual |
Referenced by TechDrawGui::MDIViewPage::clearSceneSelection().
|
protected |
References getIsoRefOutsetPoint().
Referenced by drawAngle(), drawDiameter(), drawDistanceExecutive(), drawDistanceOverride(), and drawRadiusExecutive().
|
protected |
References Base::BoundBox2d::MaxX, Base::BoundBox2d::MinX, and Base::BoundBox2d::MinY.
Referenced by drawAngle(), drawDiameter(), drawDistanceExecutive(), drawDistanceOverride(), drawRadiusExecutive(), and getIsoRefJointPoint().
|
staticprotected |
Referenced by computeLineAndLabelAngles(), drawAngle(), drawDistanceExecutive(), and drawDistanceOverride().
QString QGIViewDimension::getLabelText | ( | void | ) |
|
protected |
|
slot |
References draw(), and hasHover.
Referenced by QGIViewDimension().
|
overrideprotectedvirtual |
References datumLabel, draw(), and TechDrawGui::QGIView::itemChange().
|
protected |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
staticprotected |
Referenced by drawDimensionLine(), drawDistanceExecutive(), and drawDistanceOverride().
|
staticprotected |
Referenced by drawAngle(), and drawDimensionArc().
|
slot |
References setPrettyNormal(), setPrettyPre(), and setPrettySel().
Referenced by QGIViewDimension().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References setPens(), and setSvgPens().
|
virtual |
References App::Color::asValue(), TechDrawGui::ViewProviderDimension::Color, TechDrawGui::PreferencesGui::dimQColor(), App::PropertyColor::getValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), and TechDrawGui::QGIView::m_colNormal.
Referenced by setNormalColorAll().
|
protected |
References aHead1, aHead2, TechDrawGui::QGIArrow::setDirMode(), and TechDrawGui::QGIArrow::setFlipped().
Referenced by draw().
|
slot |
Referenced by QGIViewDimension().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References aHead1, aHead2, datumLabel, and dimLines.
void QGIViewDimension::setNormalColorAll | ( | void | ) |
|
protectedvirtual |
References aHead1, aHead2, dimLines, m_lineWidth, and TechDrawGui::QGIPrimPath::setWidth().
Referenced by paint().
void QGIViewDimension::setPrettyNormal | ( | void | ) |
References aHead1, aHead2, dimLines, and TechDrawGui::QGIPrimPath::setPrettyNormal().
Referenced by onPrettyChanged(), and setViewPartFeature().
void QGIViewDimension::setPrettyPre | ( | void | ) |
References aHead1, aHead2, dimLines, and TechDrawGui::QGIPrimPath::setPrettyPre().
Referenced by onPrettyChanged().
void QGIViewDimension::setPrettySel | ( | void | ) |
References aHead1, aHead2, dimLines, and TechDrawGui::QGIPrimPath::setPrettySel().
Referenced by onPrettyChanged().
|
protectedvirtual |
References aHead1, aHead2, dimLines, TechDrawGui::QGIPrimPath::getWidth(), m_lineWidth, and TechDrawGui::QGIPrimPath::setWidth().
Referenced by paint().
void QGIViewDimension::setViewPartFeature | ( | TechDraw::DrawViewDimension * | obj | ) |
|
override |
Referenced by ArchProfile.ProfileTaskPanel::accept(), and ArchProfile.ProfileTaskPanel::retranslateUi().
|
slot |
References TechDrawGui::QGIView::calculateFontPixelSize(), datumLabel, TechDrawGui::QGIDatumLabel::getFont(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), m_lineWidth, TechDrawGui::QGIDatumLabel::setDimString(), TechDrawGui::QGIDatumLabel::setFont(), TechDrawGui::QGIDatumLabel::setFramed(), TechDrawGui::QGIDatumLabel::setLineWidth(), TechDrawGui::QGIDatumLabel::setPosFromCenter(), TechDrawGui::QGIDatumLabel::setToleranceString(), TechDrawGui::QGIDatumLabel::X(), and TechDrawGui::QGIDatumLabel::Y().
Referenced by setViewPartFeature(), and updateView().
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References datumLabel, draw(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), m_lineWidth, TechDrawGui::QGIDatumLabel::setPosFromCenter(), and updateDim().
Referenced by TechDrawGui::TaskDimension::reject().
|
protected |
|
protected |
|
protected |
Referenced by boundingRect(), datumLabelDragFinished(), draw(), drawAngle(), drawDiameter(), drawDistance(), drawDistanceExecutive(), drawDistanceOverride(), drawRadius(), drawRadiusExecutive(), getLabelText(), itemChange(), QGIViewDimension(), setGroupSelection(), setNormalColorAll(), setViewPartFeature(), updateDim(), and updateView().
|
protected |
TechDraw::DrawViewDimension* TechDrawGui::QGIViewDimension::dvDimension |
Referenced by TechDrawGui::TaskDimension::TaskDimension().
|
protected |
Referenced by draw(), drawAngle(), drawDistanceExecutive(), drawDistanceOverride(), setPens(), setSvgPens(), updateDim(), and updateView().