API Documentation
Loading...
Searching...
No Matches
NDVFactory Class Reference

#include <NDVFactory.h>

Inheritance diagram for NDVFactory:
[legend]
Collaboration diagram for NDVFactory:
[legend]

Public Member Functions

String getIcon (const File &file) override
 
String getData (const File &file)
 
FactoryFeatures factoryFeatures (const FactoryParameters &file, bool is_import) const override
 
FactoryOptions defaultReadOptions (const FactoryParameters &file) const override
 
FactoryOptions defaultWriteOptions (const FactoryParameters &file) const override
 
virtual void getSupportedFormats (Buffer< FileFormat > &formats, bool is_read) override
 
virtual bool readFile (FactoryParameters &params) override
 
virtual bool writeFile (FactoryParameters &params) override
 
uint08 version (const File &file)
 
virtual bool determineExtension (const File &file, String &extension) override
 
virtual bool canRead (const FactoryParameters &file) override
 
virtual bool canWrite (const FactoryParameters &file) override
 
virtual bool canWrite (const FileFormat &file) override
 
- Public Member Functions inherited from IOFactory
 IOFactory (const String &factory_name)
 
const Stringname () const
 
virtual ~IOFactory ()
 
bool writeScenesToFile (const File &file, const Buffer< Scene > &scene)
 
bool readFileWithDefaultSettings (const File &file, DesignObjectLookup *lookup)
 
void getSupportedFormats (Buffer< FileFormat > &formats)
 
virtual void getSupportedFormats (Buffer< FileFormat > &formats, const File &file)
 
virtual void getSupportedFormats (Buffer< FileFormat > &formats, DesignObjectLookup *lookup, const Buffer< UUID > &models)
 
virtual void getSupportedFormatsForExtension (Buffer< FileFormat > &formats, bool is_read, const String &extension)
 
virtual void getSupportedFormatsByModelType (Buffer< FileFormat > &formats, bool is_read, const String &model_type)
 
virtual Buffer< UUIDfilterModelsToExport (Buffer< UUID > models_to_check, const DesignObjectLookup *lookup, const FileFormat &export_format) const
 
virtual bool isFactoryEnabled (bool is_read) const
 
virtual bool canRead (const File &file)
 
virtual bool canWrite (const File &file)
 
virtual bool isAutoEnabled () const
 
virtual bool canRead (const FileFormat &file)
 
Buffer< ScenereadScenesFromFile (const File &file)
 
virtual bool updateFromFile (const FactoryParameters &file, const FactoryOptions &old_options)
 
String factoryReadAppFeature () const
 
String factoryWriteAppFeature () const
 
void throwIfNotEnabled (bool is_read)
 

Static Public Member Functions

static NDVFactoryDefaultFactory ()
 
static String ReadIcon (const File &file, ImageFactory &factory)
 
static void AddSetupCallback (const std::function< void(Model &)> &callback)
 
static FileFormat NDVFormat ()
 
static uint08 CurrentVersion ()
 
- Static Public Member Functions inherited from IOFactory
static void EnableFactory (IOFactory *factory, const String &read_password, const String &write_password)
 
static void EnableFactory (const String &factory, const String &read_password, const String &write_password)
 
static void EnableExtension (const String &extension, const String &read_password, const String &write_password)
 

Protected Member Functions

 NDVFactory ()
 
void tidyUpScene (const FactoryParameters &file, Scene &scene, const Buffer< UUID > &objects_read, uint08 version_number, Buffer< Model > &read_models, Buffer< Material > &read_materials, bool ignore_project, Time current_time)
 

Static Protected Attributes

static Buffer< std::function< void(Model &)> > s_setup_callbacks = Buffer<std::function<void(Model&)>>(20)
 

Constructor & Destructor Documentation

◆ NDVFactory()

NDVFactory ( )
protected

Member Function Documentation

◆ AddSetupCallback()

void AddSetupCallback ( const std::function< void(Model &)> & callback)
static

◆ canRead()

bool canRead ( const FactoryParameters & file)
overridevirtual

Reimplemented from IOFactory.

◆ canWrite() [1/2]

bool canWrite ( const FactoryParameters & file)
overridevirtual

Reimplemented from IOFactory.

◆ canWrite() [2/2]

bool canWrite ( const FileFormat & file)
overridevirtual

Reimplemented from IOFactory.

◆ CurrentVersion()

uint08 CurrentVersion ( )
static

◆ DefaultFactory()

NDVFactory & DefaultFactory ( )
static

◆ defaultReadOptions()

FactoryOptions defaultReadOptions ( const FactoryParameters & file) const
overridevirtual

Reimplemented from IOFactory.

◆ defaultWriteOptions()

FactoryOptions defaultWriteOptions ( const FactoryParameters & file) const
overridevirtual

Reimplemented from IOFactory.

◆ determineExtension()

bool determineExtension ( const File & file,
String & extension )
overridevirtual

Reimplemented from IOFactory.

◆ factoryFeatures()

FactoryFeatures factoryFeatures ( const FactoryParameters & file,
bool is_import ) const
overridevirtual

Implements IOFactory.

◆ getData()

String getData ( const File & file)

◆ getIcon()

String getIcon ( const File & file)
overridevirtual

ReadIcon(file, ImageFactory::DefaultFactory());

Reimplemented from IOFactory.

◆ getSupportedFormats()

void getSupportedFormats ( Buffer< FileFormat > & formats,
bool is_read )
overridevirtual

Implements IOFactory.

◆ NDVFormat()

FileFormat NDVFormat ( )
static

◆ readFile()

bool readFile ( FactoryParameters & params)
overridevirtual

Implements IOFactory.

◆ ReadIcon()

String ReadIcon ( const File & file,
ImageFactory & factory )
static

◆ tidyUpScene()

void tidyUpScene ( const FactoryParameters & file,
Scene & scene,
const Buffer< UUID > & objects_read,
uint08 version_number,
Buffer< Model > & read_models,
Buffer< Material > & read_materials,
bool ignore_project,
Time current_time )
protected

◆ version()

uint08 version ( const File & file)

◆ writeFile()

bool writeFile ( FactoryParameters & params)
overridevirtual

Implements IOFactory.

Member Data Documentation

◆ s_setup_callbacks

Buffer< std::function< void(Model &)> > s_setup_callbacks = Buffer<std::function<void(Model&)>>(20)
staticprotected

The documentation for this class was generated from the following files: