ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvCustomObject.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // Local
11 #include "ecvHObject.h"
12 
14 
18 public:
20 
22  ccCustomHObject(QString name = QString()) : ccHObject(name) {}
23 
24  // inherited from ccHObject
25  bool isSerializable() const override { return true; }
26 
27  // inherited from ccObject
28  CV_CLASS_ENUM getClassID() const override {
30  }
31 
33 
35  static QString DefautMetaDataClassName() { return QString("class_name"); }
37 
39  static QString DefautMetaDataPluginName() { return QString("plugin_name"); }
40 };
41 
43 
47 public:
49 
51  ccCustomLeafObject(QString name = QString()) : ccCustomHObject(name) {}
52 
53  // inherited from ccCustomHObject
54  CV_CLASS_ENUM getClassID() const override {
56  }
57 };
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
#define CV_DB_LIB_API
Definition: CV_db.h:15
std::string name
Custom hierarchy object.
CV_CLASS_ENUM getClassID() const override
Returns class ID.
static QString DefautMetaDataClassName()
Returns the default key for the "class name" metadata.
bool isSerializable() const override
Returns whether object is serializable of not.
static QString DefautMetaDataPluginName()
Returns the default key for the "plugin name" metadata.
ccCustomHObject(QString name=QString())
Default constructor.
Custom leaf object.
CV_CLASS_ENUM getClassID() const override
Returns class ID.
ccCustomLeafObject(QString name=QString())
Default constructor.
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
@ CUSTOM_H_OBJECT
Definition: CVTypes.h:179
@ CUSTOM_LEAF_OBJECT
Definition: CVTypes.h:180