Blender  V3.3
Public Member Functions | Public Attributes | Protected Attributes | List of all members
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 ()
 
unsigned getId () const
 
void setVertices (const vector< Point > &vertices)
 
void setId (unsigned id)
 
void computeBBox ()
 

Public Attributes

voiduserdata
 
voiduserdata2
 

Protected Attributes

vector< Point > _vertices
 
Point _min
 
Point _max
 
unsigned _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.

◆ Polygon() [2/3]

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

Definition at line 34 of file Polygon.h.

◆ Polygon() [3/3]

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

◆ ~Polygon()

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

Definition at line 59 of file Polygon.h.

Member Function Documentation

◆ computeBBox()

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

Definition at line 125 of file Polygon.h.

◆ 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 78 of file Polygon.h.

References result.

◆ getCenter()

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

Definition at line 85 of file Polygon.h.

References result.

◆ getId()

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

◆ getVertices()

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

◆ setId()

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

Definition at line 116 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 104 of file Polygon.h.

Member Data Documentation

◆ _id

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

Definition at line 154 of file Polygon.h.

◆ _max

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

Definition at line 153 of file Polygon.h.

◆ _min

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

Definition at line 152 of file Polygon.h.

◆ _vertices

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

Definition at line 151 of file Polygon.h.

◆ userdata

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

◆ userdata2

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

Definition at line 148 of file Polygon.h.

Referenced by Freestyle::firstIntersectionGridVisitor::examineOccluder().


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