ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvFilterTool Class Reference

Dialog for managing a clipping box. More...

#include <ecvFilterTool.h>

Inheritance diagram for ecvFilterTool:
Collaboration diagram for ecvFilterTool:

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)
 
ecvGenericFiltersToolgetFilter () 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...
 
ccHObjectgetSlice (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

ecvGenericFiltersToolm_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...
 

Detailed Description

Dialog for managing a clipping box.

Definition at line 29 of file ecvFilterTool.h.

Constructor & Destructor Documentation

◆ ecvFilterTool()

◆ ~ecvFilterTool()

ecvFilterTool::~ecvFilterTool ( )
virtual

Default destructor.

Definition at line 85 of file ecvFilterTool.cpp.

Member Function Documentation

◆ addAssociatedEntity()

bool ecvFilterTool::addAssociatedEntity ( ccHObject anObject)

◆ closeDialog

void ecvFilterTool::closeDialog ( )
protectedslot

Definition at line 260 of file ecvFilterTool.cpp.

References stop().

Referenced by ecvFilterTool().

◆ exportSlice

◆ getFilter()

ecvGenericFiltersTool* ecvFilterTool::getFilter ( ) const
inline

Definition at line 44 of file ecvFilterTool.h.

References m_filter.

◆ getNumberOfAssociatedEntity()

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().

◆ getOutputs()

ccHObject::Container ecvFilterTool::getOutputs ( ) const
inline

Definition at line 54 of file ecvFilterTool.h.

References m_out_entities.

◆ getSelectedEntityBbox

ccBBox ecvFilterTool::getSelectedEntityBbox ( )
protectedslot

◆ getSlice()

ccHObject * ecvFilterTool::getSlice ( bool  silent)
protected

Definition at line 187 of file ecvFilterTool.cpp.

References CVLog::Error(), ecvGenericFiltersTool::getOutput(), and m_filter.

Referenced by exportSlice().

◆ linkWith()

bool ecvFilterTool::linkWith ( QWidget *  win)
overridevirtual

Links the overlay dialog with a MDI window.

Warning: link can't be modified while dialog is displayed/process is running!

Returns
success

Reimplemented from ccOverlayDialog.

Definition at line 134 of file ecvFilterTool.cpp.

References ccOverlayDialog::linkWith().

◆ releaseAssociatedEntities()

void ecvFilterTool::releaseAssociatedEntities ( )
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().

◆ reset

void ecvFilterTool::reset ( void  )
protectedslot

Definition at line 250 of file ecvFilterTool.cpp.

References m_filter, and ecvGenericFiltersTool::reset().

Referenced by ecvFilterTool(), and exportSlice().

◆ restoreOrigin

void ecvFilterTool::restoreOrigin ( )
protectedslot

Definition at line 254 of file ecvFilterTool.cpp.

References m_filter, and ecvGenericFiltersTool::restore().

Referenced by ecvFilterTool().

◆ setBackView

void ecvFilterTool::setBackView ( )
inlineprotectedslot

Definition at line 76 of file ecvFilterTool.h.

References CC_BACK_VIEW, and setView().

Referenced by ecvFilterTool().

◆ setBottomView

void ecvFilterTool::setBottomView ( )
inlineprotectedslot

Definition at line 74 of file ecvFilterTool.h.

References CC_BOTTOM_VIEW, and setView().

Referenced by ecvFilterTool().

◆ setFilter()

void ecvFilterTool::setFilter ( ecvGenericFiltersTool filter)

◆ setFrontView

void ecvFilterTool::setFrontView ( )
inlineprotectedslot

Definition at line 75 of file ecvFilterTool.h.

References CC_FRONT_VIEW, and setView().

Referenced by ecvFilterTool().

◆ setLeftView

void ecvFilterTool::setLeftView ( )
inlineprotectedslot

Definition at line 77 of file ecvFilterTool.h.

References CC_LEFT_VIEW, and setView().

Referenced by ecvFilterTool().

◆ setRightView

void ecvFilterTool::setRightView ( )
inlineprotectedslot

Definition at line 78 of file ecvFilterTool.h.

References CC_RIGHT_VIEW, and setView().

Referenced by ecvFilterTool().

◆ setTopView

void ecvFilterTool::setTopView ( )
inlineprotectedslot

Definition at line 73 of file ecvFilterTool.h.

References CC_TOP_VIEW, and setView().

Referenced by ecvFilterTool().

◆ setView()

void ecvFilterTool::setView ( CC_VIEW_ORIENTATION  orientation)
protected

Sets predefined view.

Definition at line 270 of file ecvFilterTool.cpp.

References ecvDisplayTools::SetView().

Referenced by setBackView(), setBottomView(), setFrontView(), setLeftView(), setRightView(), and setTopView().

◆ shiftBox()

◆ shiftXMinus

void ecvFilterTool::shiftXMinus ( )
inlineprotectedslot

Definition at line 66 of file ecvFilterTool.h.

References shiftBox().

Referenced by ecvFilterTool().

◆ shiftXPlus

void ecvFilterTool::shiftXPlus ( )
inlineprotectedslot

Definition at line 67 of file ecvFilterTool.h.

References shiftBox().

Referenced by ecvFilterTool().

◆ shiftYMinus

void ecvFilterTool::shiftYMinus ( )
inlineprotectedslot

Definition at line 68 of file ecvFilterTool.h.

References shiftBox().

Referenced by ecvFilterTool().

◆ shiftYPlus

void ecvFilterTool::shiftYPlus ( )
inlineprotectedslot

Definition at line 69 of file ecvFilterTool.h.

References shiftBox().

Referenced by ecvFilterTool().

◆ shiftZMinus

void ecvFilterTool::shiftZMinus ( )
inlineprotectedslot

Definition at line 70 of file ecvFilterTool.h.

References shiftBox().

Referenced by ecvFilterTool().

◆ shiftZPlus

void ecvFilterTool::shiftZPlus ( )
inlineprotectedslot

Definition at line 71 of file ecvFilterTool.h.

References shiftBox().

Referenced by ecvFilterTool().

◆ start()

◆ stop()

void ecvFilterTool::stop ( bool  accepted)
overridevirtual

Stops process/dialog.

Automatically emits the 'processFinished' signal (with input state as argument).

Parameters
acceptedprocess/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().

◆ toggleBox

void ecvFilterTool::toggleBox ( bool  state)
protectedslot

Definition at line 91 of file ecvFilterTool.cpp.

References m_filter, and ecvGenericFiltersTool::showOutline().

Referenced by ecvFilterTool().

◆ toggleInteractors

void ecvFilterTool::toggleInteractors ( bool  state)
protectedslot

Definition at line 87 of file ecvFilterTool.cpp.

References m_filter, and ecvGenericFiltersTool::showInteractor().

Referenced by ecvFilterTool().

Member Data Documentation

◆ m_entityContainer

ccHObject ecvFilterTool::m_entityContainer
protected

◆ m_filter

ecvGenericFiltersTool* ecvFilterTool::m_filter
protected

◆ m_filterType

ecvGenericFiltersTool::FilterType ecvFilterTool::m_filterType
protected

Definition at line 99 of file ecvFilterTool.h.

Referenced by exportSlice(), and setFilter().

◆ m_out_entities

ccHObject::Container ecvFilterTool::m_out_entities
protected

Definition at line 104 of file ecvFilterTool.h.

Referenced by exportSlice(), getOutputs(), and start().


The documentation for this class was generated from the following files: