33#include <NDEVR/SoftwareService.h>
34#include <NDEVR/IOFactory.h>
35#include <NDEVR/Material.h>
36#include <NDEVR/Model.h>
37#include <NDEVR/File.h>
The equivelent of std::vector but with a bit more control.
Allows IOFactories to report what features they support to make the import/export dialogs easier to s...
User-defined options that define preferences for importing and exporting using IOFactory objects.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
IOFactory(const StringView &factory_name)
Constructs an IOFactory with the given factory name.
The core class for reading/writing and storing images in an optimized way.
Serves as the primary program interface for processes to report issues and allows any number of LogSt...
A core class that represents a node on model hierarchy.
virtual bool canWrite(const FactoryParameters &file) override
Checks whether this factory can write the file described by the given parameters.
FactoryOptions defaultReadOptions(const FactoryParameters &file) const override
Returns the default read options for the given file parameters.
FactoryFeatures factoryFeatures(const FactoryParameters &file, bool is_import) const override
Returns the feature set supported by this factory for the given parameters.
virtual bool canRead(const FactoryParameters &file) override
Checks whether this factory can read the file described by the given parameters.
NDVFactory()
Protected constructor.
String getIcon(const File &file) override
Returns the icon associated with the given file.
virtual void getSupportedFormats(Buffer< FileFormat > &formats, bool is_read) override
Populates the given buffer with the file formats supported by this factory.
static void RemoveSetupCallback(NDVSetupCallback *callback)
Unregisters a previously added NDVSetupCallback.
virtual bool readFile(FactoryParameters ¶ms) override
Reads an NDV file and populates the factory parameters with the resulting model data.
static String ReadIcon(const File &file, ImageFactory &factory)
Reads the icon resource embedded in an NDV file.
virtual bool writeFile(FactoryParameters ¶ms) override
Writes model data to an NDV file as described by the factory parameters.
virtual bool determineExtension(const File &file, String &extension) override
Attempts to determine the file extension for the given file.
static FileFormat NDVFormat()
Returns the FileFormat descriptor for the NDV file format.
virtual bool canWrite(const FileFormat &file) override
Checks whether this factory can write files in the given format.
static void AddSetupCallback(NDVSetupCallback *callback)
Registers an NDVSetupCallback to be invoked during NDV file import.
static NDVFactory & DefaultFactory()
Returns the singleton NDVFactory instance.
uint08 version(const File &file)
Returns the NDV format version stored in the given file.
static uint08 CurrentVersion()
Returns the current NDV format version used by this factory for writing.
static String ReadData(const File &file)
Reads raw data content from an NDV file as a String.
FactoryOptions defaultWriteOptions(const FactoryParameters &file) const override
Returns the default write options for the given file parameters.
A callback service used to modify Model objects when they are imported using the NDVFactory.
std::function< void(Model &)> callback
The function invoked on each Model during NDV import.
NDVSetupCallback(std::function< void(Model &)> callback)
Constructs an NDVSetupCallback with the given callback function.
Software Service Managers take a Software service to modify the behavior of the software.
Base interface for services that extend or modify software behavior through modules.
The core String class for the NDEVR API.
The primary namespace for the NDEVR SDK.
uint64_t uint08
-Defines an alias representing an 8 byte, unsigned integer
A container of input information that is to be filled with output information by an IOFactory.