#include <DlgRevolution.h>
Classes | |
class | EdgeSelection |
Public Member Functions | |
void | accept () |
DlgRevolution (QWidget *parent=0, Qt::WindowFlags fl=0) | |
double | getAngle () const |
void | getAxisLink (App::PropertyLinkSub &lnk) const |
Base::Vector3d | getDirection () const |
Base::Vector3d | getPosition () const |
std::vector< App::DocumentObject * > | getShapesToRevolve () const |
void | setAxisLink (const App::PropertyLinkSub &lnk) |
void | setAxisLink (const char *objname, const char *subname) |
void | setDirection (Base::Vector3d dir) |
void | setPosition (Base::Vector3d dir) |
bool | validate () |
~DlgRevolution () | |
Public Member Functions inherited from Gui::SelectionObserver | |
void | attachSelection () |
Attaches to the selection. More... | |
bool | blockConnection (bool block) |
void | detachSelection () |
Detaches from the selection. More... | |
bool | isConnectionAttached () const |
bool | isConnectionBlocked () const |
SelectionObserver (bool attach=true, int resolve=1) | |
Constructor. More... | |
SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, int resolve=1) | |
Constructor. More... | |
virtual | ~SelectionObserver () |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
void | keyPressEvent (QKeyEvent *) |
Constructor & Destructor Documentation
◆ DlgRevolution()
DlgRevolution::DlgRevolution | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | fl = 0 |
||
) |
◆ ~DlgRevolution()
DlgRevolution::~DlgRevolution | ( | ) |
References Gui::SelectionSingleton::rmvSelectionGate(), and Gui::Selection().
Member Function Documentation
◆ accept()
void DlgRevolution::accept | ( | ) |
References Gui::Command::App, App::Document::commitTransaction(), App::Application::getActiveDocument(), getAngle(), App::GetApplication(), getAxisLink(), getDirection(), App::DocumentObject::getNameInDocument(), getPosition(), App::PropertyLinkSub::getSubValues(), App::Document::getUniqueObjectName(), App::PropertyLinkSub::getValue(), App::Document::openTransaction(), App::Document::recompute(), validate(), Base::Exception::what(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by PartGui::TaskRevolution::accept().
◆ changeEvent()
|
protected |
◆ getAngle()
double DlgRevolution::getAngle | ( | ) | const |
References Base::Quantity::Degree.
Referenced by accept(), PathScripts.PathDressupDogbone.Chord::getAngleXY(), and validate().
◆ getAxisLink()
void DlgRevolution::getAxisLink | ( | App::PropertyLinkSub & | lnk | ) | const |
References App::Application::getActiveDocument(), App::GetApplication(), App::Document::getObject(), and App::PropertyLinkSub::setValue().
Referenced by accept(), and validate().
◆ getDirection()
Base::Vector3d DlgRevolution::getDirection | ( | ) | const |
Referenced by accept(), and validate().
◆ getPosition()
Base::Vector3d DlgRevolution::getPosition | ( | ) | const |
References Base::Quantity::MilliMetre.
Referenced by accept().
◆ getShapesToRevolve()
std::vector< App::DocumentObject * > DlgRevolution::getShapesToRevolve | ( | ) | const |
◆ keyPressEvent()
|
protected |
◆ setAxisLink() [1/2]
void DlgRevolution::setAxisLink | ( | const App::PropertyLinkSub & | lnk | ) |
◆ setAxisLink() [2/2]
void DlgRevolution::setAxisLink | ( | const char * | objname, |
const char * | subname | ||
) |
◆ setDirection()
void DlgRevolution::setDirection | ( | Base::Vector3d | dir | ) |
◆ setPosition()
void DlgRevolution::setPosition | ( | Base::Vector3d | dir | ) |
◆ validate()
bool DlgRevolution::validate | ( | ) |
References Part::Revolution::fetchAxisLink(), getAngle(), getAxisLink(), getDirection(), and Base::Exception::what().
Referenced by accept().
The documentation for this class was generated from the following files:
- src/Mod/Part/Gui/DlgRevolution.h
- src/Mod/Part/Gui/DlgRevolution.cpp