OpenLexocad
28.0
|
#include <UIDocument.h>
Public Types | |
enum | SnapMode { NOPOINT = 1 << 1, NEARESTPOINT = 1 << 2, MIDPOINT = 1 << 3, ENDPOINT = 1 << 4, GRIDPOINT = 1 << 5, BBOXPOINT = 1 << 6, INTERSECTIONPOINT = 1 << 7, EDGEPOINT = 1 << 8, ONLYVERTICES = 1 << 9, ONLYVIRTUALGEO = 1 << 10, CONTROLPOINT = 1 << 11, INVISIBLECONTROLPOINT = 1 << 12, AUXILIARYPOINT = 1 << 13 } |
enum | Justification { Justification::LEFT = 1, Justification::RIGHT, Justification::CENTER } |
Public Member Functions | |
std::shared_ptr< OpenLxApp::Document > | getDocument () const |
std::shared_ptr< OpenLxUI::Selection > | getSelection () const |
std::shared_ptr< OpenLxUI::UIElement > | getUIElement (std::shared_ptr< OpenLxApp::DocObject > aObj) const |
std::shared_ptr< OpenLxUI::UIElement > | getUIElement (Core::DocObject *aObj) const |
bool | pickPoint () |
Geom::Pnt | getPickedPoint () |
std::shared_ptr< OpenLxApp::Element > | getPickedElement () |
bool | hasPickedNormal () |
Geom::Dir | getPickedNormal () |
Gui::PickingService * | getPickingService () |
void | setIntersectionPicking (bool onoff) |
bool | isIntersectionPickingEnabled () |
unsigned long | getSnapMode () |
unsigned long | getSnapfor2dElements () |
void | setSnapMode (unsigned long mode) |
void | moveMouseToWorldPnt (const Geom::Pnt &pntTo) |
std::shared_ptr< OpenLxApp::CartesianPoint > | getMidPoint (unsigned long snapMode) |
void | drawRubberBand (const Geom::Pnt &fromPnt) |
void | removeRubberBand () |
void | highlightByShapeType (Topo::ShapeType shapeType) |
void | stopHighlightByShapeType () |
void | drawElementPositionPreview (std::shared_ptr< OpenLxApp::Element > aElem, const Geom::Pnt &startPnt) |
void | hideElementAttributesInViewer () |
Gui::AbstractTangentArcPreview * | createTangentArcPreview (const Geom::Pnt &pnt, const Geom::Vec &tangent) |
Gui::AbstractLinePreview * | createLinePreview (const Geom::Pnt &startPnt) |
Gui::AbstractArc3PointsPreview * | createArc3PointsPreview (const Geom::Pnt &startPnt, const Geom::Pnt &fixedPnt, Gui::AbstractArc3PointsPreview::PreviewMode mode=Gui::AbstractArc3PointsPreview::ENDPOINT_CHANGES) |
void | drawPreview (Gui::AbstractPreview *preview) |
void | removePreview (Gui::AbstractPreview *preview) |
void | removeAllPreviews () |
void | getAllPreviews (std::set< Gui::AbstractPreview * > &pw) |
void | enablePreview (Gui::AbstractPreview *preview) |
void | disablePreview (Gui::AbstractPreview *preview) |
void | drawAngle (const Geom::Pnt ¢er, const Geom::Dir &normal, double angle) |
void | removeAngle () |
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) |
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 | removeOwnText2 (Gui::SG_Node aNode) |
void | drawHelpPoint (const Geom::Pnt &p) |
void | drawHelpVector (const Geom::Pnt &p, const Geom::Vec &v) |
void | drawHelpAx2 (const Geom::Ax2 &axis2, const double &magnitude) |
void | removeHelpObjects () |
Gui::SG_Node | drawOwnDirection (const Geom::Pnt &pnt, const Geom::Dir &dir, const Base::Color &color=Base::Color(255, 0, 0)) |
Gui::SG_Node | drawOwnDirectionToPoint (const Geom::Pnt &pnt, const Geom::Dir &dir, const Base::Color &color=Base::Color(255, 0, 0)) |
void | removeOwnDirection (Gui::SG_Node ownDirection) |
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) |
void | removeOwnLine (Gui::SG_Node ownLine) |
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)) |
void | removeOwnMesh (Gui::SG_Node ownMesh) |
void | drawAuxiliaryLine (const Geom::Pnt &orgin, const Geom::Dir &dir) |
void | drawHelpPointMeasure (const std::string &name, const Geom::Pnt &pos, float red=1.0f, float green=1.0f, float blue=0.0f) |
void | removeHelpPointsMeasure () |
std::vector< std::shared_ptr< OpenLxApp::Element > > | getVisibleElements () const |
std::vector< std::shared_ptr< OpenLxApp::Element > > | getSelectedElements () const |
std::shared_ptr< OpenLxApp::Element > | getActiveElement () const |
std::shared_ptr< OpenLxApp::SubElement > | getActiveSubElement () const |
bool | hasActivePoint () const |
Geom::Pnt | getActivePoint () const |
std::shared_ptr< ActiveVertex > | getActiveVertex () const |
std::shared_ptr< ActiveEdge > | getActiveEdge () const |
std::shared_ptr< ActiveFace > | getActiveFace () const |
~UIDocument () | |
Static Public Member Functions | |
static bool | getPlaneMode (Geom::Pln &p) |
Friends | |
class | UIApplication |
|
strong |
OpenLxUI::UIDocument::~UIDocument | ( | ) |
Gui::AbstractArc3PointsPreview* OpenLxUI::UIDocument::createArc3PointsPreview | ( | const Geom::Pnt & | startPnt, |
const Geom::Pnt & | fixedPnt, | ||
Gui::AbstractArc3PointsPreview::PreviewMode | mode = Gui::AbstractArc3PointsPreview::ENDPOINT_CHANGES |
||
) |
Gui::AbstractLinePreview* OpenLxUI::UIDocument::createLinePreview | ( | const Geom::Pnt & | startPnt | ) |
Gui::AbstractTangentArcPreview* OpenLxUI::UIDocument::createTangentArcPreview | ( | const Geom::Pnt & | pnt, |
const Geom::Vec & | tangent | ||
) |
void OpenLxUI::UIDocument::disablePreview | ( | Gui::AbstractPreview * | preview | ) |
void OpenLxUI::UIDocument::drawAngle | ( | const Geom::Pnt & | center, |
const Geom::Dir & | normal, | ||
double | angle | ||
) |
void OpenLxUI::UIDocument::drawElementPositionPreview | ( | std::shared_ptr< OpenLxApp::Element > | aElem, |
const Geom::Pnt & | startPnt | ||
) |
void OpenLxUI::UIDocument::drawHelpAx2 | ( | const Geom::Ax2 & | axis2, |
const double & | magnitude | ||
) |
void OpenLxUI::UIDocument::drawHelpPoint | ( | const Geom::Pnt & | p | ) |
void OpenLxUI::UIDocument::drawHelpPointMeasure | ( | const std::string & | name, |
const Geom::Pnt & | pos, | ||
float | red = 1.0f , |
||
float | green = 1.0f , |
||
float | blue = 0.0f |
||
) |
Gui::SG_Node OpenLxUI::UIDocument::drawOwnDirection | ( | const Geom::Pnt & | pnt, |
const Geom::Dir & | dir, | ||
const Base::Color & | color = Base::Color(255, 0, 0) |
||
) |
Gui::SG_Node OpenLxUI::UIDocument::drawOwnDirectionToPoint | ( | const Geom::Pnt & | pnt, |
const Geom::Dir & | dir, | ||
const Base::Color & | color = Base::Color(255, 0, 0) |
||
) |
Gui::SG_Node OpenLxUI::UIDocument::drawOwnLine | ( | const std::vector< Geom::Pnt > & | pnts, |
int | thickenss, | ||
const Base::Color & | color = Base::Color(255, 0, 0) , |
||
bool | dashed = false |
||
) |
Gui::SG_Node OpenLxUI::UIDocument::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) |
||
) |
Gui::SG_Node OpenLxUI::UIDocument::drawOwnOverlayLine | ( | const std::vector< Geom::Pnt > & | pnts, |
int | thickenss, | ||
const Base::Color & | color = Base::Color(255, 0, 0) , |
||
bool | dashed = false |
||
) |
Gui::SG_Node OpenLxUI::UIDocument::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 |
||
) |
Gui::SG_Node OpenLxUI::UIDocument::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 OpenLxUI::UIDocument::drawPreview | ( | Gui::AbstractPreview * | preview | ) |
void OpenLxUI::UIDocument::drawRubberBand | ( | const Geom::Pnt & | fromPnt | ) |
void OpenLxUI::UIDocument::enablePreview | ( | Gui::AbstractPreview * | preview | ) |
std::shared_ptr<ActiveEdge> OpenLxUI::UIDocument::getActiveEdge | ( | ) | const |
std::shared_ptr<OpenLxApp::Element> OpenLxUI::UIDocument::getActiveElement | ( | ) | const |
std::shared_ptr<ActiveFace> OpenLxUI::UIDocument::getActiveFace | ( | ) | const |
Geom::Pnt OpenLxUI::UIDocument::getActivePoint | ( | ) | const |
std::shared_ptr<OpenLxApp::SubElement> OpenLxUI::UIDocument::getActiveSubElement | ( | ) | const |
std::shared_ptr<ActiveVertex> OpenLxUI::UIDocument::getActiveVertex | ( | ) | const |
void OpenLxUI::UIDocument::getAllPreviews | ( | std::set< Gui::AbstractPreview * > & | pw | ) |
std::shared_ptr<OpenLxApp::Document> OpenLxUI::UIDocument::getDocument | ( | ) | const |
std::shared_ptr<OpenLxApp::CartesianPoint> OpenLxUI::UIDocument::getMidPoint | ( | unsigned long | snapMode | ) |
std::shared_ptr<OpenLxApp::Element> OpenLxUI::UIDocument::getPickedElement | ( | ) |
Geom::Dir OpenLxUI::UIDocument::getPickedNormal | ( | ) |
Geom::Pnt OpenLxUI::UIDocument::getPickedPoint | ( | ) |
Gui::PickingService* OpenLxUI::UIDocument::getPickingService | ( | ) |
|
static |
std::vector<std::shared_ptr<OpenLxApp::Element> > OpenLxUI::UIDocument::getSelectedElements | ( | ) | const |
std::shared_ptr<OpenLxUI::Selection> OpenLxUI::UIDocument::getSelection | ( | ) | const |
unsigned long OpenLxUI::UIDocument::getSnapfor2dElements | ( | ) |
unsigned long OpenLxUI::UIDocument::getSnapMode | ( | ) |
std::shared_ptr<OpenLxUI::UIElement> OpenLxUI::UIDocument::getUIElement | ( | Core::DocObject * | aObj | ) | const |
std::shared_ptr<OpenLxUI::UIElement> OpenLxUI::UIDocument::getUIElement | ( | std::shared_ptr< OpenLxApp::DocObject > | aObj | ) | const |
std::vector<std::shared_ptr<OpenLxApp::Element> > OpenLxUI::UIDocument::getVisibleElements | ( | ) | const |
bool OpenLxUI::UIDocument::hasActivePoint | ( | ) | const |
bool OpenLxUI::UIDocument::hasPickedNormal | ( | ) |
void OpenLxUI::UIDocument::hideElementAttributesInViewer | ( | ) |
void OpenLxUI::UIDocument::highlightByShapeType | ( | Topo::ShapeType | shapeType | ) |
bool OpenLxUI::UIDocument::isIntersectionPickingEnabled | ( | ) |
void OpenLxUI::UIDocument::moveMouseToWorldPnt | ( | const Geom::Pnt & | pntTo | ) |
bool OpenLxUI::UIDocument::pickPoint | ( | ) |
void OpenLxUI::UIDocument::removeAllPreviews | ( | ) |
void OpenLxUI::UIDocument::removeAngle | ( | ) |
void OpenLxUI::UIDocument::removeHelpObjects | ( | ) |
void OpenLxUI::UIDocument::removeHelpPointsMeasure | ( | ) |
void OpenLxUI::UIDocument::removeOwnDirection | ( | Gui::SG_Node | ownDirection | ) |
void OpenLxUI::UIDocument::removeOwnLine | ( | Gui::SG_Node | ownLine | ) |
void OpenLxUI::UIDocument::removeOwnMesh | ( | Gui::SG_Node | ownMesh | ) |
void OpenLxUI::UIDocument::removeOwnText2 | ( | Gui::SG_Node | aNode | ) |
void OpenLxUI::UIDocument::removePreview | ( | Gui::AbstractPreview * | preview | ) |
void OpenLxUI::UIDocument::removeRubberBand | ( | ) |
void OpenLxUI::UIDocument::setIntersectionPicking | ( | bool | onoff | ) |
void OpenLxUI::UIDocument::setSnapMode | ( | unsigned long | mode | ) |
void OpenLxUI::UIDocument::stopHighlightByShapeType | ( | ) |
|
friend |