LibreOffice Module vcl (master)  1
Public Member Functions | Private Attributes | List of all members
vcl::LineBuilder Class Reference

#include <LineRenderUtils.hxx>

Public Member Functions

 LineBuilder (std::vector< Vertex > &rVertices, std::vector< GLuint > &rIndices, Color nColor, GLfloat fTransparency, GLfloat fLineWidth, bool bUseAA)
 
void appendLineSegment (const glm::vec2 &rPoint1, const glm::vec2 &rNormal1, GLfloat aExtrusion1, const glm::vec2 &rPoint2, const glm::vec2 &rNormal2, GLfloat aExtrusion2)
 
void appendLine (const glm::vec2 &rPoint1, const glm::vec2 &rPoint2)
 
void appendAndConnectLinePoint (const glm::vec2 &rPoint, const glm::vec2 &aNormal, GLfloat aExtrusion)
 
void appendMiterJoint (glm::vec2 const &point, const glm::vec2 &prevLineVector, glm::vec2 const &nextLineVector)
 
void appendBevelJoint (glm::vec2 const &point, const glm::vec2 &prevLineVector, const glm::vec2 &nextLineVector)
 
void appendRoundJoint (glm::vec2 const &point, const glm::vec2 &prevLineVector, const glm::vec2 &nextLineVector)
 
void appendRoundLineCapVertices (const glm::vec2 &rPoint1, const glm::vec2 &rPoint2)
 
void appendSquareLineCapVertices (const glm::vec2 &rPoint1, const glm::vec2 &rPoint2)
 

Private Attributes

std::vector< Vertex > & mrVertices
 
std::vector< GLuint > & mrIndices
 
GLubyte mR
 
GLubyte mG
 
GLubyte mB
 
GLubyte mA
 
GLfloat const mfLineWidth
 
GLfloat const mfLineWidthAndAA
 
size_t const mnInitialIndexSize
 
bool mbIncomplete
 

Detailed Description

Definition at line 18 of file LineRenderUtils.hxx.

Constructor & Destructor Documentation

vcl::LineBuilder::LineBuilder ( std::vector< Vertex > &  rVertices,
std::vector< GLuint > &  rIndices,
Color  nColor,
GLfloat  fTransparency,
GLfloat  fLineWidth,
bool  bUseAA 
)

Member Function Documentation

void vcl::LineBuilder::appendAndConnectLinePoint ( const glm::vec2 &  rPoint,
const glm::vec2 &  aNormal,
GLfloat  aExtrusion 
)
void vcl::LineBuilder::appendBevelJoint ( glm::vec2 const &  point,
const glm::vec2 &  prevLineVector,
const glm::vec2 &  nextLineVector 
)
void vcl::LineBuilder::appendLine ( const glm::vec2 &  rPoint1,
const glm::vec2 &  rPoint2 
)
void vcl::LineBuilder::appendLineSegment ( const glm::vec2 &  rPoint1,
const glm::vec2 &  rNormal1,
GLfloat  aExtrusion1,
const glm::vec2 &  rPoint2,
const glm::vec2 &  rNormal2,
GLfloat  aExtrusion2 
)
void vcl::LineBuilder::appendMiterJoint ( glm::vec2 const &  point,
const glm::vec2 &  prevLineVector,
glm::vec2 const &  nextLineVector 
)
void vcl::LineBuilder::appendRoundJoint ( glm::vec2 const &  point,
const glm::vec2 &  prevLineVector,
const glm::vec2 &  nextLineVector 
)
void vcl::LineBuilder::appendRoundLineCapVertices ( const glm::vec2 &  rPoint1,
const glm::vec2 &  rPoint2 
)
void vcl::LineBuilder::appendSquareLineCapVertices ( const glm::vec2 &  rPoint1,
const glm::vec2 &  rPoint2 
)

Member Data Documentation

GLubyte vcl::LineBuilder::mA
private

Definition at line 23 of file LineRenderUtils.hxx.

GLubyte vcl::LineBuilder::mB
private

Definition at line 23 of file LineRenderUtils.hxx.

bool vcl::LineBuilder::mbIncomplete
private

Definition at line 27 of file LineRenderUtils.hxx.

GLfloat const vcl::LineBuilder::mfLineWidth
private

Definition at line 24 of file LineRenderUtils.hxx.

GLfloat const vcl::LineBuilder::mfLineWidthAndAA
private

Definition at line 25 of file LineRenderUtils.hxx.

GLubyte vcl::LineBuilder::mG
private

Definition at line 23 of file LineRenderUtils.hxx.

size_t const vcl::LineBuilder::mnInitialIndexSize
private

Definition at line 26 of file LineRenderUtils.hxx.

GLubyte vcl::LineBuilder::mR
private

Definition at line 23 of file LineRenderUtils.hxx.

std::vector<GLuint>& vcl::LineBuilder::mrIndices
private

Definition at line 22 of file LineRenderUtils.hxx.

std::vector<Vertex>& vcl::LineBuilder::mrVertices
private

Definition at line 21 of file LineRenderUtils.hxx.


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