Definition at line 19 of file tess_contour.
◆ Func
typedef GLUvoid(* tools::tess_contour::Func) () |
|
protected |
◆ tess_contour() [1/2]
tools::tess_contour::tess_contour |
( |
std::ostream & |
a_out, |
|
|
std::vector< tess_triangle > & |
a_triangles |
|
) |
| |
|
inline |
◆ ~tess_contour()
virtual tools::tess_contour::~tess_contour |
( |
| ) |
|
|
inlinevirtual |
◆ tess_contour() [2/2]
tools::tess_contour::tess_contour |
( |
const tess_contour & |
a_from | ) |
|
|
inlineprotected |
◆ addVertex()
void tools::tess_contour::addVertex |
( |
const double * |
vertex | ) |
|
|
inlineprotected |
◆ beginCallback()
static void tools::tess_contour::beginCallback |
( |
GLUenum |
aWhich, |
|
|
GLUvoid * |
aThis |
|
) |
| |
|
inlinestaticprotected |
Definition at line 184 of file tess_contour.
186 This->setBeginType(aWhich);
◆ combineCallback()
static void tools::tess_contour::combineCallback |
( |
GLUdouble |
coords[3], |
|
|
void * |
[4], |
|
|
GLUfloat |
[4], |
|
|
void ** |
dataOut, |
|
|
void * |
aThis |
|
) |
| |
|
inlinestaticprotected |
Definition at line 219 of file tess_contour.
225 double* vertex =
new double[3];
226 vertex[0] = coords[0];
227 vertex[1] = coords[1];
228 vertex[2] = coords[2];
229 This->combineTmps().push_back(vertex);
◆ combineTmps()
std::vector<double*>& tools::tess_contour::combineTmps |
( |
| ) |
|
|
inlineprotected |
◆ endCallback()
static void tools::tess_contour::endCallback |
( |
void * |
| ) |
|
|
inlinestaticprotected |
◆ errorCallback()
static void tools::tess_contour::errorCallback |
( |
GLUenum |
aErrorCode, |
|
|
GLUvoid * |
aThis |
|
) |
| |
|
inlinestaticprotected |
Definition at line 194 of file tess_contour.
196 This->m_out <<
"tools::tess_contour::errorCallback : " << aErrorCode << std::endl;
197 This->setError(
true);
◆ getFilledArea()
void tools::tess_contour::getFilledArea |
( |
const std::vector< std::vector< vec3f > > |
aContour | ) |
|
|
inline |
Definition at line 30 of file tess_contour.
53 for(
unsigned int a=0;a<aContour.size();a++) {
55 if(aContour[a].
size()<=1)
continue;
56 size_t vecSize = aContour[a].size()-1;
59 point* tab =
new point[vecSize];
64 for(
size_t b=0;b<vecSize;b++) {
65 tab[b][0] = aContour[a][b][0];
66 tab[b][1] = aContour[a][b][1];
67 tab[b][2] = aContour[a][b][2];
◆ operator=()
◆ resetVertex()
void tools::tess_contour::resetVertex |
( |
| ) |
|
|
inlineprotected |
◆ setBeginType()
void tools::tess_contour::setBeginType |
( |
gl::mode_t |
aType | ) |
|
|
inlineprotected |
◆ setError()
void tools::tess_contour::setError |
( |
bool |
aError | ) |
|
|
inlineprotected |
◆ vertexCallback()
static void tools::tess_contour::vertexCallback |
( |
GLUvoid * |
vertex, |
|
|
GLUvoid * |
aThis |
|
) |
| |
|
inlinestaticprotected |
Definition at line 210 of file tess_contour.
212 This->addVertex((
double*)vertex);
◆ m_begin_type
◆ m_combine_tmps
std::vector<double*> tools::tess_contour::m_combine_tmps |
|
protected |
◆ m_error
bool tools::tess_contour::m_error |
|
protected |
◆ m_out
std::ostream& tools::tess_contour::m_out |
|
protected |
◆ m_tmp
◆ m_triangles
◆ m_vertex_number
unsigned int tools::tess_contour::m_vertex_number |
|
protected |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/tess_contour
void GLUAPIENTRY gluTessCallback_GLU_TESS_VERTEX_DATA(GLUtesselator *tess, void(GLUAPIENTRY *a_fn)(void *, void *))
void GLUAPIENTRY gluTessCallback_GLU_TESS_COMBINE_DATA(GLUtesselator *tess, void(GLUAPIENTRY *a_fn)(GLUdouble[3], void *[4], GLUfloat[4], void **, void *))
GLUAPI void GLUAPIENTRY gluTessBeginPolygon(GLUtesselator *tess, GLUvoid *data)
void GLUAPIENTRY gluTessCallback_GLU_TESS_ERROR_DATA(GLUtesselator *tess, void(GLUAPIENTRY *a_fn)(GLUenum, void *))
GLUAPI void GLUAPIENTRY gluTessBeginContour(GLUtesselator *tess)
#define GLU_TESS_WINDING_ODD
GLUAPI void GLUAPIENTRY gluTessEndContour(GLUtesselator *tess)
GLUAPI void GLUAPIENTRY gluDeleteTess(GLUtesselator *tess)
GLUAPI void GLUAPIENTRY gluTessEndPolygon(GLUtesselator *tess)
void GLUAPIENTRY gluTessCallback_GLU_TESS_BEGIN_DATA(GLUtesselator *tess, void(GLUAPIENTRY *a_fn)(GLUenum, void *))
GLUAPI GLUtesselator *GLUAPIENTRY gluNewTess(void)
GLUAPI void GLUAPIENTRY gluTessProperty(GLUtesselator *tess, GLUenum which, GLUdouble data)
#define GLU_TESS_WINDING_RULE
void GLUAPIENTRY gluTessCallback_GLU_TESS_END_DATA(GLUtesselator *tess, void(GLUAPIENTRY *a_fn)(void *))