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

Writes and Reads from various DXF File types using the IOFactory interface. Optionally handles resolving IDs and UUIDs. More...

#include <DXFFactory.h>

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

Public Member Functions

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

Static Public Member Functions

static FileFormat AutodeskDXF ()
 
static constexpr const char * CustomOptionsAutoName ()
 
static constexpr const char * CustomOptionsDXFBinary ()
 
static constexpr const char * CustomOptionsDXFClearHandleManager ()
 
static constexpr const char * CustomOptionsDXFDefaultMeshFormat ()
 
static constexpr const char * CustomOptionsDXFHideGridlines ()
 
static constexpr const char * CustomOptionsDXFVersion ()
 
static constexpr const char * CustomOptionsGroupImport ()
 
static constexpr const char * CustomOptionsLabel ()
 
static constexpr const char * CustomOptionsTextFaceCamera ()
 
static FileFormat FlatDXF ()
 
- Static Public Member Functions inherited from IOFactory
static void EnableExtension (const String &extension, const String &read_password, const String &write_password)
 
static void EnableFactory (const String &factory, const String &read_password, const String &write_password)
 
static void EnableFactory (IOFactory *factory, const String &read_password, const String &write_password)
 

Protected Member Functions

bool writeDXFBlocks (DXFWriter &writer, Dictionary< UUID, BlockData > block_data, FactoryParameters &params, CADGeometryWriter &geo_write_options)
 
bool writeDXFNoBlocks (DXFWriter &writer, Dictionary< UUID, BlockData > block_data, FactoryParameters &params, CADGeometryWriter &geo_write_options)
 

Static Protected Member Functions

static void setupFromCustomOptions (DXFWriter &writer, const GenericOptionGroup &group, CADGeometryWriter &options)
 

Protected Attributes

DynamicPointer< CADHandleManagerm_handle_manager
 
Buffer< CADWriteModifier * > m_write_modifiers
 

Detailed Description

Writes and Reads from various DXF File types using the IOFactory interface. Optionally handles resolving IDs and UUIDs.


Constructor & Destructor Documentation

◆ DXFFactory()

Member Function Documentation

◆ addWriteModifier()

void addWriteModifier ( CADWriteModifier * modifier)
inline

◆ AutodeskDXF()

static FileFormat AutodeskDXF ( )
static

◆ CustomOptionsAutoName()

static constexpr const char * CustomOptionsAutoName ( )
inlinestaticconstexpr

◆ CustomOptionsDXFBinary()

static constexpr const char * CustomOptionsDXFBinary ( )
inlinestaticconstexpr

◆ CustomOptionsDXFClearHandleManager()

static constexpr const char * CustomOptionsDXFClearHandleManager ( )
inlinestaticconstexpr

◆ CustomOptionsDXFDefaultMeshFormat()

static constexpr const char * CustomOptionsDXFDefaultMeshFormat ( )
inlinestaticconstexpr

◆ CustomOptionsDXFHideGridlines()

static constexpr const char * CustomOptionsDXFHideGridlines ( )
inlinestaticconstexpr

◆ CustomOptionsDXFVersion()

static constexpr const char * CustomOptionsDXFVersion ( )
inlinestaticconstexpr

◆ CustomOptionsGroupImport()

static constexpr const char * CustomOptionsGroupImport ( )
inlinestaticconstexpr

◆ CustomOptionsLabel()

static constexpr const char * CustomOptionsLabel ( )
inlinestaticconstexpr

◆ CustomOptionsTextFaceCamera()

static constexpr const char * CustomOptionsTextFaceCamera ( )
inlinestaticconstexpr

◆ 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.

◆ FlatDXF()

static FileFormat FlatDXF ( )
static

◆ getSupportedFormats()

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

Implements IOFactory.

◆ readFile()

virtual bool readFile ( FactoryParameters & file)
overridevirtual

Implements IOFactory.

◆ setupFromCustomOptions()

static void setupFromCustomOptions ( DXFWriter & writer,
const GenericOptionGroup & group,
CADGeometryWriter & options )
staticprotected

◆ writeDXFBlocks()

bool writeDXFBlocks ( DXFWriter & writer,
Dictionary< UUID, BlockData > block_data,
FactoryParameters & params,
CADGeometryWriter & geo_write_options )
protected

◆ writeDXFNoBlocks()

bool writeDXFNoBlocks ( DXFWriter & writer,
Dictionary< UUID, BlockData > block_data,
FactoryParameters & params,
CADGeometryWriter & geo_write_options )
protected

◆ writeFile()

virtual bool writeFile ( FactoryParameters & file)
overridevirtual

Implements IOFactory.

Member Data Documentation

◆ m_handle_manager

DynamicPointer<CADHandleManager> m_handle_manager
protected

◆ m_write_modifiers

Buffer<CADWriteModifier*> m_write_modifiers
protected

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