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

#include <DXFFactory.h>

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

Public Member Functions

NDEVR_CAD_API DXFFactory ()
 
virtual NDEVR_CAD_API void getSupportedFormats (Buffer< FileFormat > &formats, bool is_read) override
 
virtual NDEVR_CAD_API bool readFile (FactoryParameters &file) override
 
virtual NDEVR_CAD_API bool writeFile (FactoryParameters &file) override
 
NDEVR_CAD_API bool determineExtension (const File &file, String &extension) override
 
NDEVR_CAD_API FactoryOptions defaultReadOptions (const FactoryParameters &file) const override
 
NDEVR_CAD_API FactoryOptions defaultWriteOptions (const FactoryParameters &file) const override
 
NDEVR_CAD_API FactoryFeatures factoryFeatures (const FactoryParameters &file, bool is_import) const override
 
NDEVR_CAD_API void addWriteModifier (CADWriteModifier *modifier)
 
- 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 String getIcon (const File &file)
 
virtual bool canRead (const FactoryParameters &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)
 

Static Public Member Functions

static NDEVR_CAD_API FileFormat AutodeskDXF ()
 
static NDEVR_CAD_API FileFormat FlatDXF ()
 
static constexpr const char * CustomOptionsLabel ()
 
static constexpr const char * CustomOptionsAutoName ()
 
static constexpr const char * CustomOptionsTextFaceCamera ()
 
static constexpr const char * CustomOptionsGroupImport ()
 
static constexpr const char * CustomOptionsDXFVersion ()
 
static constexpr const char * CustomOptionsDXFBinary ()
 
static constexpr const char * CustomOptionsDXFDefaultMeshFormat ()
 
static constexpr const char * CustomOptionsDXFHideGridlines ()
 
static constexpr const char * CustomOptionsDXFClearHandleManager ()
 
- 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

bool writeDXFNoBlocks (DXFWriter &writer, Dictionary< UUID, BlockData > block_data, FactoryParameters &params, CADGeometryWriter &geo_write_options)
 
bool writeDXFBlocks (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
 

Constructor & Destructor Documentation

◆ DXFFactory()

Member Function Documentation

◆ addWriteModifier()

NDEVR_CAD_API void addWriteModifier ( CADWriteModifier * modifier)
inline

◆ AutodeskDXF()

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

FileFormat FlatDXF ( )
static

◆ getSupportedFormats()

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

Implements IOFactory.

◆ readFile()

bool readFile ( FactoryParameters & file)
overridevirtual

Implements IOFactory.

◆ setupFromCustomOptions()

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

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 files: