The transformed subclasses will be used in two different modes: More...
#include <TaskTransformedParameters.h>
Public Member Functions | |
virtual void | apply ()=0 |
void | exitSelectionMode () |
App::DocumentObject * | getBaseObject () const |
Get the TransformedFeature object associated with this task. More... | |
const std::vector< App::DocumentObject * > & | getOriginals (void) const |
Returns the originals property of associated top feeature object. More... | |
App::DocumentObject * | getSketchObject () const |
Get the sketch object of the first original either of the object associated with this feature or with the parent feature (MultiTransform mode) More... | |
int | getTransactionID () const |
void | setupTransaction () |
TaskTransformedParameters (TaskMultiTransformParameters *parentTask) | |
Constructor for task with parent task (MultiTransform mode) More... | |
TaskTransformedParameters (ViewProviderTransformed *TransformedView, QWidget *parent=0) | |
Constructor for task with ViewProvider. More... | |
virtual | ~TaskTransformedParameters () |
Public Member Functions inherited from Gui::TaskView::TaskBox | |
void | hideGroupBox () |
bool | isGroupVisible () const |
virtual QSize | minimumSizeHint () const |
TaskBox (const QPixmap &icon, const QString &title, bool expandable=true, QWidget *parent=0) | |
Constructor. More... | |
TaskBox (const QString &title, bool expandable=true, QWidget *parent=0) | |
Constructor. More... | |
TaskBox (QWidget *parent=0) | |
Constructor. More... | |
~TaskBox () | |
Public Member Functions inherited from QSint::ActionGroup | |
ActionGroup (const QPixmap &icon, const QString &title, bool expandable=true, QWidget *parent=0) | |
Constructor. More... | |
ActionGroup (const QString &title, bool expandable=true, QWidget *parent=0) | |
Constructor. More... | |
ActionGroup (QWidget *parent=0) | |
Constructor. More... | |
ActionLabel * | addAction (QAction *action, bool addToLayout=true, bool addStretch=true) |
Creates action item from the action and returns it. More... | |
ActionLabel * | addActionLabel (ActionLabel *label, bool addToLayout=true, bool addStretch=true) |
Adds label to the group. More... | |
bool | addWidget (QWidget *widget, bool addToLayout=true, bool addStretch=true) |
Adds widget to the group. More... | |
QBoxLayout * | groupLayout () |
Returns group's layout (QVBoxLayout by default). More... | |
bool | hasHeader () const |
Returns true if the group has header. More... | |
QString | headerText () const |
Returns text of the header. More... | |
bool | isExpandable () const |
Returns true if the group is expandable. More... | |
QSize | minimumSizeHint () const |
void | setScheme (ActionPanelScheme *pointer) |
Sets the scheme of the panel and all the child groups to scheme. More... | |
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 () |
Public Member Functions inherited from Gui::DocumentObserver | |
void | attachDocument (Document *) |
Attaches to another document, the old document is not longer observed then. More... | |
void | detachDocument () |
Detaches from the current document, the document is not longer observed then. More... | |
DocumentObserver () | |
Constructor. More... | |
virtual | ~DocumentObserver () |
Protected Types | |
enum | selectionModes { none, addFeature, removeFeature, reference } |
Protected Slots | |
PartDesign::Transformed * | getTopTransformedObject () const |
Returns the base transformed object For stand alone features it will be objects associated with this object For features inside multitransform it will be the base multitransform object. More... | |
PartDesignGui::ViewProviderTransformed * | getTopTransformedView () const |
Returns the base transformation view provider For stand alone features it will be view provider associated with this object For features inside multitransform it will be the view provider of the multitransform object. More... | |
void | onButtonAddFeature (const bool checked) |
void | onButtonRemoveFeature (const bool checked) |
virtual void | onFeatureDeleted (void)=0 |
virtual void | onSubTaskButtonOK () |
Connect the subTask OK button to the MultiTransform task. More... | |
Protected Slots inherited from QSint::ActionGroup | |
void | processHide () |
void | processShow () |
Protected Member Functions | |
virtual void | addObject (App::DocumentObject *) |
void | addReferenceSelectionGate (bool edge, bool face, bool planar=true, bool whole=false) |
virtual void | changeEvent (QEvent *e)=0 |
void | checkVisibility () |
virtual void | clearButtons ()=0 |
void | fillAxisCombo (ComboLinks &combolinks, Part::Part2DObject *sketch) |
void | fillPlanesCombo (ComboLinks &combolinks, Part::Part2DObject *sketch) |
PartDesign::Transformed * | getObject () const |
Returns the base transformation For stand alone features it will be objects associated with the view provider For features inside multitransform it will be the parent's multitransform object. More... | |
int | getUpdateViewTimeout () const |
void | hideBase () |
void | hideObject () |
bool | isViewUpdated () const |
virtual void | onSelectionChanged (const Gui::SelectionChanges &msg)=0 |
bool | originalSelected (const Gui::SelectionChanges &msg) |
void | recomputeFeature () |
Recompute either this feature or the parent feature (MultiTransform mode) More... | |
virtual void | removeObject (App::DocumentObject *) |
void | showBase () |
void | showObject () |
virtual void | slotDeletedObject (const Gui::ViewProviderDocumentObject &Obj) |
Notifies when the object is about to be removed. More... | |
Protected Member Functions inherited from Gui::TaskView::TaskBox | |
void | actionEvent (QActionEvent *) |
void | showEvent (QShowEvent *) |
Protected Member Functions inherited from QSint::ActionGroup | |
void | init (bool header) |
virtual void | paintEvent (QPaintEvent *event) |
Static Protected Member Functions | |
static void | removeItemFromListWidget (QListWidget *widget, const QString &itemstr) |
Protected Attributes | |
bool | blockUpdate |
Lock updateUI(), applying changes to the underlying feature and calling recomputeFeature() More... | |
bool | insideMultiTransform |
Flag indicating whether this object is a container for MultiTransform. More... | |
TaskMultiTransformParameters * | parentTask |
The MultiTransform parent task of this task. More... | |
QWidget * | proxy |
selectionModes | selectionMode |
int | transactionID = 0 |
ViewProviderTransformed * | TransformedView |
Protected Attributes inherited from QSint::ActionGroup | |
double | m_foldDelta |
int | m_foldDirection |
QPixmap | m_foldPixmap |
double | m_foldStep |
double | m_fullHeight |
double | m_tempHeight |
QWidget * | myDummy |
class TaskGroup * | myGroup |
class TaskHeader * | myHeader |
ActionPanelScheme * | myScheme |
Additional Inherited Members | |
Public Slots inherited from QSint::ActionGroup | |
void | setExpandable (bool expandable=true) |
Makes the group expandable if expandable is set to true. More... | |
void | setHeader (bool enable=true) |
Enables/disables group's header according to enable. More... | |
void | setHeaderText (const QString &title) |
Sets text of the header to title. More... | |
void | showHide () |
Expands/collapses the group. More... | |
Properties inherited from QSint::ActionGroup | |
bool | expandable |
bool | header |
QString | headerText |
Detailed Description
The transformed subclasses will be used in two different modes:
- As a stand-alone feature
- As a container that stores transformation info for a MultiTransform feature. In this case the flag insideMultiTransform is set to true. Because in the second case there is no ViewProvider, some special methods are required to access the underlying FeatureTransformed object in two different ways.
Member Enumeration Documentation
◆ selectionModes
|
protected |
Constructor & Destructor Documentation
◆ TaskTransformedParameters() [1/2]
TaskTransformedParameters::TaskTransformedParameters | ( | ViewProviderTransformed * | TransformedView, |
QWidget * | parent = 0 |
||
) |
Constructor for task with ViewProvider.
References App::Application::getActiveTransaction(), and App::GetApplication().
◆ TaskTransformedParameters() [2/2]
TaskTransformedParameters::TaskTransformedParameters | ( | TaskMultiTransformParameters * | parentTask | ) |
Constructor for task with parent task (MultiTransform mode)
References none, and selectionMode.
◆ ~TaskTransformedParameters()
|
virtual |
References Gui::SelectionSingleton::rmvSelectionGate(), and Gui::Selection().
Member Function Documentation
◆ addObject()
|
protectedvirtual |
◆ addReferenceSelectionGate()
◆ apply()
|
pure virtual |
◆ changeEvent()
|
protectedpure virtual |
◆ checkVisibility()
|
protected |
References getBaseObject(), Base::Persistence::getClassTypeId(), and getObject().
Referenced by onButtonRemoveFeature().
◆ clearButtons()
|
protectedpure virtual |
◆ exitSelectionMode()
void TaskTransformedParameters::exitSelectionMode | ( | ) |
References clearButtons(), none, Gui::SelectionSingleton::rmvSelectionGate(), Gui::Selection(), selectionMode, and showObject().
Referenced by PartDesignGui::TaskDlgTransformedParameters::accept(), onButtonAddFeature(), onButtonRemoveFeature(), PartDesignGui::TaskScaledParameters::onSelectionChanged(), PartDesignGui::TaskMirroredParameters::onSelectionChanged(), PartDesignGui::TaskPolarPatternParameters::onSelectionChanged(), PartDesignGui::TaskLinearPatternParameters::onSelectionChanged(), PartDesignGui::TaskMultiTransformParameters::onSelectionChanged(), and PartDesignGui::TaskDlgTransformedParameters::reject().
◆ fillAxisCombo()
|
protected |
References PartDesignGui::ComboLinks::addLink(), PartDesignGui::ComboLinks::clear(), Base::Console(), Base::ConsoleSingleton::Error(), PartDesign::Body::findBodyOf(), Part::Part2DObject::getAxisCount(), getObject(), App::OriginGroupExtension::getOrigin(), App::Origin::getX(), App::Origin::getY(), App::Origin::getZ(), and Base::Exception::what().
◆ fillPlanesCombo()
|
protected |
References PartDesignGui::ComboLinks::addLink(), PartDesignGui::ComboLinks::clear(), Base::Console(), Base::ConsoleSingleton::Error(), PartDesign::Body::findBodyOf(), Part::Part2DObject::getAxisCount(), getObject(), App::OriginGroupExtension::getOrigin(), App::Origin::getXY(), App::Origin::getXZ(), App::Origin::getYZ(), and Base::Exception::what().
◆ getBaseObject()
App::DocumentObject * TaskTransformedParameters::getBaseObject | ( | ) | const |
Get the TransformedFeature object associated with this task.
References PartDesign::Feature::getBaseObject(), PartDesign::Feature::getFeatureBody(), and getTopTransformedObject().
Referenced by addReferenceSelectionGate(), checkVisibility(), hideBase(), and showBase().
◆ getObject()
|
protected |
Returns the base transformation For stand alone features it will be objects associated with the view provider For features inside multitransform it will be the parent's multitransform object.
References Gui::ViewProviderDocumentObject::getObject(), PartDesignGui::TaskMultiTransformParameters::getSubFeature(), insideMultiTransform, parentTask, and TransformedView.
Referenced by checkVisibility(), fillAxisCombo(), fillPlanesCombo(), PartDesignGui::TaskMirroredParameters::onSelectionChanged(), PartDesignGui::TaskPolarPatternParameters::onSelectionChanged(), PartDesignGui::TaskLinearPatternParameters::onSelectionChanged(), originalSelected(), setupTransaction(), PartDesignGui::TaskLinearPatternParameters::~TaskLinearPatternParameters(), PartDesignGui::TaskMirroredParameters::~TaskMirroredParameters(), and PartDesignGui::TaskPolarPatternParameters::~TaskPolarPatternParameters().
◆ getOriginals()
const std::vector<App::DocumentObject*>& PartDesignGui::TaskTransformedParameters::getOriginals | ( | void | ) | const |
Returns the originals property of associated top feeature object.
◆ getSketchObject()
App::DocumentObject * TaskTransformedParameters::getSketchObject | ( | ) | const |
Get the sketch object of the first original either of the object associated with this feature or with the parent feature (MultiTransform mode)
References PartDesign::Transformed::getSketchObject(), and getTopTransformedObject().
◆ getTopTransformedObject
|
protectedslot |
Returns the base transformed object For stand alone features it will be objects associated with this object For features inside multitransform it will be the base multitransform object.
References Base::Persistence::getClassTypeId(), Gui::ViewProviderDocumentObject::getObject(), and getTopTransformedView().
Referenced by addReferenceSelectionGate(), getBaseObject(), getSketchObject(), hideObject(), and showObject().
◆ getTopTransformedView
|
protectedslot |
Returns the base transformation view provider For stand alone features it will be view provider associated with this object For features inside multitransform it will be the view provider of the multitransform object.
References insideMultiTransform, parentTask, and TransformedView.
Referenced by getTopTransformedObject(), and recomputeFeature().
◆ getTransactionID()
int PartDesignGui::TaskTransformedParameters::getTransactionID | ( | ) | const |
References transactionID.
◆ getUpdateViewTimeout()
|
protected |
◆ hideBase()
|
protected |
References getBaseObject().
◆ hideObject()
|
protected |
References getTopTransformedObject().
Referenced by onButtonAddFeature().
◆ isViewUpdated()
|
protected |
References blockUpdate.
◆ onButtonAddFeature
|
protectedslot |
◆ onButtonRemoveFeature
|
protectedslot |
◆ onFeatureDeleted
|
protectedpure virtualslot |
◆ onSelectionChanged()
|
protectedpure virtual |
◆ onSubTaskButtonOK
|
protectedvirtualslot |
Connect the subTask OK button to the MultiTransform task.
Referenced by PartDesignGui::TaskLinearPatternParameters::TaskLinearPatternParameters(), PartDesignGui::TaskMirroredParameters::TaskMirroredParameters(), PartDesignGui::TaskPolarPatternParameters::TaskPolarPatternParameters(), and PartDesignGui::TaskScaledParameters::TaskScaledParameters().
◆ originalSelected()
|
protected |
References addFeature, addObject(), Gui::SelectionChanges::AddSelection, DraftVecUtils::find(), Base::Persistence::getClassTypeId(), App::DocumentObject::getDocument(), getObject(), App::Document::getObject(), App::PropertyListsT< T, ListT, ParentT >::getValues(), Base::BaseClass::isDerivedFrom(), PartDesign::Transformed::Originals, recomputeFeature(), removeFeature, removeObject(), selectionMode, setupTransaction(), and App::PropertyLinkList::setValues().
Referenced by PartDesignGui::TaskScaledParameters::onSelectionChanged(), PartDesignGui::TaskMirroredParameters::onSelectionChanged(), PartDesignGui::TaskPolarPatternParameters::onSelectionChanged(), PartDesignGui::TaskLinearPatternParameters::onSelectionChanged(), and PartDesignGui::TaskMultiTransformParameters::onSelectionChanged().
◆ recomputeFeature()
|
protected |
Recompute either this feature or the parent feature (MultiTransform mode)
References getTopTransformedView(), and PartDesignGui::ViewProviderTransformed::recomputeFeature().
Referenced by PartDesignGui::TaskMirroredParameters::onSelectionChanged(), PartDesignGui::TaskPolarPatternParameters::onSelectionChanged(), PartDesignGui::TaskLinearPatternParameters::onSelectionChanged(), and originalSelected().
◆ removeItemFromListWidget()
|
staticprotected |
Referenced by PartDesignGui::TaskScaledParameters::onSelectionChanged(), PartDesignGui::TaskMirroredParameters::removeObject(), PartDesignGui::TaskPolarPatternParameters::removeObject(), PartDesignGui::TaskLinearPatternParameters::removeObject(), and PartDesignGui::TaskMultiTransformParameters::removeObject().
◆ removeObject()
|
protectedvirtual |
◆ setupTransaction()
void TaskTransformedParameters::setupTransaction | ( | ) |
References App::Application::getActiveTransaction(), App::GetApplication(), getObject(), App::Application::setActiveTransaction(), and transactionID.
Referenced by PartDesignGui::TaskMirroredParameters::onSelectionChanged(), PartDesignGui::TaskPolarPatternParameters::onSelectionChanged(), PartDesignGui::TaskLinearPatternParameters::onSelectionChanged(), and originalSelected().
◆ showBase()
|
protected |
References getBaseObject().
Referenced by onButtonAddFeature().
◆ showObject()
|
protected |
References getTopTransformedObject().
Referenced by exitSelectionMode().
◆ slotDeletedObject()
|
protectedvirtual |
Notifies when the object is about to be removed.
Reimplemented from Gui::DocumentObserver.
References TransformedView.
Member Data Documentation
◆ blockUpdate
|
protected |
Lock updateUI(), applying changes to the underlying feature and calling recomputeFeature()
Referenced by isViewUpdated(), PartDesignGui::TaskLinearPatternParameters::TaskLinearPatternParameters(), PartDesignGui::TaskMirroredParameters::TaskMirroredParameters(), PartDesignGui::TaskPolarPatternParameters::TaskPolarPatternParameters(), and PartDesignGui::TaskScaledParameters::TaskScaledParameters().
◆ insideMultiTransform
|
protected |
Flag indicating whether this object is a container for MultiTransform.
Referenced by getObject(), and getTopTransformedView().
◆ parentTask
|
protected |
The MultiTransform parent task of this task.
Referenced by getObject(), getTopTransformedView(), PartDesignGui::TaskLinearPatternParameters::TaskLinearPatternParameters(), PartDesignGui::TaskMirroredParameters::TaskMirroredParameters(), PartDesignGui::TaskPolarPatternParameters::TaskPolarPatternParameters(), and PartDesignGui::TaskScaledParameters::TaskScaledParameters().
◆ proxy
|
protected |
Referenced by PartDesignGui::TaskScaledParameters::changeEvent(), PartDesignGui::TaskMirroredParameters::changeEvent(), PartDesignGui::TaskPolarPatternParameters::changeEvent(), PartDesignGui::TaskLinearPatternParameters::changeEvent(), PartDesignGui::TaskMultiTransformParameters::changeEvent(), PartDesignGui::TaskLinearPatternParameters::TaskLinearPatternParameters(), PartDesignGui::TaskMirroredParameters::TaskMirroredParameters(), PartDesignGui::TaskMultiTransformParameters::TaskMultiTransformParameters(), PartDesignGui::TaskPolarPatternParameters::TaskPolarPatternParameters(), PartDesignGui::TaskScaledParameters::TaskScaledParameters(), PartDesignGui::TaskLinearPatternParameters::~TaskLinearPatternParameters(), PartDesignGui::TaskMirroredParameters::~TaskMirroredParameters(), PartDesignGui::TaskMultiTransformParameters::~TaskMultiTransformParameters(), PartDesignGui::TaskPolarPatternParameters::~TaskPolarPatternParameters(), and PartDesignGui::TaskScaledParameters::~TaskScaledParameters().
◆ selectionMode
|
protected |
Referenced by exitSelectionMode(), onButtonAddFeature(), onButtonRemoveFeature(), PartDesignGui::TaskScaledParameters::onSelectionChanged(), PartDesignGui::TaskMirroredParameters::onSelectionChanged(), PartDesignGui::TaskPolarPatternParameters::onSelectionChanged(), PartDesignGui::TaskLinearPatternParameters::onSelectionChanged(), originalSelected(), PartDesignGui::TaskLinearPatternParameters::TaskLinearPatternParameters(), PartDesignGui::TaskMirroredParameters::TaskMirroredParameters(), PartDesignGui::TaskPolarPatternParameters::TaskPolarPatternParameters(), and TaskTransformedParameters().
◆ transactionID
|
protected |
Referenced by getTransactionID(), and setupTransaction().
◆ TransformedView
|
protected |
Referenced by PartDesignGui::TaskScaledParameters::apply(), PartDesignGui::TaskLinearPatternParameters::apply(), PartDesignGui::TaskPolarPatternParameters::apply(), getObject(), getTopTransformedView(), PartDesignGui::TaskMultiTransformParameters::getTransformFeatures(), slotDeletedObject(), and PartDesignGui::TaskMultiTransformParameters::TaskMultiTransformParameters().
The documentation for this class was generated from the following files:
- src/Mod/PartDesign/Gui/TaskTransformedParameters.h
- src/Mod/PartDesign/Gui/TaskTransformedParameters.cpp