47 , m_OutputStream(
NULL)
70 unique_ptr<CNcbiOstream> pstrm;
CPdfGrabber(IVectorGraphicsRenderer &pane)
void SetOutputStream(CNcbiOstream *ostr)
void x_BeginCaptures(int buffer_size)
Called to setup values before image capturing starts.
IVectorGraphicsRenderer & m_Pane
Pane display canvas for the tree we are saving.
void x_InitRenderer()
Instantiates the PDF renderer.
CNcbiOstream * m_OutputStream
void x_EndCaptures()
Called to restore values (in pane) when capturing stops.
virtual eCaptureResult GrabImages(int tex_size, IImageGrabberProgress *p=NULL)
Grab the requested images.
CVect2< float > m_ModelViewScaler
Ratio scalers for the drawing area that maps to the images.
virtual void BeginPage(void)
virtual void EndPage(void)
virtual void BeginDocument(void)
virtual void SetOptions(const CPrintOptions &options)
virtual void SetOutputStream(CNcbiOstream *ostream)
virtual void EndDocument(void)
void SetPagesTall(unsigned int w)
void SetFilename(const string &filename)
void SetMedia(const CMedia &media)
void DisableGouraudShading(bool b)
void SetMarginLeft(TPdfUnit h)
void SetOutputFormat(TOutputFormat fmt)
void SetPagesWide(unsigned int w)
void SetPageOrientation(TPageOrientation orient)
void SetMarginTop(TPdfUnit h)
const CMedia & GetMedia(void) const
void SetMarginRight(TPdfUnit w)
void SetMarginBottom(TPdfUnit w)
virtual void ResetState()
virtual CPrintOptions & GetOptions()
virtual void SetGLContext()
std::string m_BaseImageName
Image name without its appended number (e.g. img for img1, img2...)
TModelUnit m_TitleHeight
Allow space at the top for a title.
std::string m_Directory
Target directory for saved images.
std::string m_ImageFormat
Image output format (e.g. jpeg, png...)
int m_GuideWidthX
If we are making space for printing guides (margins) on the sides, those margins may have different s...
bool m_DisableGouraudShaded
If true, disable gouraud-shaded polys (shadingtype 4)
Interface class for the pdf renderer.
virtual const TVPRect & GetViewportRect() const =0
virtual void RenderVectorGraphics(int vp_width, int vp_height)=0
virtual void UpdateVectorLayout()=0
virtual void AddTitle(bool b)=0
std::ofstream out("events_result.xml")
main entry point for tests
static string ConcatPath(const string &first, const string &second)
Concatenate two parts of the path for the current OS.
static CGlResMgr & Instance()
CIRef< IRender > GetRenderer(ERenderTarget target)
Returns first renderer in m_Renderers that renders to 'target'.
void AddRenderer(CIRef< IRender > rm)
Get/Set Renderer.
void SetCurrentRenderer(CIRef< IRender > rm)
Set current renderer (rm must already be in m_Renderers)
void SetPdf(CRef< CPdf > &pdf)
m_Pdf does the actually writing to the file
TObjectType * ReleaseOrNull(void)
Release a reference to the object and return a pointer to the object.
void Reset(void)
Reset reference object.
bool IsNull(void) const THROWS_NONE
Check if pointer is null – same effect as Empty().
TObjectType * GetPointerOrNull(void) THROWS_NONE
Get pointer value.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ofstream CNcbiOfstream
Portable alias for ofstream.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...