12 #include "../geometry/Geom.h"
16 #include "../view_map/Interface0D.h"
17 #include "../view_map/Interface1D.h"
18 #include "../view_map/Silhouette.h"
19 #include "../view_map/SilhouetteGeomEngine.h"
21 #include "../system/BaseIterator.h"
23 #ifdef WITH_CXX_GUARDEDALLOC
102 return Vec2r(_Point2d.x(), _Point2d.y());
114 else if (_t2d == 1) {
125 nature |= __A->getNature();
127 else if (_t2d == 1) {
128 nature |= __B->getNature();
139 else if (_t2d == 1) {
142 return Interface0D::castToSVertex();
151 else if (_t2d == 1) {
154 return Interface0D::castToViewVertex();
163 else if (_t2d == 1) {
166 return Interface0D::castToNonTVertex();
175 else if (_t2d == 1) {
178 return Interface0D::castToTVertex();
230 return ((__A ==
b.__A) && (__B ==
b.__B) && (_t2d ==
b._t2d));
253 inline const float t3d()
const
279 inline void SetT3d(
float t)
302 const SShape *shape()
const;
306 occluder_container::const_iterator occluders_begin()
const;
307 occluder_container::const_iterator occluders_end()
const;
308 bool occluders_empty()
const;
309 int occluders_size()
const;
311 const SShape *occluded_shape()
const;
312 bool occludee_empty()
const;
313 real z_discontinuity()
const;
315 float local_average_depth()
const;
316 float local_depth_variance()
const;
317 real local_average_density(
float sigma = 2.3f)
const;
318 Vec3r shaded_color()
const;
319 Vec3r orientation2d()
const;
320 Vec3r orientation3d()
const;
322 real curvature2d()
const
324 return viewedge()->curvature2d((_VertexA->point2d() + _VertexB->point2d()) / 2.0);
327 Vec3r curvature2d_as_vector()
const;
329 real curvature2d_as_angle()
const;
331 real curvatureFredo()
const;
332 Vec2d directionFredo()
const;
335 #ifdef WITH_CXX_GUARDEDALLOC
336 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:CurvePoint")
348 namespace CurveInternal {
421 void computeCurvatureAndOrientation();
427 if (!_Vertices.empty()) {
428 Vec3r vec_tmp(iVertex->
point2d() - _Vertices.back()->point2d());
429 _Length += vec_tmp.
norm();
433 _Vertices.push_back(new_vertex);
439 if (!_Vertices.empty()) {
440 Vec3r vec_tmp(iVertex->
point2d() - _Vertices.back()->point2d());
441 _Length += vec_tmp.
norm();
445 _Vertices.push_back(new_vertex);
451 if (!_Vertices.empty()) {
452 Vec3r vec_tmp(iVertex->
point2d() - _Vertices.front()->point2d());
453 _Length += vec_tmp.
norm();
457 _Vertices.push_front(new_vertex);
463 if (!_Vertices.empty()) {
464 Vec3r vec_tmp(iVertex->
point2d() - _Vertices.front()->point2d());
465 _Length += vec_tmp.
norm();
469 _Vertices.push_front(new_vertex);
475 return _Vertices.empty();
504 inline Vec3r shaded_color(
int iCombination = 0)
const;
505 inline Vec3r orientation2d(point_iterator it)
const;
506 Vec3r orientation2d(
int iCombination = 0)
const;
507 Vec3r orientation3d(point_iterator it)
const;
508 Vec3r orientation3d(
int iCombination = 0)
const;
510 real curvature2d(point_iterator it)
const
512 return (*it)->curvature2d();
515 real curvature2d(
int iCombination = 0)
const;
518 occluder_container::const_iterator occluders_begin()
const;
519 occluder_container::const_iterator occluders_end()
const;
520 int occluders_size()
const;
521 bool occluders_empty()
const;
523 const Polygon3r &occludee()
const
525 return *(_FEdgeA->aFace());
528 const SShape *occluded_shape()
const;
529 bool occludee_empty()
const;
530 real z_discontinuity(
int iCombination = 0)
const;
531 int shape_id()
const;
532 const SShape *shape()
const;
533 float shape_importance(
int iCombination = 0)
const;
534 float local_average_depth(
int iCombination = 0)
const;
535 float local_depth_variance(
int iCombination = 0)
const;
536 real local_average_density(
float sigma = 2.3f,
int iCombination = 0)
const;
537 Vec3r curvature2d_as_vector(
int iCombination = 0)
const;
539 real curvature2d_as_angle(
int iCombination = 0)
const;
543 point_iterator points_begin(
float step = 0);
544 const_point_iterator points_begin(
float step = 0)
const;
545 point_iterator points_end(
float step = 0);
546 const_point_iterator points_end(
float step = 0)
const;
549 point_iterator vertices_begin();
550 const_point_iterator vertices_begin()
const;
551 point_iterator vertices_end();
552 const_point_iterator vertices_end()
const;
555 CurveInternal::CurvePointIterator curvePointsBegin(
float t = 0.0f);
556 CurveInternal::CurvePointIterator curvePointsEnd(
float t = 0.0f);
558 CurveInternal::CurvePointIterator curveVerticesBegin();
559 CurveInternal::CurvePointIterator curveVerticesEnd();
565 virtual Interface0DIterator verticesBegin();
570 virtual Interface0DIterator verticesEnd();
576 virtual Interface0DIterator pointsBegin(
float t = 0.0f);
582 virtual Interface0DIterator pointsEnd(
float t = 0.0f);
584 #ifdef WITH_CXX_GUARDEDALLOC
585 MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:Curve")
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble t
Read Guarded memory(de)allocation.
btGeneric6DofConstraint & operator=(btGeneric6DofConstraint &other)
const Vec3r & point2d() const
virtual real getZ() const
virtual SVertex * castToSVertex()
virtual real getProjectedZ() const
virtual ViewVertex * castToViewVertex()
virtual Nature::VertexNature getNature() const
virtual real getX() const
virtual real getProjectedX() const
virtual Vec3r getPoint3D() const
virtual TVertex * castToTVertex()
virtual real getProjectedY() const
virtual ~CurvePoint()=default
virtual string getExactTypeName() const
virtual Vec2r getPoint2D() const
const Vec3r & point3d() const
bool operator==(const CurvePoint &b)
virtual NonTVertex * castToNonTVertex()
virtual real getY() const
unsigned int nSegments() const
void push_vertex_back(SVertex *iVertex)
void push_vertex_back(Vertex *iVertex)
vertex_container _Vertices
CurveInternal::__point_iterator< CurveInternal::CurvePoint_nonconst_traits > point_iterator
virtual string getExactTypeName() const
deque< Vertex * > vertex_container
CurveInternal::__point_iterator< CurveInternal::CurvePoint_const_traits > const_point_iterator
void push_vertex_front(Vertex *iVertex)
Curve(const Curve &iBrother)
void push_vertex_front(SVertex *iVertex)
point_iterator vertex_iterator
const_point_iterator const_vertex_iterator
virtual ViewVertex * castToViewVertex()
virtual NonTVertex * castToNonTVertex()
const Vec3r & point2d() const
virtual TVertex * castToTVertex()
IconTextureDrawCall normal
FEdge * getFEdge(Interface0D &it1, Interface0D &it2)
VecMat::Vec2< double > Vec2d
VecMat::Vec2< real > Vec2r
VecMat::Vec3< real > Vec3r
unsigned short VertexNature
static const VertexNature POINT
static const pxr::TfToken b("b", pxr::TfToken::Immortal)