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

#include <PDFFactory.h>

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

Public Member Functions

PDF_API PDFFactory ()
 
void setDrawGrid (bool draw_grid)
 
void setTitle (const String &title, const String &subject)
 
void setMargins (uint04 margins)
 
virtual void setdpi (fltp08 dpi)
 
void setDrawBorder (bool border)
 
virtual void getSupportedFormats (Buffer< FileFormat > &formats, DesignObjectLookup *lookup, const Buffer< UUID > &models) override
 
virtual void getSupportedFormats (Buffer< FileFormat > &formats, bool is_read) override
 
virtual bool canRead (const FactoryParameters &file) override
 
virtual bool canWrite (const FactoryParameters &file) override
 
virtual bool canWrite (const FileFormat &file) override
 
virtual bool canWrite (const File &file) override
 
virtual bool readFile (FactoryParameters &file) override
 
virtual bool writeFile (FactoryParameters &file) override
 
virtual bool writeFile (const FactoryParameters &file, const DesignObjectLookup *lookup, const Buffer< UUID > &objects_to_write, const Buffer< UUID > &cameras, const FactoryOptions &options)
 
FactoryFeatures factoryFeatures (const FactoryParameters &file, bool is_import) const override
 
FactoryOptions defaultWriteOptions (const FactoryParameters &file) const 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 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 isAutoEnabled () const
 
virtual String getIcon (const File &file)
 
virtual bool canRead (const FileFormat &file)
 
Buffer< ScenereadScenesFromFile (const File &file)
 
virtual FactoryOptions defaultReadOptions (const FactoryParameters &file) const
 
virtual bool updateFromFile (const FactoryParameters &file, const FactoryOptions &old_options)
 
String factoryReadAppFeature () const
 
String factoryWriteAppFeature () const
 
void throwIfNotEnabled (bool is_read)
 

Protected Attributes

String m_title
 
String m_subject
 
uint04 m_margins
 
bool m_draw_grid
 
bool m_draw_border
 
fltp08 m_dpi
 

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

◆ PDFFactory()

Member Function Documentation

◆ canRead()

bool canRead ( const FactoryParameters & file)
overridevirtual

Reimplemented from IOFactory.

◆ canWrite() [1/3]

bool canWrite ( const FactoryParameters & file)
overridevirtual

Reimplemented from IOFactory.

◆ canWrite() [2/3]

bool canWrite ( const File & file)
overridevirtual

Reimplemented from IOFactory.

◆ canWrite() [3/3]

bool canWrite ( const FileFormat & file)
overridevirtual

Reimplemented from IOFactory.

◆ defaultWriteOptions()

FactoryOptions defaultWriteOptions ( const FactoryParameters & file) const
overridevirtual

Reimplemented from IOFactory.

◆ factoryFeatures()

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

Implements IOFactory.

◆ getSupportedFormats() [1/2]

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

Implements IOFactory.

◆ getSupportedFormats() [2/2]

void getSupportedFormats ( Buffer< FileFormat > & formats,
DesignObjectLookup * lookup,
const Buffer< UUID > & models )
overridevirtual

Reimplemented from IOFactory.

◆ readFile()

bool readFile ( FactoryParameters & file)
overridevirtual

Implements IOFactory.

◆ setdpi()

void setdpi ( fltp08 dpi)
virtual

◆ setDrawBorder()

void setDrawBorder ( bool border)

◆ setDrawGrid()

void setDrawGrid ( bool draw_grid)

◆ setMargins()

void setMargins ( uint04 margins)

◆ setTitle()

void setTitle ( const String & title,
const String & subject )

◆ writeFile() [1/2]

bool writeFile ( const FactoryParameters & file,
const DesignObjectLookup * lookup,
const Buffer< UUID > & objects_to_write,
const Buffer< UUID > & cameras,
const FactoryOptions & options )
virtual

◆ writeFile() [2/2]

bool writeFile ( FactoryParameters & file)
overridevirtual

Implements IOFactory.

Member Data Documentation

◆ m_dpi

fltp08 m_dpi
protected

◆ m_draw_border

bool m_draw_border
protected

◆ m_draw_grid

bool m_draw_grid
protected

◆ m_margins

uint04 m_margins
protected

◆ m_subject

String m_subject
protected

◆ m_title

String m_title
protected

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