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

Dialog for qAnimation plugin. More...

#include <qAnimationDlg.h>

Inheritance diagram for qAnimationDlg:
Collaboration diagram for qAnimationDlg:

Classes

struct  Step
 Simple step (viewport + time) More...
 

Public Member Functions

 qAnimationDlg (QWidget *view3d, QWidget *parent=nullptr)
 Default constructor. More...
 
virtual ~qAnimationDlg ()
 Destrcuctor. More...
 
bool init (const std::vector< cc2DViewportObject * > &viewports, const std::vector< ccMesh * > &meshes)
 Initialize the dialog with a set of viewports. More...
 
ccPolylinegetTrajectory ()
 
bool exportTrajectoryOnExit ()
 
bool updateTextures () const
 

Protected Types

typedef std::vector< StepTrajectory
 
typedef std::vector< ccMesh * > MeshList
 

Protected Member Functions

void onFPSChanged (int)
 
void onTotalTimeChanged (double)
 
void onStepTimeChanged (double)
 
void onLoopToggled (bool)
 
void onCurrentStepChanged (int)
 
void onBrowseButtonClicked ()
 
void onBrowseTexturesButtonClicked ()
 
void onAutoStepsDurationToggled (bool)
 
void onSmoothTrajectoryToggled (bool)
 
void onSmoothRatioChanged (double)
 
void preview ()
 
void renderAnimation ()
 
void renderFrames ()
 
void onAccept ()
 
void onReject ()
 
void onItemChanged (QListWidgetItem *)
 
int getCurrentStepIndex ()
 
size_t countEnabledSteps () const
 
bool smoothModeEnabled () const
 
int countFrames (size_t startIndex=0)
 
void applyViewport (const ecvViewportParameters &viewportParameters)
 
double computeTotalTime ()
 
void updateCurrentStepDuration ()
 
void updateTotalDuration ()
 
bool updateCameraTrajectory ()
 
bool updateSmoothCameraTrajectory ()
 
bool getNextSegment (size_t &vp1, size_t &vp2) const
 
void render (bool asSeparateFrames)
 
bool smoothTrajectory (double ratio, unsigned iterationCount)
 
bool getCompressedTrajectory (Trajectory &compressedTrajectory) const
 
void updateSmoothTrajectoryDurations ()
 
void textureAnimationPreview (const QStringList &texture_files, QProgressDialog &progressDialog)
 
bool textureAnimationRender (const QStringList &texture_files, QProgressDialog &progressDialog, bool asSeparateFrames)
 

Protected Attributes

Trajectory m_videoSteps
 Animation. More...
 
Trajectory m_smoothVideoSteps
 Smoothed animation. More...
 
MeshList m_mesh_list
 
QWidget * m_view3d
 Associated 3D view. More...
 

Detailed Description

Dialog for qAnimation plugin.

Definition at line 48 of file qAnimationDlg.h.

Member Typedef Documentation

◆ MeshList

typedef std::vector<ccMesh*> qAnimationDlg::MeshList
protected

Definition at line 121 of file qAnimationDlg.h.

◆ Trajectory

typedef std::vector<Step> qAnimationDlg::Trajectory
protected

Definition at line 120 of file qAnimationDlg.h.

Constructor & Destructor Documentation

◆ qAnimationDlg()

◆ ~qAnimationDlg()

qAnimationDlg::~qAnimationDlg ( )
virtual

Destrcuctor.

Definition at line 236 of file qAnimationDlg.cpp.

Member Function Documentation

◆ applyViewport()

void qAnimationDlg::applyViewport ( const ecvViewportParameters viewportParameters)
protected

◆ computeTotalTime()

double qAnimationDlg::computeTotalTime ( )
protected

Definition at line 734 of file qAnimationDlg.cpp.

References count, getNextSegment(), and m_videoSteps.

Referenced by onTotalTimeChanged(), and updateTotalDuration().

◆ countEnabledSteps()

size_t qAnimationDlg::countEnabledSteps ( ) const
protected

Definition at line 898 of file qAnimationDlg.cpp.

References count, and m_videoSteps.

Referenced by getCompressedTrajectory(), smoothTrajectory(), and updateSmoothCameraTrajectory().

◆ countFrames()

int qAnimationDlg::countFrames ( size_t  startIndex = 0)
protected

◆ exportTrajectoryOnExit()

bool qAnimationDlg::exportTrajectoryOnExit ( )

Definition at line 730 of file qAnimationDlg.cpp.

◆ getCompressedTrajectory()

bool qAnimationDlg::getCompressedTrajectory ( Trajectory compressedTrajectory) const
protected

Definition at line 987 of file qAnimationDlg.cpp.

References countEnabledSteps(), and m_videoSteps.

Referenced by preview(), render(), and smoothTrajectory().

◆ getCurrentStepIndex()

int qAnimationDlg::getCurrentStepIndex ( )
protected

◆ getNextSegment()

bool qAnimationDlg::getNextSegment ( size_t &  vp1,
size_t &  vp2 
) const
protected

◆ getTrajectory()

ccPolyline * qAnimationDlg::getTrajectory ( )

Definition at line 725 of file qAnimationDlg.cpp.

◆ init()

◆ onAccept()

void qAnimationDlg::onAccept ( )
protected

◆ onAutoStepsDurationToggled()

◆ onBrowseButtonClicked()

void qAnimationDlg::onBrowseButtonClicked ( )
protected

Definition at line 864 of file qAnimationDlg.cpp.

References filename.

Referenced by qAnimationDlg().

◆ onBrowseTexturesButtonClicked()

void qAnimationDlg::onBrowseTexturesButtonClicked ( )
protected

Definition at line 882 of file qAnimationDlg.cpp.

References getImageList(), and size.

Referenced by qAnimationDlg().

◆ onCurrentStepChanged()

void qAnimationDlg::onCurrentStepChanged ( int  index)
protected

◆ onFPSChanged()

void qAnimationDlg::onFPSChanged ( int  fps)
protected

Definition at line 762 of file qAnimationDlg.cpp.

Referenced by qAnimationDlg().

◆ onItemChanged()

void qAnimationDlg::onItemChanged ( QListWidgetItem *  )
protected

Definition at line 1661 of file qAnimationDlg.cpp.

References onCurrentStepChanged(), and updateCameraTrajectory().

Referenced by init().

◆ onLoopToggled()

void qAnimationDlg::onLoopToggled ( bool  enabled)
protected

Definition at line 1693 of file qAnimationDlg.cpp.

References onCurrentStepChanged(), and updateCameraTrajectory().

Referenced by qAnimationDlg().

◆ onReject()

void qAnimationDlg::onReject ( )
protected

Definition at line 323 of file qAnimationDlg.cpp.

Referenced by qAnimationDlg().

◆ onSmoothRatioChanged()

void qAnimationDlg::onSmoothRatioChanged ( double  ratio)
protected

Definition at line 719 of file qAnimationDlg.cpp.

References onSmoothTrajectoryToggled().

Referenced by qAnimationDlg().

◆ onSmoothTrajectoryToggled()

void qAnimationDlg::onSmoothTrajectoryToggled ( bool  state)
protected

◆ onStepTimeChanged()

void qAnimationDlg::onStepTimeChanged ( double  time_sec)
protected

◆ onTotalTimeChanged()

◆ preview()

◆ render()

◆ renderAnimation()

void qAnimationDlg::renderAnimation ( )
inlineprotected

Definition at line 79 of file qAnimationDlg.h.

References render().

Referenced by qAnimationDlg().

◆ renderFrames()

void qAnimationDlg::renderFrames ( )
inlineprotected

Definition at line 80 of file qAnimationDlg.h.

References render().

Referenced by qAnimationDlg().

◆ smoothModeEnabled()

bool qAnimationDlg::smoothModeEnabled ( ) const
protected

◆ smoothTrajectory()

◆ textureAnimationPreview()

void qAnimationDlg::textureAnimationPreview ( const QStringList &  texture_files,
QProgressDialog &  progressDialog 
)
protected

◆ textureAnimationRender()

bool qAnimationDlg::textureAnimationRender ( const QStringList &  texture_files,
QProgressDialog &  progressDialog,
bool  asSeparateFrames 
)
protected

◆ updateCameraTrajectory()

◆ updateCurrentStepDuration()

void qAnimationDlg::updateCurrentStepDuration ( )
protected

◆ updateSmoothCameraTrajectory()

bool qAnimationDlg::updateSmoothCameraTrajectory ( )
protected

◆ updateSmoothTrajectoryDurations()

◆ updateTextures()

bool qAnimationDlg::updateTextures ( ) const

Definition at line 242 of file qAnimationDlg.cpp.

References m_mesh_list.

Referenced by preview(), qAnimationDlg(), and render().

◆ updateTotalDuration()

void qAnimationDlg::updateTotalDuration ( )
protected

Definition at line 1644 of file qAnimationDlg.cpp.

References computeTotalTime().

Referenced by onStepTimeChanged(), and updateCameraTrajectory().

Member Data Documentation

◆ m_mesh_list

MeshList qAnimationDlg::m_mesh_list
protected

◆ m_smoothVideoSteps

◆ m_videoSteps

◆ m_view3d

QWidget* qAnimationDlg::m_view3d
protected

Associated 3D view.

Definition at line 135 of file qAnimationDlg.h.

Referenced by applyViewport(), and render().


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