#include <Voronoi.h>
Classes | |
class | diagram_type |
Public Types | |
typedef std::size_t | color_type |
typedef double | coordinate_type |
typedef boost::polygon::point_data< coordinate_type > | point_type |
typedef boost::polygon::segment_data< coordinate_type > | segment_type |
typedef boost::polygon::voronoi_vertex< double > | vertex_type |
typedef boost::polygon::voronoi_diagram< double > | voronoi_diagram_type |
Public Member Functions | |
void | addPoint (const point_type &p) |
void | addSegment (const segment_type &p) |
void | colorColinear (color_type color, double degree) |
void | colorExterior (color_type color) |
void | colorTwins (color_type color) |
void | construct () |
template<typename T > | |
T * | create (int index) |
double | getScale () const |
long | numCells () const |
long | numEdges () const |
long | numPoints () const |
long | numSegments () const |
long | numVertices () const |
void | resetColor (color_type color) |
void | setScale (double scale) |
Voronoi () | |
~Voronoi () | |
Public Member Functions inherited from Base::BaseClass | |
BaseClass () | |
Construction. More... | |
BaseClass (const BaseClass &)=default | |
virtual PyObject * | getPyObject () |
This method returns the Python wrapper for a C++ object. More... | |
virtual Type | getTypeId () const |
bool | isDerivedFrom (const Type type) const |
BaseClass & | operator= (const BaseClass &)=default |
virtual void | setPyObject (PyObject *) |
virtual | ~BaseClass () |
Destruction. More... | |
Static Public Attributes | |
static const color_type | ColorMask = PATH_VORONOI_COLOR_MASK |
static const int | InvalidIndex = INT_MAX |
Friends | |
class | VoronoiPy |
Additional Inherited Members | |
Static Public Member Functions inherited from Base::BaseClass | |
static void * | create () |
static Type | getClassTypeId () |
static void | init () |
Static Protected Member Functions inherited from Base::BaseClass | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
typedef std::size_t Path::Voronoi::color_type |
typedef double Path::Voronoi::coordinate_type |
typedef boost::polygon::point_data<coordinate_type> Path::Voronoi::point_type |
typedef boost::polygon::segment_data<coordinate_type> Path::Voronoi::segment_type |
typedef boost::polygon::voronoi_vertex<double> Path::Voronoi::vertex_type |
typedef boost::polygon::voronoi_diagram<double> Path::Voronoi::voronoi_diagram_type |
Voronoi::Voronoi | ( | ) |
Voronoi::~Voronoi | ( | ) |
void Voronoi::addPoint | ( | const point_type & | p | ) |
void Voronoi::addSegment | ( | const segment_type & | p | ) |
void Voronoi::colorColinear | ( | Voronoi::color_type | color, |
double | degree | ||
) |
References DraftVecUtils::angle().
void Voronoi::colorExterior | ( | Voronoi::color_type | color | ) |
References colorExterior().
Referenced by colorExterior().
void Voronoi::colorTwins | ( | Voronoi::color_type | color | ) |
void Voronoi::construct | ( | ) |
T * Path::Voronoi::create | ( | int | index | ) |
Referenced by draftguitools.gui_labels.Label::action().
double Path::Voronoi::getScale | ( | ) | const |
long Voronoi::numCells | ( | ) | const |
long Voronoi::numEdges | ( | ) | const |
long Voronoi::numPoints | ( | ) | const |
long Voronoi::numSegments | ( | ) | const |
long Voronoi::numVertices | ( | ) | const |
void Voronoi::resetColor | ( | Voronoi::color_type | color | ) |
void Path::Voronoi::setScale | ( | double | scale | ) |
|
friend |
|
static |
|
static |