![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog for managing a clipping box. More...
#include <ecvFilterTool.h>


Public Member Functions | |
| ecvFilterTool (QWidget *parent) | |
| Default constructor. More... | |
| virtual | ~ecvFilterTool () |
| Default destructor. More... | |
| virtual bool | linkWith (QWidget *win) override |
| Links the overlay dialog with a MDI window. More... | |
| virtual bool | start () override |
| Starts process. More... | |
| virtual void | stop (bool state) override |
| Stops process/dialog. More... | |
| void | setFilter (ecvGenericFiltersTool *filter) |
| ecvGenericFiltersTool * | getFilter () const |
| bool | addAssociatedEntity (ccHObject *anObject) |
| Adds an entity. More... | |
| unsigned | getNumberOfAssociatedEntity () const |
| Returns the current number of associated entities. More... | |
| ccHObject::Container | getOutputs () const |
Public Member Functions inherited from ccOverlayDialog | |
| ccOverlayDialog (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::FramelessWindowHint|Qt::Tool) | |
| Default constructor. More... | |
| ~ccOverlayDialog () override | |
| Destructor. More... | |
| void | reject () override |
| void | addOverridenShortcut (Qt::Key key) |
| bool | started () const |
| Returns whether the tool is currently started or not. More... | |
Protected Slots | |
| void | toggleInteractors (bool) |
| void | toggleBox (bool) |
| void | reset () |
| void | restoreOrigin () |
| void | closeDialog () |
| void | exportSlice () |
| void | shiftXMinus () |
| void | shiftXPlus () |
| void | shiftYMinus () |
| void | shiftYPlus () |
| void | shiftZMinus () |
| void | shiftZPlus () |
| void | setTopView () |
| void | setBottomView () |
| void | setFrontView () |
| void | setBackView () |
| void | setLeftView () |
| void | setRightView () |
| ccBBox | getSelectedEntityBbox () |
Protected Slots inherited from ccOverlayDialog | |
| virtual void | onLinkedWindowDeletion (QObject *object=nullptr) |
| Slot called when the linked window is deleted (calls 'onClose') More... | |
Protected Member Functions | |
| void | releaseAssociatedEntities () |
| Releases all associated entities. More... | |
| ccHObject * | getSlice (bool silent) |
| void | shiftBox (unsigned char dim, bool minus) |
| Shift box. More... | |
| void | setView (CC_VIEW_ORIENTATION orientation) |
| Sets predefined view. More... | |
Protected Member Functions inherited from ccOverlayDialog | |
| bool | eventFilter (QObject *obj, QEvent *e) override |
Protected Attributes | |
| ecvGenericFiltersTool * | m_filter |
| filter tool More... | |
| ecvGenericFiltersTool::FilterType | m_filterType |
| ccHObject | m_entityContainer |
| Associated entities container. More... | |
| ccHObject::Container | m_out_entities |
Protected Attributes inherited from ccOverlayDialog | |
| QWidget * | m_associatedWin |
| Associated (MDI) window. More... | |
| bool | m_processing |
| Running/processing state. More... | |
| QList< int > | m_overriddenKeys |
| Overridden keys. More... | |
Additional Inherited Members | |
Signals inherited from ccOverlayDialog | |
| void | processFinished (bool accepted) |
| Signal emitted when process is finished. More... | |
| void | shortcutTriggered (int key) |
| Signal emitted when an overridden key shortcut is pressed. More... | |
| void | shown () |
| Signal emitted when a 'show' event is detected. More... | |
Dialog for managing a clipping box.
Definition at line 29 of file ecvFilterTool.h.
|
explicit |
Default constructor.
Definition at line 38 of file ecvFilterTool.cpp.
References closeDialog(), exportSlice(), reset(), restoreOrigin(), s_maxEdgeLength, setBackView(), setBottomView(), setFrontView(), setLeftView(), setRightView(), setTopView(), shiftXMinus(), shiftXPlus(), shiftYMinus(), shiftYPlus(), shiftZMinus(), shiftZPlus(), toggleBox(), and toggleInteractors().
|
virtual |
Default destructor.
Definition at line 85 of file ecvFilterTool.cpp.
| bool ecvFilterTool::addAssociatedEntity | ( | ccHObject * | anObject | ) |
Adds an entity.
Definition at line 95 of file ecvFilterTool.cpp.
References ccHObject::addChild(), ccHObject::DP_NONE, CVLog::Error(), ccHObject::getChild(), ccHObject::getChildrenNumber(), ccHObject::isGroup(), m_entityContainer, m_filter, ccObject::setEnabled(), and ccDrawableObject::setVisible().
|
protectedslot |
|
protectedslot |
Definition at line 198 of file ecvFilterTool.cpp.
References ccHObject::addChild(), MainWindow::addToDB(), ccHObject::getChild(), ccObject::getName(), getNumberOfAssociatedEntity(), ccHObject::getParent(), getSlice(), ecvGenericFiltersTool::GLYPH_FILTER, m_entityContainer, m_filter, m_filterType, m_out_entities, ecvGenericFiltersTool::PROBE_FILTER, reset(), result, MainWindow::TheInstance(), and CVLog::Warning().
Referenced by ecvFilterTool().
|
inline |
Definition at line 44 of file ecvFilterTool.h.
References m_filter.
| unsigned ecvFilterTool::getNumberOfAssociatedEntity | ( | ) | const |
Returns the current number of associated entities.
Definition at line 130 of file ecvFilterTool.cpp.
References ccHObject::getChildrenNumber(), and m_entityContainer.
Referenced by exportSlice(), getSelectedEntityBbox(), and stop().
|
inline |
Definition at line 54 of file ecvFilterTool.h.
References m_out_entities.
|
protectedslot |
Definition at line 262 of file ecvFilterTool.cpp.
References ccHObject::getDisplayBB_recursive(), getNumberOfAssociatedEntity(), and m_entityContainer.
|
protected |
Definition at line 187 of file ecvFilterTool.cpp.
References CVLog::Error(), ecvGenericFiltersTool::getOutput(), and m_filter.
Referenced by exportSlice().
|
overridevirtual |
Links the overlay dialog with a MDI window.
Warning: link can't be modified while dialog is displayed/process is running!
Reimplemented from ccOverlayDialog.
Definition at line 134 of file ecvFilterTool.cpp.
References ccOverlayDialog::linkWith().
|
protected |
Releases all associated entities.
Warning: resets the current clipping box
Definition at line 233 of file ecvFilterTool.cpp.
References m_entityContainer, and ccHObject::removeAllChildren().
Referenced by stop().
|
protectedslot |
Definition at line 250 of file ecvFilterTool.cpp.
References m_filter, and ecvGenericFiltersTool::reset().
Referenced by ecvFilterTool(), and exportSlice().
|
protectedslot |
Definition at line 254 of file ecvFilterTool.cpp.
References m_filter, and ecvGenericFiltersTool::restore().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 76 of file ecvFilterTool.h.
References CC_BACK_VIEW, and setView().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 74 of file ecvFilterTool.h.
References CC_BOTTOM_VIEW, and setView().
Referenced by ecvFilterTool().
| void ecvFilterTool::setFilter | ( | ecvGenericFiltersTool * | filter | ) |
Definition at line 180 of file ecvFilterTool.cpp.
References ecvGenericFiltersTool::getFilterType(), ecvGenericFiltersTool::getFilterWidget(), m_filter, and m_filterType.
|
inlineprotectedslot |
Definition at line 75 of file ecvFilterTool.h.
References CC_FRONT_VIEW, and setView().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 77 of file ecvFilterTool.h.
References CC_LEFT_VIEW, and setView().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 78 of file ecvFilterTool.h.
References CC_RIGHT_VIEW, and setView().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 73 of file ecvFilterTool.h.
References CC_TOP_VIEW, and setView().
Referenced by ecvFilterTool().
|
protected |
Sets predefined view.
Definition at line 270 of file ecvFilterTool.cpp.
References ecvDisplayTools::SetView().
Referenced by setBackView(), setBottomView(), setFrontView(), setLeftView(), setRightView(), and setTopView().
|
protected |
Shift box.
Definition at line 237 of file ecvFilterTool.cpp.
References ecvGenericFiltersTool::getBox(), cloudViewer::BoundingBoxTpl< T >::isValid(), m_filter, cloudViewer::BoundingBoxTpl< T >::maxCorner(), cloudViewer::BoundingBoxTpl< T >::minCorner(), ecvGenericFiltersTool::shift(), Tuple3Tpl< Type >::u, and width.
Referenced by shiftXMinus(), shiftXPlus(), shiftYMinus(), shiftYPlus(), shiftZMinus(), and shiftZPlus().
|
inlineprotectedslot |
Definition at line 66 of file ecvFilterTool.h.
References shiftBox().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 67 of file ecvFilterTool.h.
References shiftBox().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 68 of file ecvFilterTool.h.
References shiftBox().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 69 of file ecvFilterTool.h.
References shiftBox().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 70 of file ecvFilterTool.h.
References shiftBox().
Referenced by ecvFilterTool().
|
inlineprotectedslot |
Definition at line 71 of file ecvFilterTool.h.
References shiftBox().
Referenced by ecvFilterTool().
|
overridevirtual |
Starts process.
Reimplemented from ccOverlayDialog.
Definition at line 142 of file ecvFilterTool.cpp.
References ccHObject::getFirstChild(), m_entityContainer, m_filter, m_out_entities, ccOverlayDialog::m_processing, ecvGenericFiltersTool::setInputData(), ecvGenericFiltersTool::showOutline(), ccOverlayDialog::start(), and ecvGenericFiltersTool::start().
|
overridevirtual |
Stops process/dialog.
Automatically emits the 'processFinished' signal (with input state as argument).
| accepted | process/dialog result |
Reimplemented from ccOverlayDialog.
Definition at line 154 of file ecvFilterTool.cpp.
References ecvGenericFiltersTool::get(), ccHObject::getChild(), ecvGenericFiltersTool::getFilterWidget(), getNumberOfAssociatedEntity(), ccObject::getUniqueID(), m_entityContainer, m_filter, params, releaseAssociatedEntities(), s_lastBoxParams, ccOverlayDialog::stop(), and ecvGenericFiltersTool::unregisterFilter().
Referenced by closeDialog().
|
protectedslot |
Definition at line 91 of file ecvFilterTool.cpp.
References m_filter, and ecvGenericFiltersTool::showOutline().
Referenced by ecvFilterTool().
|
protectedslot |
Definition at line 87 of file ecvFilterTool.cpp.
References m_filter, and ecvGenericFiltersTool::showInteractor().
Referenced by ecvFilterTool().
|
protected |
Associated entities container.
Definition at line 102 of file ecvFilterTool.h.
Referenced by addAssociatedEntity(), exportSlice(), getNumberOfAssociatedEntity(), getSelectedEntityBbox(), releaseAssociatedEntities(), start(), and stop().
|
protected |
filter tool
Definition at line 97 of file ecvFilterTool.h.
Referenced by addAssociatedEntity(), exportSlice(), getFilter(), getSlice(), reset(), restoreOrigin(), setFilter(), shiftBox(), start(), stop(), toggleBox(), and toggleInteractors().
|
protected |
Definition at line 99 of file ecvFilterTool.h.
Referenced by exportSlice(), and setFilter().
|
protected |
Definition at line 104 of file ecvFilterTool.h.
Referenced by exportSlice(), getOutputs(), and start().