Blender  V2.93
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

void * userdata
 
void * userdata2
 

Protected Attributes

vector< Point > _vertices
 
Point _min
 
Point _max
 
unsigned _id
 

Detailed Description

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

Definition at line 39 of file Polygon.h.

Constructor & Destructor Documentation

◆ Polygon() [1/3]

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

Definition at line 41 of file Polygon.h.

◆ Polygon() [2/3]

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

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

Member Function Documentation

◆ computeBBox()

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

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

References result.

◆ getCenter()

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

Definition at line 99 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

◆ setVertices()

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

Definition at line 118 of file Polygon.h.

Referenced by Freestyle::ViewMapIO::Internal::load().

Member Data Documentation

◆ _id

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

Definition at line 168 of file Polygon.h.

◆ _max

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

Definition at line 167 of file Polygon.h.

◆ _min

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

Definition at line 166 of file Polygon.h.

◆ _vertices

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

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

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


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