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

#include <ecvCustomViewpointsToolbar.h>

Inheritance diagram for ecvCustomViewpointsToolbar:
Collaboration diagram for ecvCustomViewpointsToolbar:

Public Member Functions

 ecvCustomViewpointsToolbar (const QString &title, QWidget *parentObject=0)
 
 ecvCustomViewpointsToolbar (QWidget *parentObject=0)
 
 ~ecvCustomViewpointsToolbar () override=default
 

Protected Slots

void updateCustomViewpointActions ()
 
void updateEnabledState ()
 
void ConfigureCustomViewpoints ()
 
void ApplyCustomViewpoint ()
 
void addCurrentViewpointToCustomViewpoints ()
 
void SetToCurrentViewpoint ()
 
void DeleteCustomViewpoint ()
 

Detailed Description

Definition at line 22 of file ecvCustomViewpointsToolbar.h.

Constructor & Destructor Documentation

◆ ecvCustomViewpointsToolbar() [1/2]

ecvCustomViewpointsToolbar::ecvCustomViewpointsToolbar ( const QString &  title,
QWidget *  parentObject = 0 
)
inline

Definition at line 27 of file ecvCustomViewpointsToolbar.h.

◆ ecvCustomViewpointsToolbar() [2/2]

ecvCustomViewpointsToolbar::ecvCustomViewpointsToolbar ( QWidget *  parentObject = 0)
inline

Definition at line 31 of file ecvCustomViewpointsToolbar.h.

◆ ~ecvCustomViewpointsToolbar()

ecvCustomViewpointsToolbar::~ecvCustomViewpointsToolbar ( )
overridedefault

Member Function Documentation

◆ addCurrentViewpointToCustomViewpoints

void ecvCustomViewpointsToolbar::addCurrentViewpointToCustomViewpoints ( )
protectedslot

Slot to add current viewpoint to a new custom viewpoint

Definition at line 162 of file ecvCustomViewpointsToolbar.cpp.

References ecvCameraParamEditDlg::AddCurrentViewpointToCustomViewpoints(), and EditCameraTool::UpdateCameraInfo().

Referenced by updateCustomViewpointActions().

◆ ApplyCustomViewpoint

void ecvCustomViewpointsToolbar::ApplyCustomViewpoint ( )
protectedslot

Slot to apply a custom view point

Definition at line 171 of file ecvCustomViewpointsToolbar.cpp.

References ecvDisplayTools::GetCurrentScreen(), EditCameraTool::UpdateCamera(), and CVLog::Warning().

Referenced by updateCustomViewpointActions().

◆ ConfigureCustomViewpoints

void ecvCustomViewpointsToolbar::ConfigureCustomViewpoints ( )
protectedslot

Open the Custom Viewpoint button dialog to configure the viewpoints manually

Definition at line 123 of file ecvCustomViewpointsToolbar.cpp.

Referenced by updateCustomViewpointActions().

◆ DeleteCustomViewpoint

void ecvCustomViewpointsToolbar::DeleteCustomViewpoint ( )
protectedslot

◆ SetToCurrentViewpoint

void ecvCustomViewpointsToolbar::SetToCurrentViewpoint ( )
protectedslot

Slot to set a custom viewpoint to a current viewpoint

Definition at line 128 of file ecvCustomViewpointsToolbar.cpp.

References ecvDisplayTools::GetCurrentScreen(), ecvCameraParamEditDlg::SetToCurrentViewpoint(), and ecvDisplayTools::UpdateScreen().

◆ updateCustomViewpointActions

void ecvCustomViewpointsToolbar::updateCustomViewpointActions ( )
protectedslot

Clear and recreate all custom viewpoint actions based on current settings

Definition at line 65 of file ecvCustomViewpointsToolbar.cpp.

References addCurrentViewpointToCustomViewpoints(), ApplyCustomViewpoint(), color, ConfigureCustomViewpoints(), ecvCameraParamEditDlg::CustomViewpointToolTips(), and updateEnabledState().

◆ updateEnabledState

void ecvCustomViewpointsToolbar::updateEnabledState ( )
protectedslot

Update the state of the toolbuttons depending of the type of the current active view

Definition at line 56 of file ecvCustomViewpointsToolbar.cpp.

References ecvDisplayTools::GetCurrentScreen(), and ecvCustomViewpointButtonDlg::MAXIMUM_NUMBER_OF_ITEMS.

Referenced by updateCustomViewpointActions().


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