34#include <NDEVR/IOFactory.h>
The equivelent of std::vector but with a bit more control.
A core class where all Design Objects including models, materials, and geometries are stored.
Allows IOFactories to report what features they support to make the import/export dialogs easier to s...
User-defined options that define preferences for importing and exporting using IOFactory objects.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
IOFactory(const StringView &factory_name)
Constructs an IOFactory with the given factory name.
Serves as the primary program interface for processes to report issues and allows any number of LogSt...
A core class that represents a node on model hierarchy.
String m_subject
The PDF document subject.
PDFFactory()
Constructs the PDFFactory.
virtual bool canWrite(const FactoryParameters &file) override
Checks whether the given parameters describe a writable PDF.
virtual bool canWrite(const FileFormat &file) override
Checks whether the given format is writable.
void setMargins(uint04 margins)
Sets the page margins in points.
virtual void getSupportedFormats(Buffer< FileFormat > &formats, DesignObjectLookup *lookup, const Buffer< UUID > &models) override
Populates supported formats filtered by model context.
uint04 m_margins
The page margins in points.
FactoryFeatures factoryFeatures(const FactoryParameters &file, bool is_import) const override
Returns the supported factory features for the given file.
virtual bool readFile(FactoryParameters &file) override
Reads a PDF file into the design model.
void setDrawGrid(bool draw_grid)
Enables or disables drawing a grid in the PDF output.
bool m_draw_border
Whether to draw a page border.
virtual bool writeFile(FactoryParameters &file) override
Writes design data to a PDF file.
bool m_draw_grid
Whether to draw a grid overlay.
virtual void getSupportedFormats(Buffer< FileFormat > &formats, bool is_read) override
Populates the list of supported PDF file formats.
void setTitle(const String &title, const String &subject)
Sets the title and subject metadata for the PDF.
virtual bool canRead(const FactoryParameters &file) override
Checks whether the given parameters describe a readable PDF.
void setDrawBorder(bool border)
Enables or disables drawing a page border.
FactoryOptions defaultWriteOptions(const FactoryParameters &file) const override
Returns the default write options for PDF export.
String m_title
The PDF document title.
virtual bool writeFile(const FactoryParameters &file, const DesignObjectLookup *lookup, const Buffer< UUID > &objects_to_write, const Buffer< UUID > &cameras, const FactoryOptions &options)
Writes specific objects and camera views to a PDF file.
fltp08 m_dpi
The output resolution in dots per inch.
static constexpr StringView OptionsGroupName()
Returns the options group name used for PDF paper settings.
virtual void setdpi(fltp08 dpi)
Sets the output resolution in dots per inch.
virtual bool canWrite(const File &file) override
Checks whether the given file can be written as PDF.
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
double fltp08
Defines an alias representing an 8 byte floating-point number.
@ file
The source file path associated with this object.
A container of input information that is to be filled with output information by an IOFactory.