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

Dialog to interactively edit the camera pose parameters. More...

#include <ecvCameraParamEditDlg.h>

Inheritance diagram for ecvCameraParamEditDlg:
Collaboration diagram for ecvCameraParamEditDlg:

Public Slots

void linkWith (QMdiSubWindow *qWin)
 Links this dialog with a given sub-window. More...
 
void updatePivotPoint (const CCVector3d &P)
 Updates dialog values with pivot point. More...
 
void updateViewMode ()
 Updates current view mode. More...
 
void pivotChanged ()
 
void rotationFactorChanged (double)
 
void zfactorSliderMoved (int val)
 
void pickPointAsPivot (bool)
 
void processPickedItem (ccHObject *, unsigned, int, int, const CCVector3 &)
 

Public Member Functions

 ecvCameraParamEditDlg (QWidget *parent, ccPickingHub *pickingHub)
 Default constructor. More...
 
 ~ecvCameraParamEditDlg () override
 Destructor. More...
 
bool start () override
 Starts process. More...
 
bool linkWith (QWidget *win) override
 Links the overlay dialog with a MDI window. More...
 
void onItemPicked (const PickedItem &pi) override
 Method called whenever an item is picked. More...
 
bool setCameraTool (ecvGenericCameraTool *tool)
 
void SetCameraGroupsEnabled (bool enabled)
 
- Public Member Functions inherited from ccOverlayDialog
 ccOverlayDialog (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::FramelessWindowHint|Qt::Tool)
 Default constructor. More...
 
 ~ccOverlayDialog () override
 Destructor. More...
 
virtual void stop (bool accepted)
 Stops process/dialog. More...
 
void reject () override
 
void addOverridenShortcut (Qt::Key key)
 
bool started () const
 Returns whether the tool is currently started or not. More...
 
- Public Member Functions inherited from ccPickingListener
virtual ~ccPickingListener ()=default
 

Static Public Member Functions

static bool ConfigureCustomViewpoints (QWidget *parentWidget)
 
static bool AddCurrentViewpointToCustomViewpoints ()
 
static bool ApplyCustomViewpoint (int CustomViewpointIndex)
 
static bool DeleteCustomViewpoint (int CustomViewpointIndex)
 
static bool SetToCurrentViewpoint (int CustomViewpointIndex)
 
static QStringList CustomViewpointToolTips ()
 
static QStringList CustomViewpointConfigurations ()
 

Protected Types

using PushedMatricesMapType = std::map< QWidget *, ccGLMatrixd >
 Type of the pushed matrices map structure. More...
 
using PushedMatricesMapElement = std::pair< QWidget *, ccGLMatrixd >
 Type of an element of the pushed matrices map structure. More...
 

Protected Slots

void updateCamera ()
 
void cameraChanged ()
 
- 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 initWith (QWidget *win)
 Inits dialog values with specified window. More...
 
void updateUi ()
 
- Protected Member Functions inherited from ccOverlayDialog
bool eventFilter (QObject *obj, QEvent *e) override
 

Protected Attributes

PushedMatricesMapType pushedMatrices
 Pushed camera matrices (per window) More...
 
ccPickingHubm_pickingHub
 Picking hub. More...
 
- 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 to interactively edit the camera pose parameters.

Definition at line 29 of file ecvCameraParamEditDlg.h.

Member Typedef Documentation

◆ PushedMatricesMapElement

using ecvCameraParamEditDlg::PushedMatricesMapElement = std::pair<QWidget*, ccGLMatrixd>
protected

Type of an element of the pushed matrices map structure.

Definition at line 151 of file ecvCameraParamEditDlg.h.

◆ PushedMatricesMapType

using ecvCameraParamEditDlg::PushedMatricesMapType = std::map<QWidget*, ccGLMatrixd>
protected

Type of the pushed matrices map structure.

Definition at line 149 of file ecvCameraParamEditDlg.h.

Constructor & Destructor Documentation

◆ ecvCameraParamEditDlg()

ecvCameraParamEditDlg::ecvCameraParamEditDlg ( QWidget *  parent,
ccPickingHub pickingHub 
)
explicit

Default constructor.

◆ ~ecvCameraParamEditDlg()

ecvCameraParamEditDlg::~ecvCameraParamEditDlg ( )
override

Destructor.

Member Function Documentation

◆ AddCurrentViewpointToCustomViewpoints()

static bool ecvCameraParamEditDlg::AddCurrentViewpointToCustomViewpoints ( )
static

Add the current viewpoint to the custom viewpoints

◆ ApplyCustomViewpoint()

static bool ecvCameraParamEditDlg::ApplyCustomViewpoint ( int  CustomViewpointIndex)
static

Change camera positing to an indexed custom viewpoints

◆ cameraChanged

void ecvCameraParamEditDlg::cameraChanged ( )
protectedslot

◆ ConfigureCustomViewpoints()

static bool ecvCameraParamEditDlg::ConfigureCustomViewpoints ( QWidget *  parentWidget)
static

Open the CustomViewpointDialog to configure customViewpoints

◆ CustomViewpointConfigurations()

static QStringList ecvCameraParamEditDlg::CustomViewpointConfigurations ( )
static

Return the list of custom viewpoint configurations

◆ CustomViewpointToolTips()

static QStringList ecvCameraParamEditDlg::CustomViewpointToolTips ( )
static

Return the list of custom viewpoints tooltups

◆ DeleteCustomViewpoint()

static bool ecvCameraParamEditDlg::DeleteCustomViewpoint ( int  CustomViewpointIndex)
static

Delete an indexed custom viewpoint

◆ initWith()

void ecvCameraParamEditDlg::initWith ( QWidget *  win)
protected

Inits dialog values with specified window.

◆ linkWith [1/2]

void ecvCameraParamEditDlg::linkWith ( QMdiSubWindow *  qWin)
slot

Links this dialog with a given sub-window.

◆ linkWith() [2/2]

bool ecvCameraParamEditDlg::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.

◆ onItemPicked()

void ecvCameraParamEditDlg::onItemPicked ( const PickedItem pi)
overridevirtual

Method called whenever an item is picked.

Implements ccPickingListener.

◆ pickPointAsPivot

void ecvCameraParamEditDlg::pickPointAsPivot ( bool  )
slot

◆ pivotChanged

void ecvCameraParamEditDlg::pivotChanged ( )
slot

◆ processPickedItem

void ecvCameraParamEditDlg::processPickedItem ( ccHObject ,
unsigned  ,
int  ,
int  ,
const CCVector3  
)
slot

◆ rotationFactorChanged

void ecvCameraParamEditDlg::rotationFactorChanged ( double  )
slot

◆ SetCameraGroupsEnabled()

void ecvCameraParamEditDlg::SetCameraGroupsEnabled ( bool  enabled)

◆ setCameraTool()

bool ecvCameraParamEditDlg::setCameraTool ( ecvGenericCameraTool tool)

◆ SetToCurrentViewpoint()

static bool ecvCameraParamEditDlg::SetToCurrentViewpoint ( int  CustomViewpointIndex)
static

Set an indexed custom viewpoint to the current viewpoint

◆ start()

bool ecvCameraParamEditDlg::start ( )
overridevirtual

Starts process.

Returns
success

Reimplemented from ccOverlayDialog.

◆ updateCamera

void ecvCameraParamEditDlg::updateCamera ( )
protectedslot

◆ updatePivotPoint

void ecvCameraParamEditDlg::updatePivotPoint ( const CCVector3d P)
slot

Updates dialog values with pivot point.

◆ updateUi()

void ecvCameraParamEditDlg::updateUi ( )
protected

◆ updateViewMode

void ecvCameraParamEditDlg::updateViewMode ( )
slot

Updates current view mode.

◆ zfactorSliderMoved

void ecvCameraParamEditDlg::zfactorSliderMoved ( int  val)
slot

Member Data Documentation

◆ m_pickingHub

ccPickingHub* ecvCameraParamEditDlg::m_pickingHub
protected

Picking hub.

Definition at line 157 of file ecvCameraParamEditDlg.h.

◆ pushedMatrices

PushedMatricesMapType ecvCameraParamEditDlg::pushedMatrices
protected

Pushed camera matrices (per window)

Definition at line 154 of file ecvCameraParamEditDlg.h.


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