A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/phylo__pdf__grabber_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/phylo_tree/phylo_pdf_grabber.cpp Source File

50

, m_SaveTooltips(

false

)

61  if

(progress !=

NULL

)

84  if

(progress !=

NULL

)

99  int

viewport_x, viewport_y;

124  double

ratiox = vis_rect.

Width

()/full_rect.

Width

();

125  double

ratioy = vis_rect.

Height

()/full_rect.

Height

();

126

viewport_x = (1.0/ratiox)*

double

(viewport.

Width

());

127

viewport_y = (1.0/ratioy)*

double

(viewport.

Height

());

129  float

maxdim =

std::max

(viewport_x, viewport_y);

130  if

(maxdim > 14000.0f) {

131  float

scaler = 14000.0f/maxdim;

132  float

user_unit = 1.0f/scaler;

136

viewport_x *= scaler;

137

viewport_x =

std::max

(viewport_x, 100);

139

viewport_y *= scaler;

140

viewport_y =

std::max

(viewport_y, 100);

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)

CPhyloTreeScheme::TLabelTruncation m_LabelsTruncated

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.

void x_BeginCaptures(int buffer_size)

Called to setup values before image capturing starts.

CGlPane m_PreviousGlPane

We change some rendering options.

CPhyloTreePane & m_Pane

Pane display canvas for the tree we are saving.

bool m_SaveTooltips

If true, tooltips will be generated for the pdf as well.

CPhyloPdfGrabber(CPhyloTreePane &pane)

virtual void SetContext(void)

void RenderPdf(CRef< CPdf > pdf, bool render_tooltips)

IPhyloTreeRender * GetCurrRenderer(void)

void SetupHardcopyRender()

TLabelTruncation & GetLabelTruncation()

void SetLabelTruncation(TLabelTruncation lt)

void SetUserUnit(TPdfUnit userunit)

void SetPagesTall(unsigned int w)

void SetFilename(const string &filename)

void SetMedia(const CMedia &media)

void SetMarginLeft(TPdfUnit h)

void SetOutputFormat(TOutputFormat fmt)

void SetPagesWide(unsigned int w)

void SetPageOrientation(TPageOrientation orient)

void SetMarginTop(TPdfUnit h)

void SetMarginRight(TPdfUnit w)

void SetMarginBottom(TPdfUnit w)

virtual void ImageSaved(int, int)

virtual void SetGLContext()

std::string m_BaseImageName

Image name without its appended number (e.g. img for img1, img2...)

std::string m_Directory

Target directory for saved images.

std::string m_ImageFormat

Image output format (e.g. jpeg, png...)

string m_OutputFormat

Name of output format, e.g. A4, US Letter..

CPhyloTreeScheme & GetScheme(void)

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.

void SetViewport(const TVPRect &R)

TVPRect & GetViewport(void)

TModelRect & GetModelLimitsRect(void)

TModelRect & GetVisibleRect(void)

void SetOutputUnitScaler(TModelUnit u)

Set/get output scaler.

TObjectType * ReleaseOrNull(void)

Release a reference to the object and return a pointer to the object.

void Reset(void)

Reset reference object.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ofstream CNcbiOfstream

Portable alias for ofstream.

Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4