Same as above, but get color from m_RenderNode.m_State.
Reimplemented from CRenderCommon.
Definition at line 139 of file glrenderpdf.cpp.
References CPdf::BeginContent(), CPdf::ePdfText, CGlState::GetColor(), CGlRenderNode::GetState(), LOG_POST, CRenderCommon::m_CurrentFont, CGlRenderPdf::m_Pdf, CRenderCommon::m_RenderNode, CRenderCommon::m_TextColor, CRenderCommon::m_Viewport, NULL, CPdfObject::PushGraphicsState(), and CPdfObject::SetClipBox().
◆ BeginText() [2/4] ◆ BeginText() [3/4]Set OpenGL state needed for writing text (call before DrawText)
Reimplemented from CRenderCommon.
Definition at line 123 of file glrenderpdf.cpp.
References CPdf::BeginContent(), color, CPdf::ePdfText, LOG_POST, CRenderCommon::m_CurrentFont, CGlRenderPdf::m_Pdf, CRenderCommon::m_TextColor, CRenderCommon::m_Viewport, NULL, CPdfObject::PushGraphicsState(), and CPdfObject::SetClipBox().
◆ BeginText() [4/4] ◆ CGlRenderPdf() ◆ EndClippingRect() void CSVGRenderer::EndClippingRect ( ) virtual ◆ EndText() [1/2] void CGlRenderPdf::EndText ( ) virtual ◆ EndText() [2/2] void CSVGRenderer::EndText ( ) virtual ◆ Finalize() void CSVGRenderer::Finalize ( void ) virtual ◆ GetApi() [1/2] ◆ GetApi() [2/2] ◆ GetPdf() ◆ GetScreenSize() void CGlRenderPdf::GetScreenSize ( int & width, int & height ) const ◆ Hint() [1/2] virtual void CGlRenderPdf::Hint ( GLenum , GLenum ) inlinevirtual ◆ Hint() [2/2] virtual void CSVGRenderer::Hint ( GLenum , GLenum ) inlinevirtual ◆ Initialize() ◆ IsPrinterFriendly() [1/2] virtual bool CGlRenderPdf::IsPrinterFriendly ( ) const inlinevirtual ◆ IsPrinterFriendly() [2/2] virtual bool CSVGRenderer::IsPrinterFriendly ( ) const inlinevirtual ◆ IsSimplified() [1/2] bool CGlRenderPdf::IsSimplified ( ) const virtual ◆ IsSimplified() [2/2] virtual bool CSVGRenderer::IsSimplified ( ) const inlinevirtual ◆ Ortho() void CSVGRenderer::Ortho ( GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble nearVal, GLdouble farVal ) virtual ◆ Render() ◆ SetIsGreyscale() [1/2] void CGlRenderPdf::SetIsGreyscale ( bool b ) virtual ◆ SetIsGreyscale() [2/2] virtual void CSVGRenderer::SetIsGreyscale ( bool b ) inlinevirtual ◆ SetPdf() void CGlRenderPdf::SetPdf ( CRef< CPdf > & pdf ) inline ◆ SetSimplified() void CSVGRenderer::SetSimplified ( bool simplified =true
) inline ◆ Vertex3f() void CGlRenderPdf::Vertex3f ( GLfloat x, GLfloat y, GLfloat z ) virtual
Add a vertex and decompose quads into tris if needed.
Reimplemented from CRenderCommon.
Definition at line 70 of file glrenderpdf.cpp.
References IGlState::eGouraud, Error(), CGlState::GetPdfShadeStyle(), CGlState::GetPolygonMode(), CGlState::GetShadeModel(), LOG_POST, CRenderCommon::m_ColorBuffer, CRenderCommon::m_CurrentMode, CRenderCommon::m_State, CRenderCommon::m_TexCoord2DBuffer1, CRenderCommon::m_VertexBuffer, and CRenderCommon::x_SyncAttribs().
◆ Viewport() [1/2] void CGlRenderPdf::Viewport ( GLint x, GLint y, GLsizei width, GLsizei height ) virtual ◆ Viewport() [2/2] void CSVGRenderer::Viewport ( GLint x, GLint y, GLsizei width, GLsizei height ) virtual ◆ Write() ◆ WriteText() [1/4]Write text at specified model coords.
Reimplemented from CRenderCommon.
Definition at line 167 of file glrenderpdf.cpp.
References CGlTextureFont::GetFontFace(), CPdf::GetFontHandler(), CGlTextureFont::GetFontSize(), CRenderVector::GetModelViewMatrix(), CRenderVector::GetProjectionMatrix(), gluProjectX(), LOG_POST, CRenderCommon::m_CurrentFont, CGlRenderPdf::m_Pdf, CRenderCommon::m_TextColor, CRenderCommon::m_Viewport, NULL, CPdf::PrintText(), text(), CVect2< T >::X(), and CVect2< T >::Y().
◆ WriteText() [2/4]Write text at specified model coords.
Reimplemented from CRenderCommon.
Definition at line 129 of file svg_renderer.cpp.
References _ASSERT, Error(), LOG_POST, CSVGRenderer::m_ClippingId, CRenderCommon::m_CurrentFont, CSVGRenderer::m_Height, CSVGRenderer::m_SVG, CRenderCommon::m_TextColor, NULL, origin, CGlTextureFont::ProjectVertex(), text(), and NStr::XmlEncode().
◆ WriteText() [3/4]Write text at specified model coords inside box defined by (x,y,width,height) with specified alignment, truncation and rotation.
Reimplemented from CRenderCommon.
Definition at line 201 of file glrenderpdf.cpp.
References CGlTextureFont::BeginText(), CGlTextureFont::EndText(), CPdf::GetCurrentContent(), CGlTextureFont::GetFontFace(), CPdf::GetFontHandler(), CGlTextureFont::GetFontSize(), CGlTextureFont::GetTextXform(), LOG_POST, CRenderCommon::m_CurrentFont, CGlRenderPdf::m_Pdf, CRenderCommon::m_TextColor, CRenderCommon::m_Viewport, NULL, CPdf::PrintText(), CPdfObject::SetFillColor(), text(), and trunc.
◆ WriteText() [4/4]Write text at specified model coords inside box defined by (x,y,width,height) with specified alignment, truncation and rotation.
Reimplemented from CRenderCommon.
Definition at line 147 of file svg_renderer.cpp.
References _ASSERT, IGlFont::eAlign_HCenter, IGlFont::eAlign_Right, IGlFont::eAlign_VCenter, Error(), IGlFont::eTruncate_None, LOG_POST, CSVGRenderer::m_ClippingId, CRenderCommon::m_CurrentFont, CSVGRenderer::m_Height, CSVGRenderer::m_SVG, CRenderCommon::m_TextColor, NULL, origin, CGlTextureFont::ProjectVertex(), text(), CGlTextureFont::TextHeight(), trunc, CGlTextureFont::Truncate(), and NStr::XmlEncode().
◆ x_ClippingRect() string CSVGRenderer::x_ClippingRect ( GLint x, GLint y, GLsizei width, GLsizei height ) protected ◆ x_GetGradientColors() ◆ x_GetLineStyle() void CSVGRenderer::x_GetLineStyle ( CGlVboNode & node, GLushort & pattern, GLint & factor, double & width, svg::Stroke::ELineCapStyle & lcap, svg::Stroke::ELineJoinStyle & ljoin ) inlineprotectedDefinition at line 701 of file svg_renderer.cpp.
References CGlState::GetLineCapStyle(), CGlState::GetLineJoinStyle(), CGlState::GetLineStipple(), CGlState::GetLineWidth(), CGlRenderNode::GetState(), CGlState::IsEnabled(), CGlState::LineCapStyleSet(), CGlState::LineJoinStyleSet(), CGlState::LineStippleSet(), and CGlState::LineWidthSet().
Referenced by CSVGRenderer::x_PrintLineBuffer(), CSVGRenderer::x_PrintQuadBuffer(), and CSVGRenderer::x_PrintTriBuffer().
◆ x_LinearGradient() ◆ x_PolygonStippleToPattern()Definition at line 561 of file svg_renderer.cpp.
References CStringUtil::base64Encode(), color, CImage::eAlpha, CImage::eBlue, CImage::eGreen, map_checker< Container >::end(), CImageIO::ePng, CImage::eRed, map_checker< Container >::find(), CRgbaColor::GetAlphaUC(), CRgbaColor::GetBlueUC(), CRgbaColor::GetGreenUC(), CRgbaColor::GetRedUC(), i, CSVGRenderer::m_PolygonStipplePatterns, CSVGRenderer::m_SVG, md5(), NStr::NumericToString(), map_checker< Container >::size(), CRgbaColor::ToString(), and CImageIO::WriteImage().
Referenced by CSVGRenderer::x_PrintTriBuffer().
◆ x_PrintLineBuffer() void CSVGRenderer::x_PrintLineBuffer ( CGlVboNode & node ) protectedDefinition at line 232 of file svg_renderer.cpp.
References _ASSERT, colors, CGlVboNode::Get2DVertexBuffer(), CGlVboNode::GetColors(), CGlVboNode::GetDefaultColor(), CGlVboNode::GetDrawMode(), i, CSVGRenderer::m_ClippingId, CSVGRenderer::m_IsGreyscale, CSVGRenderer::m_SVG, CSVGRenderer::x_GetLineStyle(), and CSVGRenderer::x_ProjectVertices().
Referenced by CSVGRenderer::x_RenderBuffer().
◆ x_PrintPointBuffer() void CSVGRenderer::x_PrintPointBuffer ( CGlVboNode & node ) protectedDefinition at line 278 of file svg_renderer.cpp.
References _ASSERT, colors, CGlVboNode::Get2DVertexBuffer(), CGlVboNode::GetColors(), CGlVboNode::GetDefaultColor(), CGlVboNode::GetDrawMode(), CGlState::GetPointSize(), CGlRenderNode::GetState(), i, CSVGRenderer::m_ClippingId, CSVGRenderer::m_IsGreyscale, CSVGRenderer::m_SVG, CGlState::PointSizeSet(), and CSVGRenderer::x_ProjectVertices().
Referenced by CSVGRenderer::x_RenderBuffer().
◆ x_PrintQuadBuffer() void CSVGRenderer::x_PrintQuadBuffer ( CGlVboNode & node ) protectedDefinition at line 477 of file svg_renderer.cpp.
References _ASSERT, colors, CGlVboNode::Get2DVertexBuffer(), CGlVboNode::GetColors(), CGlVboNode::GetDefaultColor(), CGlState::GetPolygonMode(), CGlRenderNode::GetState(), i, CSVGRenderer::m_ClippingId, CSVGRenderer::m_IsGreyscale, CSVGRenderer::m_SVG, CSVGRenderer::x_GetLineStyle(), and CSVGRenderer::x_ProjectVertices().
Referenced by CSVGRenderer::x_RenderBuffer().
◆ x_PrintTriBuffer() void CSVGRenderer::x_PrintTriBuffer ( CGlVboNode & node ) protectedDefinition at line 308 of file svg_renderer.cpp.
References _ASSERT, CTriPerimeter::AddTri(), CTriPerimeter::Clear(), colors, CGlVboNode::Get2DVertexBuffer(), CGlVboNode::GetColors(), CGlVboNode::GetDefaultColor(), CGlVboNode::GetDrawMode(), CTriPerimeter::GetPerimiter(), CGlState::GetPolygonMode(), CGlState::GetPolygonStipple(), CGlState::GetShadeModel(), CGlRenderNode::GetState(), i, CGlState::IsEnabled(), CSVGRenderer::m_ClippingId, CSVGRenderer::m_IsGreyscale, CSVGRenderer::m_SVG, CGlState::PolygonStippleSet(), CSVGRenderer::x_GetGradientColors(), CSVGRenderer::x_GetLineStyle(), CSVGRenderer::x_LinearGradient(), CSVGRenderer::x_PolygonStippleToPattern(), and CSVGRenderer::x_ProjectVertices().
Referenced by CSVGRenderer::x_RenderBuffer().
◆ x_ProjectVertex() void CSVGRenderer::x_ProjectVertex ( CVect2< float > & vertex ) inlineprotected ◆ x_ProjectVertices() void CSVGRenderer::x_ProjectVertices ( vector< CVect2< float >> & vertices ) inlineprotected ◆ x_RenderBuffer() [1/2] void CGlRenderPdf::x_RenderBuffer ( CGlVboNode * node ) protectedvirtual ◆ x_RenderBuffer() [2/2] void CSVGRenderer::x_RenderBuffer ( CGlVboNode * node ) protectedvirtualReimplemented from CRenderCommon.
Definition at line 201 of file svg_renderer.cpp.
References CMatrix4< T >::GetData(), CGlVboNode::GetDrawMode(), CGlRenderNode::GetPositions(), CGlRenderNode::GetTransformedPosition(), CRenderVector::LoadMatrixf(), CRenderVector::MatrixMode(), CRenderVector::PopMatrix(), CRenderVector::PushMatrix(), ncbi::grid::netcache::search::fields::size, CMatrix4< T >::Transpose(), CSVGRenderer::x_PrintLineBuffer(), CSVGRenderer::x_PrintPointBuffer(), CSVGRenderer::x_PrintQuadBuffer(), and CSVGRenderer::x_PrintTriBuffer().
◆ ~CGlRenderPdf() virtual CGlRenderPdf::~CGlRenderPdf ( ) inlinevirtualDefinition at line 77 of file glrenderpdf.hpp.
◆ m_ClippingId ◆ m_ClippingRects ◆ m_ClippingStack ◆ m_Height int CSVGRenderer::m_Height private ◆ m_IsGreyscale ◆ m_LinearGradients ◆ m_Pdf ◆ m_PolygonStipplePatterns ◆ m_Simplified ◆ m_SVG unique_ptr<svg::SVG> CSVGRenderer::m_SVG privateDefinition at line 122 of file svg_renderer.hpp.
Referenced by CSVGRenderer::Finalize(), CSVGRenderer::Initialize(), CSVGRenderer::Write(), CSVGRenderer::WriteText(), CSVGRenderer::x_ClippingRect(), CSVGRenderer::x_LinearGradient(), CSVGRenderer::x_PolygonStippleToPattern(), CSVGRenderer::x_PrintLineBuffer(), CSVGRenderer::x_PrintPointBuffer(), CSVGRenderer::x_PrintQuadBuffer(), and CSVGRenderer::x_PrintTriBuffer().
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