UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
U3dCurvatureTriangledSurface Class Reference

#include <u3d_curvature_triangled_surface.hpp>

Inheritance diagram for U3dCurvatureTriangledSurface:
U3dTriangledAbstractSurface U3dTriangledAbstractSurface

Classes

class  CurvaturePlate
 
class  PointsKeeper
 
struct  PQ_Point
 
class  Quad
 
struct  QuadMapCoords
 
struct  TrigPointComparator
 

Public Member Functions

 U3dCurvatureTriangledSurface (U3dBox modelBox, U3dMathAbstractSurface *ms, U3dPoint zeroPoint, double minTriangleSide) throw (badmathsurf_exception)
 
 U3dCurvatureTriangledSurface (const U3dCurvatureTriangledSurface &other)
 
virtual void addPoint (U3dPoint *p)
 
virtual bool removePoint (int i)
 
virtual void movePoint (int i, double d1, double d2, double d3)
 
virtual U3dBox getBox () const
 
 U3dCurvatureTriangledSurface (U3dBox modelBox, U3dMathAbstractSurface *ms, U3dPoint zeroPoint, double minTriangleSide) throw (badmathsurf_exception)
 
 U3dCurvatureTriangledSurface (const U3dCurvatureTriangledSurface &other)
 
virtual void addPoint (U3dPoint *p)
 
virtual bool removePoint (int i)
 
virtual void movePoint (int i, double d1, double d2, double d3)
 
virtual U3dBox getBox () const
 
- Public Member Functions inherited from U3dTriangledAbstractSurface
 U3dTriangledAbstractSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint)
 
 U3dTriangledAbstractSurface (const U3dTriangledAbstractSurface &other)
 
const U3dTrianglegetTriangle (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 U3dPointgetPoint (int id) const throw (std::out_of_range)
 
U3dPointgetPoint (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 ()
 
U3dMathAbstractSurfacegetMathSurf ()
 
 U3dTriangledAbstractSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint)
 
 U3dTriangledAbstractSurface (const U3dTriangledAbstractSurface &other)
 
const U3dTrianglegetTriangle (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 U3dPointgetPoint (int id) const throw (std::out_of_range)
 
U3dPointgetPoint (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 ()
 
U3dMathAbstractSurfacegetMathSurf ()
 

Protected Types

typedef set< Quad::Point,
TrigPointComparator
QTrigPoints
 
typedef map< QuadMapCoords,
Quad, QuadMapCoords
QuadMap
 
typedef vector< QuadMap > QuadMapVector
 
typedef set< Quad::Point,
TrigPointComparator
QTrigPoints
 
typedef map< QuadMapCoords,
Quad, QuadMapCoords
QuadMap
 
typedef safe_vector< QuadMap > QuadMapVector
 

Protected Member Functions

virtual void triangulate ()
 
bool checkUpCoord (QuadMapCoords cmc)
 
virtual void triangulate ()
 
bool checkUpCoord (QuadMapCoords cmc)
 
- Protected Member Functions inherited from U3dTriangledAbstractSurface
virtual void calculateTrPlanes ()
 
virtual void calculateTrPlanes ()
 

Protected Attributes

QuadMapVector quadMapVector
 
- Protected Attributes inherited from U3dTriangledAbstractSurface
U3dMathAbstractSurfacem_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 CurvaturePlate
 
class PointsKeeper
 
class Quad
 

Detailed Description

This class is designed for describing of complex uneven surfaces.

Constructor & Destructor Documentation

U3dCurvatureTriangledSurface::U3dCurvatureTriangledSurface ( U3dBox  modelBox,
U3dMathAbstractSurface ms,
U3dPoint  zeroPoint,
double  minTriangleSide 
)
throw (badmathsurf_exception
)

In constructor we receive triangulated surface relying on mathematical surface.

Parameters
modelBoxBounds of modeling area
msMathematical surface
zeroPointPoint, which determines what side of surface is white
minTriangleSideMinimal value for side of the triangle
U3dCurvatureTriangledSurface::U3dCurvatureTriangledSurface ( U3dBox  modelBox,
U3dMathAbstractSurface ms,
U3dPoint  zeroPoint,
double  minTriangleSide 
)
throw (badmathsurf_exception
)

In constructor we receive triangulated surface relying on mathematical surface.

Parameters
modelBoxBounds of modeling area
msMathematical surface
zeroPointPoint, which determines what side of surface is white
minTriangleSideMinimal value for side of the triangle

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