Go to the documentation of this file.
26 #include <Gui/AbstractPreview.h>
27 #include <Gui/Action.h>
28 #include <Gui/PickingService.h>
29 #include <Gui/PropertyTree.h>
30 #include <Gui/SceneGraphInterface.h>
67 std::shared_ptr<OpenLxUI::UIElement>
getUIElement(std::shared_ptr<OpenLxApp::DocObject> aObj)
const;
85 NEARESTPOINT = 1 << 2,
90 INTERSECTIONPOINT = 1 << 7,
92 ONLYVERTICES = 1 << 9,
93 ONLYVIRTUALGEO = 1 << 10,
94 CONTROLPOINT = 1 << 11,
95 INVISIBLECONTROLPOINT = 1 << 12,
96 AUXILIARYPOINT = 1 << 13
106 std::shared_ptr<OpenLxApp::CartesianPoint>
getMidPoint(
unsigned long snapMode);
123 Gui::AbstractArc3PointsPreview::PreviewMode mode = Gui::AbstractArc3PointsPreview::ENDPOINT_CHANGES);
169 bool dashed =
false);
173 bool dashed =
false);
177 const std::vector<int>& model,
201 UIDocument(std::shared_ptr<OpenLxApp::Document> aDoc);
203 std::shared_ptr<OpenLxUI::UIDocumentP> _pimpl;
ShapeType
Definition: Shape.h:38
void disablePreview(Gui::AbstractPreview *preview)
void hideElementAttributesInViewer()
unsigned long getSnapfor2dElements()
std::shared_ptr< OpenLxApp::SubElement > getActiveSubElement() const
std::shared_ptr< ActiveEdge > getActiveEdge() const
std::vector< std::shared_ptr< OpenLxApp::Element > > getVisibleElements() const
std::shared_ptr< OpenLxApp::Document > getDocument() const
void removeOwnLine(Gui::SG_Node ownLine)
void drawElementPositionPreview(std::shared_ptr< OpenLxApp::Element > aElem, const Geom::Pnt &startPnt)
Defines a non-persistent vector in 3D space.
Definition: Vec.h:41
Geom::Dir getPickedNormal()
void enablePreview(Gui::AbstractPreview *preview)
Geom::Pnt getActivePoint() const
void removeHelpPointsMeasure()
Gui::AbstractTangentArcPreview * createTangentArcPreview(const Geom::Pnt &pnt, const Geom::Vec &tangent)
void drawHelpPoint(const Geom::Pnt &p)
void removeOwnMesh(Gui::SG_Node ownMesh)
std::shared_ptr< OpenLxApp::Element > getActiveElement() const
Gui::SG_Node drawOwnLine(const std::vector< Geom::Pnt > &pnts, int thickenss, const Base::Color &color=Base::Color(255, 0, 0), bool dashed=false)
Gui::SG_Node drawOwnOverlayLine(const std::vector< Geom::Pnt > &pnts, int thickenss, const Base::Color &color=Base::Color(255, 0, 0), bool dashed=false)
Gui::SG_Node drawOwnDirectionToPoint(const Geom::Pnt &pnt, const Geom::Dir &dir, const Base::Color &color=Base::Color(255, 0, 0))
void drawHelpAx2(const Geom::Ax2 &axis2, const double &magnitude)
void setSnapMode(unsigned long mode)
void getAllPreviews(std::set< Gui::AbstractPreview * > &pw)
bool hasActivePoint() const
Definition: DocObject.h:54
Gui::PickingService * getPickingService()
Gui::SG_Node drawOwnText2(const std::vector< Geom::Pnt > &pnts, const Base::String &text, const Base::Color &color=Base::Color(255, 0, 0), float fontSize=32, const Base::String &fontName=Base::String(L"Arial"), bool bold=false, Justification ju=Justification::CENTER)
void removeOwnDirection(Gui::SG_Node ownDirection)
Geom::Pnt getPickedPoint()
void stopHighlightByShapeType()
void drawRubberBand(const Geom::Pnt &fromPnt)
Gui::AbstractArc3PointsPreview * createArc3PointsPreview(const Geom::Pnt &startPnt, const Geom::Pnt &fixedPnt, Gui::AbstractArc3PointsPreview::PreviewMode mode=Gui::AbstractArc3PointsPreview::ENDPOINT_CHANGES)
Gui::SG_Node drawOwnMesh(const std::vector< Geom::Pnt > &points, const std::vector< int > &model, const Base::Color &color, int transparency, const Base::Color &emissiveColor=Base::Color(0, 0, 0))
Justification
Definition: UIDocument.h:135
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
void drawAngle(const Geom::Pnt ¢er, const Geom::Dir &normal, double angle)
Gui::SG_Node drawOwnText2(const Geom::Pnt &pnt, const Base::String &text, const Base::Color &color=Base::Color(255, 0, 0), float fontSize=32, const Base::String &fontName=Base::String(L"Arial"), bool bold=false, Justification ju=Justification::CENTER)
std::shared_ptr< OpenLxUI::UIElement > getUIElement(Core::DocObject *aObj) const
std::vector< std::shared_ptr< OpenLxApp::Element > > getSelectedElements() const
void drawPreview(Gui::AbstractPreview *preview)
std::shared_ptr< OpenLxApp::CartesianPoint > getMidPoint(unsigned long snapMode)
Definition: UIApplication.h:55
std::shared_ptr< ActiveFace > getActiveFace() const
void removeOwnText2(Gui::SG_Node aNode)
std::shared_ptr< OpenLxUI::Selection > getSelection() const
void moveMouseToWorldPnt(const Geom::Pnt &pntTo)
void removePreview(Gui::AbstractPreview *preview)
SnapMode
Definition: UIDocument.h:83
std::shared_ptr< OpenLxUI::UIElement > getUIElement(std::shared_ptr< OpenLxApp::DocObject > aObj) const
void drawHelpVector(const Geom::Pnt &p, const Geom::Vec &v)
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
bool isIntersectionPickingEnabled()
void setIntersectionPicking(bool onoff)
static bool getPlaneMode(Geom::Pln &p)
Gui::AbstractLinePreview * createLinePreview(const Geom::Pnt &startPnt)
Gui::SG_Node drawOwnDirection(const Geom::Pnt &pnt, const Geom::Dir &dir, const Base::Color &color=Base::Color(255, 0, 0))
Definition: ActiveEdge.h:26
std::shared_ptr< OpenLxApp::Element > getPickedElement()
unsigned long getSnapMode()
void drawHelpPointMeasure(const std::string &name, const Geom::Pnt &pos, float red=1.0f, float green=1.0f, float blue=0.0f)
Definition: UIDocument.h:59
void highlightByShapeType(Topo::ShapeType shapeType)
std::shared_ptr< ActiveVertex > getActiveVertex() const
void drawAuxiliaryLine(const Geom::Pnt &orgin, const Geom::Dir &dir)