NDEVR
API Documentation
SketchupFactory.h
1
32#pragma once
33#include <NDEVR/IOFactory.h>
34namespace NDEVR
35{
36 class Model;
37 class Log;
38 class FactoryFeatures;
44 {
45 public:
51 virtual void getSupportedFormats(Buffer<FileFormat>& formats, bool is_read) override;
55 virtual bool readFile(FactoryParameters& file) override;
59 virtual bool writeFile(FactoryParameters& file) override;
64 FactoryFeatures factoryFeatures(const FactoryParameters& file, bool is_import) const override;
65 };
66};
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
Allows IOFactories to report what features they support to make the import/export dialogs easier to s...
IOFactory(const StringView &factory_name)
Constructs an IOFactory with the given factory name.
Serves as the primary program interface for processes to report issues and allows any number of LogSt...
Definition Log.h:50
A core class that represents a node on model hierarchy.
Definition Model.h:292
SketchupFactory()
Constructs a SketchupFactory.
virtual void getSupportedFormats(Buffer< FileFormat > &formats, bool is_read) override
Populates the buffer with supported file formats.
virtual bool writeFile(FactoryParameters &file) override
Writes the design model to a SketchUp file.
FactoryFeatures factoryFeatures(const FactoryParameters &file, bool is_import) const override
Returns the factory feature set for the given parameters.
virtual bool readFile(FactoryParameters &file) override
Reads a SketchUp file into the design model.
The primary namespace for the NDEVR SDK.
@ file
The source file path associated with this object.
A container of input information that is to be filled with output information by an IOFactory.
Definition IOFactory.h:105