ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
MAFilter.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 
13 class MAFilter : public FileIOFilter {
14 public:
15  MAFilter();
16 
17  // inherited from FileIOFilter
18  virtual bool canSave(CV_CLASS_ENUM type,
19  bool& multiple,
20  bool& exclusive) const override;
21  virtual CC_FILE_ERROR saveToFile(ccHObject* entity,
22  const QString& filename,
23  const SaveParameters& parameters) override;
24 };
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
std::string filename
char type
CC_FILE_ERROR
Typical I/O filter errors.
Definition: FileIOFilter.h:20
Generic file I/O filter.
Definition: FileIOFilter.h:46
Maya ASCII meshes file I/O filter.
Definition: MAFilter.h:13
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.
Definition: MAFilter.cpp:70
virtual CC_FILE_ERROR saveToFile(ccHObject *entity, const QString &filename, const SaveParameters &parameters) override
Saves an entity (or a group of) to a file.
Definition: MAFilter.cpp:81
MAFilter()
Definition: MAFilter.cpp:64
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Generic saving parameters.
Definition: FileIOFilter.h:84