UNIVERS
15.3
UNIVERS base processing software API
|
#include <u3d_triangled_abstract_surface.hpp>
Classes | |
class | Delone2DTriangulator |
Public Member Functions | |
U3dTriangledAbstractSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint) | |
U3dTriangledAbstractSurface (const U3dTriangledAbstractSurface &other) | |
virtual void | addPoint (U3dPoint *)=0 |
virtual bool | removePoint (int pointId)=0 |
virtual void | movePoint (int pointId, double x, double y, double z)=0 |
virtual class U3dBox | getBox () const =0 |
const U3dTriangle * | getTriangle (int id) const throw (std::out_of_range) |
int | getTrianglesNum () const |
void | severance (U3dTriangledAbstractSurface *other, const U3D_COLOR &) |
void | severance_old (const U3dTriangledAbstractSurface *other, const U3D_COLOR &) |
void | setWhitePoint (const U3dPoint &p) |
U3dPoint | getWhitePoint () const |
const U3dPoint * | getPoint (int id) const throw (std::out_of_range) |
U3dPoint * | getPoint (int id) throw (std::out_of_range) |
bool | getPoint (int id, double &x, double &y, double &z) |
int | getPointsNum () |
void | getPoints (U3dPointsAr &ps) |
void | getInitialPoints (U3dPointsAr &ps) |
const U3dPointsAr & | getInitialPoints () const |
virtual bool | getSideColor (const U3dPoint &p, U3D_COLOR &u3dcolor) const |
virtual void | getIntersections (U3dPoint p0, U3dPoint p1, std::vector< int > &int_trIds, U3dPointsAr &int_points) |
bool | isTriangulated () |
const std::set< int > & | getActTrNums () |
U3dMathAbstractSurface * | getMathSurf () |
U3dTriangledAbstractSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint) | |
U3dTriangledAbstractSurface (const U3dTriangledAbstractSurface &other) | |
virtual void | addPoint (U3dPoint *)=0 |
virtual bool | removePoint (int pointId)=0 |
virtual void | movePoint (int pointId, double x, double y, double z)=0 |
virtual class U3dBox | getBox () const =0 |
const U3dTriangle * | getTriangle (int id) const throw (std::out_of_range) |
int | getTrianglesNum () const |
void | severance (U3dTriangledAbstractSurface *other, const U3D_COLOR &) |
void | severance_old (const U3dTriangledAbstractSurface *other, const U3D_COLOR &) |
void | setWhitePoint (const U3dPoint &p) |
U3dPoint | getWhitePoint () const |
const U3dPoint * | getPoint (int id) const throw (std::out_of_range) |
U3dPoint * | getPoint (int id) throw (std::out_of_range) |
bool | getPoint (int id, double &x, double &y, double &z) |
int | getPointsNum () |
void | getPoints (U3dPointsAr &ps) |
void | getInitialPoints (U3dPointsAr &ps) |
virtual bool | getSideColor (const U3dPoint &p, U3D_COLOR &u3dcolor) const |
virtual void | getIntersections (U3dPoint p0, U3dPoint p1, std::vector< int > &int_trIds, U3dPointsAr &int_points) |
bool | isTriangulated () |
const int_set & | getActTrNums () |
U3dMathAbstractSurface * | getMathSurf () |
Protected Member Functions | |
virtual void | calculateTrPlanes () |
virtual void | calculateTrPlanes () |
Protected Attributes | |
U3dMathAbstractSurface * | m_math_surf |
U3dPointsAr | m_tps |
U3dTrianglesAr | m_triangles |
U3dPointsAr | m_initPoints |
std::set< int > | m_actTrNums |
bool | m_is_triangulated |
U3dPoint | m_white_point |
int_set | m_actTrNums |
Friends | |
class | Intersect |
Class for trianguled surfaces
Template for trianguled surfaces
|
inline |
Get set of numbers of active triangles
|
inline |
Get set of numbers of active triangles
|
inline |
Return initial points
|
inline |
Return initial points
|
inline |
Return initial points (const)
|
virtual |
Get all triangles, which took part in intersection with segment p0-p1
|
virtual |
Get all triangles, which took part in intersection with segment p0-p1
|
inline |
Return triangle point from provided index. Return false if out of range
|
inline |
Return triangle point coordinates from provided index Return false if out of range
|
inline |
Return triangle point from provided index. Return false if out of range
|
inline |
Return triangle point coordinates from provided index Return false if out of range
|
inline |
Return triangles points
|
inline |
Return triangles points
|
inline |
Return number of triangles points
|
inline |
Return number of triangles points
|
virtual |
Second parameter becomes true, if specified point lies to the white side of surface. Return value is true, if method succeed, and false otherwise.Determine from side of which color spicified point is placed.
Reimplemented in U3dPlaneTriangledSurface, and U3dPlaneTriangledSurface.
|
virtual |
Second parameter becomes true, if specified point lies to the white side of surface. Return value is true, if method succeed, and false otherwise.Determine from side of which color spicified point is placed.
Reimplemented in U3dPlaneTriangledSurface, and U3dPlaneTriangledSurface.
|
inline |
Return triangle with provided index or NULL if out of range
|
inline |
Return triangle with provided index or NULL if out of range
|
inline |
Return number of triangles
|
inline |
Return number of triangles
|
inline |
Get white point of this surface
|
inline |
Get white point of this surface
|
inline |
Return true if interpolation was made
|
inline |
Return true if interpolation was made
|
inline |
Set white point for this surface
|
inline |
Set white point for this surface
void U3dTriangledAbstractSurface::severance | ( | U3dTriangledAbstractSurface * | other, |
const U3D_COLOR & | |||
) |
Make serverance with other surface form specidied by U3D_COLOR side
void U3dTriangledAbstractSurface::severance | ( | U3dTriangledAbstractSurface * | other, |
const U3D_COLOR & | |||
) |
Make serverance with other surface form specidied by U3D_COLOR side
|
protected |
If triangulation was made