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

#include <DWGFactory.h>

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

Public Member Functions

NDEVR_CAD_API DWGFactory ()
 
- 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 determineExtension (const File &file, String &extension)
 
virtual bool canWrite (const File &file)
 
virtual bool isAutoEnabled () const
 
virtual String getIcon (const File &file)
 
virtual bool canWrite (const FactoryParameters &file)
 
virtual bool canRead (const FileFormat &file)
 
virtual bool canWrite (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)
 

Protected Member Functions

virtual void getSupportedFormats (Buffer< FileFormat > &formats, bool is_read) override
 
virtual bool readFile (FactoryParameters &file) override
 
virtual bool writeFile (FactoryParameters &file) override
 
FactoryOptions defaultReadOptions (const FactoryParameters &file) const override
 
FactoryOptions defaultWriteOptions (const FactoryParameters &file) const override
 
FactoryFeatures factoryFeatures (const FactoryParameters &file, bool is_import) const override
 
bool canRead (const FactoryParameters &file) override
 

Static Protected Member Functions

static INIFactory INI ()
 
static File FindODAPath ()
 
static File CurrentODAPath ()
 
static void SetODAPath (const File &file)
 
static void DownloadDWGTools ()
 
static bool NeedsToDownloadDWGTools ()
 
static bool SupportsODA ()
 

Static Protected Attributes

static File s_oda_path
 
static bool s_is_valid = false
 

Additional Inherited Members

- 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)
 

Constructor & Destructor Documentation

◆ DWGFactory()

Member Function Documentation

◆ canRead()

bool canRead ( const FactoryParameters & file)
overrideprotectedvirtual

Reimplemented from IOFactory.

◆ CurrentODAPath()

File CurrentODAPath ( )
staticprotected

◆ defaultReadOptions()

FactoryOptions defaultReadOptions ( const FactoryParameters & file) const
overrideprotectedvirtual

Reimplemented from IOFactory.

◆ defaultWriteOptions()

FactoryOptions defaultWriteOptions ( const FactoryParameters & file) const
overrideprotectedvirtual

Reimplemented from IOFactory.

◆ DownloadDWGTools()

void DownloadDWGTools ( )
staticprotected

◆ factoryFeatures()

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

Implements IOFactory.

◆ FindODAPath()

File FindODAPath ( )
staticprotected

◆ getSupportedFormats()

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

Implements IOFactory.

◆ INI()

INIFactory INI ( )
staticprotected

◆ NeedsToDownloadDWGTools()

bool NeedsToDownloadDWGTools ( )
staticprotected

◆ readFile()

bool readFile ( FactoryParameters & file)
overrideprotectedvirtual

Implements IOFactory.

◆ SetODAPath()

void SetODAPath ( const File & file)
staticprotected

◆ SupportsODA()

bool SupportsODA ( )
staticprotected

◆ writeFile()

bool writeFile ( FactoryParameters & file)
overrideprotectedvirtual

Implements IOFactory.

Member Data Documentation

◆ s_is_valid

bool s_is_valid = false
staticprotected

◆ s_oda_path

File s_oda_path
staticprotected

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