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/glrenderpdf_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/print/glrenderpdf.cpp Source File

73  LOG_POST

(

Error

<<

"Vertex*() called without first calling CGlRender::Begin"

);

127  LOG_POST

(

"BeginText() called without first calling CGlRenderPdf::EndText()"

);

142  LOG_POST

(

"BeginText() called without first calling CGlRenderPdf::EndText()"

);

158  LOG_POST

(

"EndText() called without first calling CGlRenderPdf::BeginText()"

);

172  LOG_POST

(

"Unable to write text - must call BeginText() first"

);

180

GLdouble modelview_matrix[16];

181

GLdouble projection_matrix[16];

189  gluProjectX

(GLdouble(x), GLdouble(y), GLdouble(0.0),

190

modelview_matrix, projection_matrix,

m_Viewport

,

192

posp.

X

() = float(px);

193

posp.

Y

() = float(py);

209  LOG_POST

(

"Unable to write text - must call BeginText() first"

);

217  string

truncated_text =

text

;

228

truncated_text, align,

trunc

, rotate_degrees);

234

mat(1,0), mat(1,1), mat(1,3),

235

mat(2,0), mat(2,1), mat(2,3));

CGlModel2D Base class for a model set up for rendering purposes.

CGlVboNode A rendering node that holds a vertex buffer object.

void PushGraphicsState()

gs

void SetClipBox(int x, int y, int width, int height)

void SetFillColor(const CRgbaColor &c)

rg

CRef< CPdfFontHandler > GetFontHandler()

virtual void EndContent()

void SetIsGreyscale(bool b)

virtual TPdfObjectRef GetCurrentContent()

void PrintText(CRef< CPdfFontHandler > font_handler, EFontFace face, float font_size, CVect2< float > &p, const char *txt, const CRgbaColor &c)

Write a string of text at the specified position (in screen coords).

virtual TPdfObjectRef BeginContent(EContentType t)

void PrintBuffer(CGlVboNode *node, const TVPRect &viewport, CRgbaGradColorTable *color_table=NULL)

Checks the buffer type and prints accodingly tris, points or lines.

const CMedia & GetMedia(void) const

bool GetGouraudShadingDisabled() const

CGlVboNode m_RenderNode

vertex buffer node for rendering all Begin()/End() renders

CRef< CGlState > m_State

state used by all nodes

CRgbaColor m_TextColor

color and alpha for text only (other GL options do not apply to text)

GLenum m_CurrentMode

rendering mode from Begin()

const CGlTextureFont * m_CurrentFont

text parameters

GLint m_Viewport[4]

current projection set by Viewport()

vector< CVect2< float > > m_TexCoord2DBuffer1

vector< CRgbaColor > m_ColorBuffer

void x_SyncAttribs(vector< CRgbaColor > &colors)

virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height)

vector< CVect3< float > > m_VertexBuffer

virtual CMatrix4< float > GetModelViewMatrix() const

virtual CMatrix4< float > GetProjectionMatrix() const

class CRgbaColor provides a simple abstraction for managing colors.

virtual CPrintOptions & GetOptions()

#define LOG_POST(message)

This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...

void Error(CExceptionArgs_Base &args)

GLenum GetShadeModel() const

int gluProjectX(GLdouble objx, GLdouble objy, GLdouble objz, const GLdouble modelMatrix[16], const GLdouble projMatrix[16], const GLint viewport[4], GLdouble *winx, GLdouble *winy, GLdouble *winz)

GLenum GetPolygonMode() const

virtual void RenderPDF(CGlPane &pane, CRef< CPdf > &pdf)

Draw to PDF file (base funcions in cpdf::PrintModel)

CMatrix4< double > GetTextXform(TModelUnit x, TModelUnit y, TModelUnit width, TModelUnit height, string &text, TAlign align=eAlign_Center, ETruncate trunc=eTruncate_Ellipsis, TModelUnit rotate_degrees=0.0f) const

Get the transformation that will be applied to the text to write it within the box (x,...

EPdfShadeStyle GetPdfShadeStyle() const

void BeginText() const

WriteText interface The WriteText functions produce the same results as TextOut but they are more eff...

EFontFace GetFontFace() const

CRgbaColor GetColor() const

void EndText() const

Pops matrices and attributes after writing text.

EFontFace

Set of pre-defined fonts for which we know we have valid font files.

unsigned int GetFontSize() const

virtual void EndText()

Pops matrices and attributes after writing text.

virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height)

virtual void Vertex3f(GLfloat x, GLfloat y, GLfloat z)

Add a vertex and decompose quads into tris if needed.

virtual void WriteText(TModelUnit x, TModelUnit y, const char *text, TModelUnit rotate_degrees=0.0)

Write text at specified model coords.

virtual void SetIsGreyscale(bool b)

virtual void x_RenderBuffer(CGlVboNode *node)

Send the current buffer to the pdf library for rendering.

void GetScreenSize(int &width, int &height) const

PDF only - get size of pdf 'window' (pagesize)

virtual bool IsSimplified() const

virtual void BeginText(const CGlTextureFont *font, const CRgbaColor &color)

Set OpenGL state needed for writing text (call before DrawText)

virtual void Render(CGlPane &pane, CGlModel2D *model)

Specialized for models - which are just collections of buffers.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

unsigned int

A callback function used to compare two keys in a database.

static void text(MDB_val *v)


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