ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DepthMapFileFilter.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 #include "FileIOFilter.h"
11 
12 class ccGBLSensor;
13 
16 public:
18 
19  // static accessors
20  static inline QString GetFileFilter() {
21  return "Depth Map [ascii] (*.txt *.asc)";
22  }
23 
24  // inherited from FileIOFilter
25  virtual bool canSave(CV_CLASS_ENUM type,
26  bool& multiple,
27  bool& exclusive) const override;
29  const QString& filename,
30  const SaveParameters& parameters) override;
31 
32  // direct method to save a sensor (depth map)
33  CC_FILE_ERROR saveToFile(const QString& filename, ccGBLSensor* sensor);
34 };
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
std::string filename
#define CV_IO_LIB_API
Definition: CV_io.h:15
char type
CC_FILE_ERROR
Typical I/O filter errors.
Definition: FileIOFilter.h:20
Depth map I/O filter.
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
virtual bool canSave(CV_CLASS_ENUM type, bool &multiple, bool &exclusive) const override
Returns whether this I/O filter can save the specified type of entity.
static QString GetFileFilter()
CC_FILE_ERROR saveToFile(const QString &filename, ccGBLSensor *sensor)
Generic file I/O filter.
Definition: FileIOFilter.h:46
Ground-based Laser sensor.
Definition: ecvGBLSensor.h:26
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Generic saving parameters.
Definition: FileIOFilter.h:84