bWidgets
Core widget toolkit designed for Blender
bWidgets::bwPolygon Class Reference

#include <bwPolygon.h>

+ Collaboration diagram for bWidgets::bwPolygon:

Public Member Functions

 bwPolygon ()=default
 
 bwPolygon (const bwPolygon &poly)=default
 
 bwPolygon (const bwPointVec &vertices)
 
 bwPolygon (const unsigned int reserve_vertex_count)
 
void addVertex (class bwPoint vertex)
 
void addVertex (const float x, const float y)
 
void addVertex (const int x, const int y)
 
void reserve (const unsigned int count)
 
auto getVertices () const -> const bwPointVec &
 
auto operator[] (const unsigned int index) -> bwPoint &
 
auto isDrawable () const -> bool
 

Protected Attributes

bwPointVec vertices {}
 
size_t vert_count {0}
 

Constructor & Destructor Documentation

◆ bwPolygon() [1/4]

bWidgets::bwPolygon::bwPolygon ( )
default

◆ bwPolygon() [2/4]

bWidgets::bwPolygon::bwPolygon ( const bwPolygon poly)
default

◆ bwPolygon() [3/4]

bWidgets::bwPolygon::bwPolygon ( const bwPointVec vertices)

◆ bwPolygon() [4/4]

bWidgets::bwPolygon::bwPolygon ( const unsigned int  reserve_vertex_count)
explicit

Member Function Documentation

◆ addVertex() [1/3]

void bWidgets::bwPolygon::addVertex ( class bwPoint  vertex)

◆ addVertex() [2/3]

void bWidgets::bwPolygon::addVertex ( const float  x,
const float  y 
)

◆ addVertex() [3/3]

void bWidgets::bwPolygon::addVertex ( const int  x,
const int  y 
)

◆ getVertices()

auto bWidgets::bwPolygon::getVertices ( ) const -> const bwPointVec&

◆ isDrawable()

auto bWidgets::bwPolygon::isDrawable ( ) const -> bool

◆ operator[]()

auto bWidgets::bwPolygon::operator[] ( const unsigned int  index) -> bwPoint&

◆ reserve()

void bWidgets::bwPolygon::reserve ( const unsigned int  count)

Member Data Documentation

◆ vert_count

size_t bWidgets::bwPolygon::vert_count {0}
protected

◆ vertices

bwPointVec bWidgets::bwPolygon::vertices {}
protected

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