 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
59 virtual unsigned getID()
const = 0;
62 virtual QString
getName()
const = 0;
68 virtual bool needSF()
const {
return false; }
71 virtual void reset() = 0;
85 bool& invalidScale) = 0;
CorePointDescSet(const CorePointDescSet &descSet)
Definition: ccPointDescriptor.h:111
CCVector3d cameraCenter
Definition: qAnimationDlg.h:114
void updateSmoothTrajectoryDurations()
Definition: qAnimationDlg.cpp:412
void render(bool asSeparateFrames)
Definition: qAnimationDlg.cpp:1358
size_t countEnabledSteps() const
Definition: qAnimationDlg.cpp:898
virtual QString getDescription() const override
Returns long name/description (for tooltip, etc.)
Definition: ecvDefaultPluginInterface.cpp:104
void renderFrames()
Definition: qAnimationDlg.h:80
std::string filename
Definition: PointCloudIO.cpp:47
virtual QString getName() const =0
Returns the associated descriptor name.
void onSmoothTrajectoryToggled(bool)
Definition: qAnimationDlg.cpp:711
ecvViewportParameters viewportParams
Definition: qAnimationDlg.h:112
virtual QString getName() const override
Returns (short) name (for menu entry, etc.)
Definition: ecvDefaultPluginInterface.cpp:100
std::vector< float > params
Definition: ccPointDescriptor.h:96
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
bool setScales(const std::vector< float > &scales)
Sets associated scales.
Definition: ccPointDescriptor.cpp:565
ccGLMatrixTpl< T > inverse() const
Returns inverse transformation.
Definition: ecvGLMatrixTpl.h:1325
bool smoothTrajectory(double ratio, unsigned iterationCount)
Definition: qAnimationDlg.cpp:459
static const unsigned DESC_INVALID
Definition: ccPointDescriptor.h:30
QByteArray toByteArray() const
Converts structure to a byte array.
Definition: ccPointDescriptor.cpp:451
Type norm() const
Returns vector norm.
Definition: CVGeom.h:424
CorePointDescSet()
Definition: ccPointDescriptor.h:104
virtual ~ScaleParamsComputer()=default
GraphType data
Definition: graph_cut.cc:138
void onBrowseButtonClicked()
Definition: qAnimationDlg.cpp:864
void onBrowseTexturesButtonClicked()
Definition: qAnimationDlg.cpp:882
void textureAnimationPreview(const QStringList &texture_files, QProgressDialog &progressDialog)
Definition: qAnimationDlg.cpp:1203
Set of descriptors.
Definition: ccPointDescriptor.h:93
void setMetaData(const QString &key, const QVariant &data)
Sets a meta-data element.
Definition: ecvObject.cpp:216
@ MESH
Definition: CVTypes.h:105
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56
double length
Definition: qAnimationDlg.h:116
void setDimPerScale(unsigned dim)
Sets associated descriptor ID.
Definition: ccPointDescriptor.h:144
virtual QMainWindow * getMainWindow()=0
Returns main window.
bool hasMetaData(const QString &key) const
Returns whether a meta-data element with the given key exists or not.
Definition: ecvObject.cpp:230
Bounding box structure.
Definition: ecvBBox.h:25
double duration_sec
Definition: qAnimationDlg.h:115
static const unsigned DESC_DIMENSIONALITY_SF
Definition: ccPointDescriptor.h:33
static unsigned AvailableCount()
Returns the number of available 'descriptors'.
Definition: ccPointDescriptor.cpp:428
Standard parameters for GL displays/viewports.
Definition: ecvViewportParameters.h:18
QVariant getMetaData(const QString &key) const
Returns a given associated meta data.
Definition: ecvObject.cpp:208
virtual ecvMainAppInterface * getMainAppInterface()
A callback pointer to the main app interface for use by plugins.
Definition: ecvStdPluginInterface.h:59
void updateTotalDuration()
Definition: qAnimationDlg.cpp:1644
const ecvViewportParameters & getParameters() const
Gets parameters.
Definition: ecv2DViewportObject.h:32
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
virtual bool needSF() const
Returns whether the computer requires a scalar field or not.
Definition: ccPointDescriptor.h:68
void onCurrentStepChanged(int)
Definition: qAnimationDlg.cpp:1667
static bool PrintDebug(const char *format,...)
Same as Print, but works only in Debug mode.
Definition: CVLog.cpp:153
unsigned m_descriptorID
Associated descriptor ID.
Definition: ccPointDescriptor.h:151
int indexInSmoothTrajectory
Definition: qAnimationDlg.h:117
int countFrames(size_t startIndex=0)
Definition: qAnimationDlg.cpp:961
void applyViewport(const ecvViewportParameters &viewportParameters)
Definition: qAnimationDlg.cpp:754
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
virtual bool computeScaleParams(cloudViewer::ReferenceCloud &neighbors, double radius, float params[], bool &invalidScale)=0
Computes the parameters at a given scale.
void onSmoothRatioChanged(double)
Definition: qAnimationDlg.cpp:719
core::Tensor result
Definition: VtkUtils.cpp:76
static ScaleParamsComputer * GetByIndex(unsigned index)
Vault: returns the ith computer.
Definition: ccPointDescriptor.cpp:442
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
virtual ~qAnimationDlg()
Destrcuctor.
Definition: qAnimationDlg.cpp:236
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
CorePointDescSet(size_t sz, const CorePointDesc &defaultVal)
Definition: ccPointDescriptor.h:107
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
int indexInOriginalTrajectory
Definition: qAnimationDlg.h:113
Set of (core) point descriptors.
Definition: ccPointDescriptor.h:102
int size
Definition: FileIOFactory.cpp:130
Vector3Tpl< T > getTranslationAsVec3D() const
Returns a copy of the translation as a CCVector3.
Definition: ecvGLMatrixTpl.h:830
Trajectory m_smoothVideoSteps
Smoothed animation.
Definition: qAnimationDlg.h:131
void setWidth(PointCoordinateType width)
Sets the width of the line.
Definition: ecvPolyline.cpp:282
void updateCurrentStepDuration()
Definition: qAnimationDlg.cpp:1652
bool exportTrajectoryOnExit()
Definition: qAnimationDlg.cpp:730
void onLoopToggled(bool)
Definition: qAnimationDlg.cpp:1693
std::vector< ccMesh * > MeshList
Definition: qAnimation.cpp:29
std::vector< Step > Trajectory
Definition: qAnimationDlg.h:120
virtual void reset()=0
Called once before computing parameters at first scale.
static const std::string path
Definition: PointCloud.cpp:59
const double * e
Definition: essential_matrix_poly.h:10
bool GreaterThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:37
constexpr Rgb yellow(MAX, MAX, 0)
@ ERR_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:119
Definition: sfEditDlg.h:16
ecvMainAppInterface * m_app
Main application interface.
Definition: ecvStdPluginInterface.h:85
double computeTotalTime()
Definition: qAnimationDlg.cpp:734
QWidget * m_view3d
Associated 3D view.
Definition: qAnimationDlg.h:135
std::vector< cc2DViewportObject * > ViewPortList
Definition: qAnimation.cpp:28
static const QString s_stepEnabledKey("StepEnabled")
virtual QWidget * getActiveWindow()=0
2D viewport object
Definition: ecv2DViewportObject.h:15
bool getCompressedTrajectory(Trajectory &compressedTrajectory) const
Definition: qAnimationDlg.cpp:987
void onFPSChanged(int)
Definition: qAnimationDlg.cpp:762
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
Dialog for qAnimation plugin.
Definition: qAnimationDlg.h:48
static MeshList GetSelectedMeshes(const ccHObject::Container &selectedEntities)
Definition: qAnimation.cpp:66
void renderAnimation()
Definition: qAnimationDlg.h:79
bool updateTextures() const
Definition: qAnimationDlg.cpp:242
void setDescriptorID(unsigned ID)
Sets associated descriptor ID.
Definition: ccPointDescriptor.h:139
const unsigned descriptorID() const
Returns associated descriptor ID.
Definition: ccPointDescriptor.h:137
void onItemChanged(QListWidgetItem *)
Definition: qAnimationDlg.cpp:1661
void preview()
Definition: qAnimationDlg.cpp:1011
void onAccept()
Definition: qAnimationDlg.cpp:325
Generic parameters 'computer' class (at a given scale)
Definition: ccPointDescriptor.h:43
ccPolyline * getTrajectory()
Definition: qAnimationDlg.cpp:725
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
static ScaleParamsComputer * GetByID(unsigned descID)
Vault: returns the computer corresponding to the given ID.
Definition: ccPointDescriptor.cpp:432
void onTotalTimeChanged(double)
Definition: qAnimationDlg.cpp:766
ccGLMatrixd computeViewMatrix() const
Computes the view matrix.
Definition: ecvViewportParameters.cpp:225
bool fromByteArray(const QByteArray &data)
Inits structure from a byte array.
Definition: ccPointDescriptor.cpp:502
constexpr PointCoordinateType PC_ONE
'1' as a PointCoordinateType value
Definition: CVConst.h:67
virtual QIcon getIcon() const override
Returns icon.
Definition: ecvDefaultPluginInterface.cpp:108
Trajectory m_videoSteps
Animation.
Definition: qAnimationDlg.h:129
void onStepTimeChanged(double)
Definition: qAnimationDlg.cpp:849
int count
Definition: FileIOFactory.cpp:132
qAnimationDlg(QWidget *view3d, QWidget *parent=nullptr)
Default constructor.
Definition: qAnimationDlg.cpp:82
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
static ViewPortList GetSelectedViewPorts(const ccHObject::Container &selectedEntities)
Definition: qAnimation.cpp:50
virtual const ccHObject::Container & getSelectedEntities() const =0
Returns currently selected entities ("read only")
A very simple point cloud (no point duplication)
Definition: ReferenceCloud.h:29
bool init(const std::vector< cc2DViewportObject * > &viewports, const std::vector< ccMesh * > &meshes)
Initialize the dialog with a set of viewports.
Definition: qAnimationDlg.cpp:246
bool updateCameraTrajectory()
Definition: qAnimationDlg.cpp:367
static void GetSelectedObjects(const ccHObject::Container &selectedEntities, CV_CLASS_ENUM type, ccHObject::Container &targetObj)
Definition: qAnimation.cpp:31
static const unsigned DESC_CURVATURE
Definition: ccPointDescriptor.h:35
Triangular mesh.
Definition: ecvMesh.h:35
const unsigned dimPerScale() const
Returns the number of dimensions per scale.
Definition: ccPointDescriptor.h:142
bool getNextSegment(size_t &vp1, size_t &vp2) const
Definition: qAnimationDlg.cpp:910
Simple step (viewport + time)
Definition: qAnimationDlg.h:110
virtual unsigned getID() const =0
Returns the associated descriptor ID.
void Sleep(int milliseconds)
Definition: Helper.cpp:278
unsigned m_dimPerScale
Dimensions per scale.
Definition: ccPointDescriptor.h:154
Mesh (triangle) material.
Definition: ecvMaterialSet.h:16
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
std::vector< float > m_scales
Associated scales.
Definition: ccPointDescriptor.h:148
void onAutoStepsDurationToggled(bool)
Definition: qAnimationDlg.cpp:621
void onReject()
Definition: qAnimationDlg.cpp:323
bool updateSmoothCameraTrajectory()
Definition: qAnimationDlg.cpp:590
static const QString s_stepDurationKey("StepDurationSec")
QStringList getImageList(const QString &path)
Definition: qAnimationDlg.cpp:51
Standard ECV plugin interface.
Definition: ecvStdPluginInterface.h:31
The ViewInterpolate class.
Definition: ViewInterpolate.h:20
CorePointDescSet(size_t sz)
Definition: ccPointDescriptor.h:105
bool textureAnimationRender(const QStringList &texture_files, QProgressDialog &progressDialog, bool asSeparateFrames)
Definition: qAnimationDlg.cpp:1258
int getCurrentStepIndex()
Definition: qAnimationDlg.cpp:750
MeshList m_mesh_list
Definition: qAnimationDlg.h:132
virtual unsigned dimPerScale() const =0
Returns the number of dimensions per scale for this descriptor.
bool LessThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:23
char type
Definition: FileIOFactory.cpp:131
bool smoothModeEnabled() const
Definition: qAnimationDlg.cpp:238
bool loadFromMSC(QString filename, QString &error, ccPointCloud *corePoints=0)
Loads structure of descriptors from an ".msc" file (see Brodu's version)
Definition: ccPointDescriptor.cpp:588
bool interpolate(ecvViewportParameters &a_returned_viewport, double ratio) const
Interpolates the 2 viewports at a given (relative) position.
Definition: ViewInterpolate.cpp:50
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
const std::vector< float > & scales() const
Returns associated scales.
Definition: ccPointDescriptor.h:127
Colored polyline.
Definition: ecvPolyline.h:23
static const unsigned DESC_DIMENSIONALITY
Definition: ccPointDescriptor.h:31
@ VIEWPORT_2D_OBJECT
Definition: CVTypes.h:141