Blender V5.0
Freestyle::Geometry::Polygon< Point > Class Template Reference

#include <Polygon.h>

Public Member Functions

 Polygon ()
 Polygon (const vector< Point > &vertices)
 Polygon (const Polygon< Point > &poly)
virtual ~Polygon ()
const vector< Point > & getVertices () const
void getBBox (Point &min, Point &max) const
Point getBBoxCenter ()
Point getCenter ()
uint getId () const
void setVertices (const vector< Point > &vertices)
void setId (uint id)
void computeBBox ()

Public Attributes

void * userdata
void * userdata2

Protected Attributes

vector< Point > _vertices
Point _min
Point _max
uint _id

Detailed Description

template<class Point>
class Freestyle::Geometry::Polygon< Point >

Definition at line 25 of file Polygon.h.

Constructor & Destructor Documentation

◆ Polygon() [1/3]

template<class Point>
Freestyle::Geometry::Polygon< Point >::Polygon ( )
inline

Definition at line 27 of file Polygon.h.

References _id, userdata, and userdata2.

Referenced by Polygon().

◆ Polygon() [2/3]

template<class Point>
Freestyle::Geometry::Polygon< Point >::Polygon ( const vector< Point > & vertices)
inline

Definition at line 34 of file Polygon.h.

References _id, _vertices, computeBBox(), userdata, and userdata2.

◆ Polygon() [3/3]

template<class Point>
Freestyle::Geometry::Polygon< Point >::Polygon ( const Polygon< Point > & poly)
inline

Definition at line 43 of file Polygon.h.

References _id, _max, _min, _vertices, getBBox(), getId(), getVertices(), Polygon(), userdata, and userdata2.

◆ ~Polygon()

template<class Point>
virtual Freestyle::Geometry::Polygon< Point >::~Polygon ( )
inlinevirtual

Definition at line 60 of file Polygon.h.

Member Function Documentation

◆ computeBBox()

template<class Point>
void Freestyle::Geometry::Polygon< Point >::computeBBox ( )
inline

Definition at line 124 of file Polygon.h.

References _max, _min, _vertices, and i.

Referenced by Polygon(), and setVertices().

◆ getBBox()

template<class Point>
void Freestyle::Geometry::Polygon< Point >::getBBox ( Point & min,
Point & max ) const
inline

◆ getBBoxCenter()

template<class Point>
Point Freestyle::Geometry::Polygon< Point >::getBBoxCenter ( )
inline

Definition at line 77 of file Polygon.h.

References _max, _min, and result.

◆ getCenter()

template<class Point>
Point Freestyle::Geometry::Polygon< Point >::getCenter ( )
inline

Definition at line 84 of file Polygon.h.

References _vertices, and result.

◆ getId()

template<class Point>
uint Freestyle::Geometry::Polygon< Point >::getId ( ) const
inline

Definition at line 94 of file Polygon.h.

References _id.

Referenced by Polygon().

◆ getVertices()

◆ setId()

template<class Point>
void Freestyle::Geometry::Polygon< Point >::setId ( uint id)
inline

Definition at line 115 of file Polygon.h.

References _id.

Referenced by Freestyle::WFillGrid::fillGrid(), and Freestyle::WSFillGrid::fillGrid().

◆ setVertices()

template<class Point>
void Freestyle::Geometry::Polygon< Point >::setVertices ( const vector< Point > & vertices)
inline

Definition at line 103 of file Polygon.h.

References _vertices, and computeBBox().

Member Data Documentation

◆ _id

template<class Point>
uint Freestyle::Geometry::Polygon< Point >::_id
protected

Definition at line 153 of file Polygon.h.

Referenced by getId(), Polygon(), Polygon(), Polygon(), and setId().

◆ _max

template<class Point>
Point Freestyle::Geometry::Polygon< Point >::_max
protected

Definition at line 152 of file Polygon.h.

Referenced by computeBBox(), getBBox(), getBBoxCenter(), and Polygon().

◆ _min

template<class Point>
Point Freestyle::Geometry::Polygon< Point >::_min
protected

Definition at line 151 of file Polygon.h.

Referenced by computeBBox(), getBBox(), getBBoxCenter(), and Polygon().

◆ _vertices

template<class Point>
vector<Point> Freestyle::Geometry::Polygon< Point >::_vertices
protected

Definition at line 150 of file Polygon.h.

Referenced by computeBBox(), getCenter(), getVertices(), Polygon(), Polygon(), and setVertices().

◆ userdata

◆ userdata2

template<class Point>
void* Freestyle::Geometry::Polygon< Point >::userdata2

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