VPTissue Reference Manual
SimPT_Shell::VectorGraphicsExporter Class Reference

Functions and data for PDF export of Sim objects. More...

#include <VectorGraphicsExporter.h>

Collaboration diagram for SimPT_Shell::VectorGraphicsExporter:
Collaboration graph

Static Public Member Functions

static bool Export (std::shared_ptr< SimPT_Sim::SimInterface > sim, std::string const &file_path, bool overwrite=true, std::shared_ptr< VectorGraphicsPreferences > prefs=std::make_shared< VectorGraphicsPreferences >())
 Export snapshot of canvas in PNG format. More...
 
static std::string GetFileExtension ()
 File extension associated with this export format. More...
 

Detailed Description

Functions and data for PDF export of Sim objects.

Definition at line 38 of file VectorGraphicsExporter.h.

Member Function Documentation

bool SimPT_Shell::VectorGraphicsExporter::Export ( std::shared_ptr< SimPT_Sim::SimInterface sim,
std::string const &  file_path,
bool  overwrite = true,
std::shared_ptr< VectorGraphicsPreferences prefs = std::make_shared<VectorGraphicsPreferences>() 
)
static

Export snapshot of canvas in PNG format.

Parameters
eEvent containing canvas to render.
pathPath where to save image.
overwriteWhether to overwrite if path already exists.
size_xImage width
size_yImage height
Returns
true if successful

Definition at line 50 of file VectorGraphicsExporter.cpp.

References SimPT_Shell::MeshDrawer::Draw().

Referenced by SimPT_Shell::Session::SimSession::GetExporters().

Here is the call graph for this function:

Here is the caller graph for this function:

string SimPT_Shell::VectorGraphicsExporter::GetFileExtension ( )
static

File extension associated with this export format.

Returns
String containing file extension (without a ".")

Definition at line 103 of file VectorGraphicsExporter.cpp.


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