iridescence
Loading...
Searching...
No Matches
glk::ThinLines Class Reference

A class to draw a set of GL_LINES. More...

#include <thin_lines.hpp>

Inheritance diagram for glk::ThinLines:
Collaboration diagram for glk::ThinLines:

Public Member Functions

 ThinLines (const float *vertices, int num_vertices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const float *vertices, const float *colors, int num_vertices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const float *vertices, const float *colors, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const float *vertices, const float *colors, const float *cmap, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const Eigen::Vector3f *vertices, int num_vertices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const Eigen::Vector3f *vertices, const Eigen::Vector4f *colors, int num_vertices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const Eigen::Vector3f *vertices, const Eigen::Vector4f *colors, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const Eigen::Vector3f *vertices, const float *cmap, int num_vertices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const Eigen::Vector3f *vertices, const double *cmap, int num_vertices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const Eigen::Vector3f *vertices, const float *cmap, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip=false, float line_width=1.0f)
 ThinLines (const Eigen::Vector3f *vertices, const double *cmap, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1>
 ThinLines (const Eigen::Matrix< T1, D1, 1 > *vertices, int num_vertices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1>
 ThinLines (const Eigen::Matrix< T1, D1, 1 > *vertices, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename T2, int D2>
 ThinLines (const Eigen::Matrix< T1, D1, 1 > *vertices, const Eigen::Matrix< T2, D2, 1 > *colors, int num_vertices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename T2, int D2>
 ThinLines (const Eigen::Matrix< T1, D1, 1 > *vertices, const Eigen::Matrix< T2, D2, 1 > *colors, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1>
 ThinLines (const Eigen::Matrix< T1, D1, 1 > *vertices, const float *cmap, int num_vertices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1>
 ThinLines (const Eigen::Matrix< T1, D1, 1 > *vertices, const double *cmap, int num_vertices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1>
 ThinLines (const Eigen::Matrix< T1, D1, 1 > *vertices, const float *cmap, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1>
 ThinLines (const Eigen::Matrix< T1, D1, 1 > *vertices, const double *cmap, int num_vertices, const unsigned int *indices, int num_indices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename Allocator>
 ThinLines (const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > &vertices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename Allocator1, typename T2, int D2, typename Allocator2>
 ThinLines (const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator1 > &vertices, const std::vector< Eigen::Matrix< T2, D2, 1 >, Allocator2 > &colors, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename Allocator>
 ThinLines (const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > &vertices, const std::vector< unsigned int > &indices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename Allocator1, typename T2, int D2, typename Allocator2>
 ThinLines (const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator1 > &vertices, const std::vector< Eigen::Matrix< T2, D2, 1 >, Allocator2 > &colors, const std::vector< unsigned int > &indices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename Allocator>
 ThinLines (const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > &vertices, const std::vector< float > &cmap, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename Allocator>
 ThinLines (const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > &vertices, const std::vector< double > &cmap, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename Allocator>
 ThinLines (const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > &vertices, const std::vector< float > &cmap, const std::vector< unsigned int > &indices, bool line_strip=false, float line_width=1.0f)
template<typename T1, int D1, typename Allocator>
 ThinLines (const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > &vertices, const std::vector< double > &cmap, const std::vector< unsigned int > &indices, bool line_strip=false, float line_width=1.0f)
virtual ~ThinLines () override
virtual void draw (glk::GLSLShader &shader) const override
void set_line_width (float width)
Public Member Functions inherited from glk::Drawable
virtual ~Drawable ()

Additional Inherited Members

Public Types inherited from glk::Drawable
using Ptr = std::shared_ptr<Drawable>
using ConstPtr = std::shared_ptr<const Drawable>

Detailed Description

A class to draw a set of GL_LINES.

Constructor & Destructor Documentation

◆ ThinLines() [1/27]

glk::ThinLines::ThinLines ( const float * vertices,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [2/27]

glk::ThinLines::ThinLines ( const float * vertices,
const float * colors,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [3/27]

glk::ThinLines::ThinLines ( const float * vertices,
const float * colors,
int num_vertices,
const unsigned int * indices,
int num_indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [4/27]

glk::ThinLines::ThinLines ( const float * vertices,
const float * colors,
const float * cmap,
int num_vertices,
const unsigned int * indices,
int num_indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [5/27]

glk::ThinLines::ThinLines ( const Eigen::Vector3f * vertices,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [6/27]

glk::ThinLines::ThinLines ( const Eigen::Vector3f * vertices,
const Eigen::Vector4f * colors,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [7/27]

glk::ThinLines::ThinLines ( const Eigen::Vector3f * vertices,
const Eigen::Vector4f * colors,
int num_vertices,
const unsigned int * indices,
int num_indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [8/27]

glk::ThinLines::ThinLines ( const Eigen::Vector3f * vertices,
const float * cmap,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [9/27]

glk::ThinLines::ThinLines ( const Eigen::Vector3f * vertices,
const double * cmap,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [10/27]

glk::ThinLines::ThinLines ( const Eigen::Vector3f * vertices,
const float * cmap,
int num_vertices,
const unsigned int * indices,
int num_indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [11/27]

glk::ThinLines::ThinLines ( const Eigen::Vector3f * vertices,
const double * cmap,
int num_vertices,
const unsigned int * indices,
int num_indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [12/27]

template<typename T1, int D1>
glk::ThinLines::ThinLines ( const Eigen::Matrix< T1, D1, 1 > * vertices,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [13/27]

template<typename T1, int D1>
glk::ThinLines::ThinLines ( const Eigen::Matrix< T1, D1, 1 > * vertices,
int num_vertices,
const unsigned int * indices,
int num_indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [14/27]

template<typename T1, int D1, typename T2, int D2>
glk::ThinLines::ThinLines ( const Eigen::Matrix< T1, D1, 1 > * vertices,
const Eigen::Matrix< T2, D2, 1 > * colors,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [15/27]

template<typename T1, int D1, typename T2, int D2>
glk::ThinLines::ThinLines ( const Eigen::Matrix< T1, D1, 1 > * vertices,
const Eigen::Matrix< T2, D2, 1 > * colors,
int num_vertices,
const unsigned int * indices,
int num_indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [16/27]

template<typename T1, int D1>
glk::ThinLines::ThinLines ( const Eigen::Matrix< T1, D1, 1 > * vertices,
const float * cmap,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [17/27]

template<typename T1, int D1>
glk::ThinLines::ThinLines ( const Eigen::Matrix< T1, D1, 1 > * vertices,
const double * cmap,
int num_vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [18/27]

template<typename T1, int D1>
glk::ThinLines::ThinLines ( const Eigen::Matrix< T1, D1, 1 > * vertices,
const float * cmap,
int num_vertices,
const unsigned int * indices,
int num_indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [19/27]

template<typename T1, int D1>
glk::ThinLines::ThinLines ( const Eigen::Matrix< T1, D1, 1 > * vertices,
const double * cmap,
int num_vertices,
const unsigned int * indices,
int num_indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [20/27]

template<typename T1, int D1, typename Allocator>
glk::ThinLines::ThinLines ( const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > & vertices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [21/27]

template<typename T1, int D1, typename Allocator1, typename T2, int D2, typename Allocator2>
glk::ThinLines::ThinLines ( const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator1 > & vertices,
const std::vector< Eigen::Matrix< T2, D2, 1 >, Allocator2 > & colors,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [22/27]

template<typename T1, int D1, typename Allocator>
glk::ThinLines::ThinLines ( const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > & vertices,
const std::vector< unsigned int > & indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [23/27]

template<typename T1, int D1, typename Allocator1, typename T2, int D2, typename Allocator2>
glk::ThinLines::ThinLines ( const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator1 > & vertices,
const std::vector< Eigen::Matrix< T2, D2, 1 >, Allocator2 > & colors,
const std::vector< unsigned int > & indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [24/27]

template<typename T1, int D1, typename Allocator>
glk::ThinLines::ThinLines ( const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > & vertices,
const std::vector< float > & cmap,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [25/27]

template<typename T1, int D1, typename Allocator>
glk::ThinLines::ThinLines ( const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > & vertices,
const std::vector< double > & cmap,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [26/27]

template<typename T1, int D1, typename Allocator>
glk::ThinLines::ThinLines ( const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > & vertices,
const std::vector< float > & cmap,
const std::vector< unsigned int > & indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ThinLines() [27/27]

template<typename T1, int D1, typename Allocator>
glk::ThinLines::ThinLines ( const std::vector< Eigen::Matrix< T1, D1, 1 >, Allocator > & vertices,
const std::vector< double > & cmap,
const std::vector< unsigned int > & indices,
bool line_strip = false,
float line_width = 1.0f )

◆ ~ThinLines()

virtual glk::ThinLines::~ThinLines ( )
overridevirtual

Member Function Documentation

◆ draw()

virtual void glk::ThinLines::draw ( glk::GLSLShader & shader) const
overridevirtual

Reimplemented from glk::Drawable.

◆ set_line_width()

void glk::ThinLines::set_line_width ( float width)
inline

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