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

#include <u3d_simple_triangled_surface.hpp>

Inheritance diagram for U3dSimpleTriangledSurface:
U3dTriangledAbstractSurface U3dTriangledAbstractSurface

Public Types

enum  Type {
  XYZ = 0, XYZp, XYZq, XYZpp,
  XYZqq, XYZpq, XYZ = 0, XYZp,
  XYZq, XYZpp, XYZqq, XYZpq
}
 
enum  Type {
  XYZ = 0, XYZp, XYZq, XYZpp,
  XYZqq, XYZpq, XYZ = 0, XYZp,
  XYZq, XYZpp, XYZqq, XYZpq
}
 

Public Member Functions

 U3dSimpleTriangledSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint, int m=10, int n=10, U3dSimpleTriangledSurface::Type type=XYZ)
 
 U3dSimpleTriangledSurface (U3dSimpleTriangledSurface &ts)
 
virtual void triangulate ()
 
virtual U3dBox getBox () const
 
virtual ~U3dSimpleTriangledSurface ()
 
void setGridSizes (int n, int m)
 
virtual void addPoint (U3dPoint *point)
 
virtual bool removePoint (int ind)
 
virtual void movePoint (int ind, double x, double y, double z)
 
 U3dSimpleTriangledSurface (U3dMathAbstractSurface *ms, U3dPoint zeroPoint, int m=10, int n=10, U3dSimpleTriangledSurface::Type type=XYZ)
 
 U3dSimpleTriangledSurface (U3dSimpleTriangledSurface &ts)
 
virtual void triangulate ()
 
virtual U3dBox getBox () const
 
virtual ~U3dSimpleTriangledSurface ()
 
void setGridSizes (int n, int m)
 
virtual void addPoint (U3dPoint *point)
 
virtual bool removePoint (int ind)
 
virtual void movePoint (int ind, double x, double y, double z)
 
- 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 Attributes

U3dBox m_box
 
int m_m
 
int m_n
 
U3dSimpleTriangledSurface::Type m_type
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from U3dTriangledAbstractSurface
virtual void calculateTrPlanes ()
 
virtual void calculateTrPlanes ()
 

Detailed Description

Simple triangled surface object just for tests Provides m x n grid triangulation

Member Enumeration Documentation

Type of resulting tringled surface

Type of resulting tringled surface

Constructor & Destructor Documentation

U3dSimpleTriangledSurface::U3dSimpleTriangledSurface ( U3dMathAbstractSurface ms,
U3dPoint  zeroPoint,
int  m = 10,
int  n = 10,
U3dSimpleTriangledSurface::Type  type = XYZ 
)

Mathematically based triangled surface constructor

U3dSimpleTriangledSurface::U3dSimpleTriangledSurface ( U3dSimpleTriangledSurface ts)

Copy constructor JUST DO IT !!!

virtual U3dSimpleTriangledSurface::~U3dSimpleTriangledSurface ( )
virtual

Destructor JUST DO IT !!!

U3dSimpleTriangledSurface::U3dSimpleTriangledSurface ( U3dMathAbstractSurface ms,
U3dPoint  zeroPoint,
int  m = 10,
int  n = 10,
U3dSimpleTriangledSurface::Type  type = XYZ 
)

Mathematically based triangled surface constructor

U3dSimpleTriangledSurface::U3dSimpleTriangledSurface ( U3dSimpleTriangledSurface ts)

Copy constructor JUST DO IT !!!

virtual U3dSimpleTriangledSurface::~U3dSimpleTriangledSurface ( )
virtual

Destructor JUST DO IT !!!

Member Function Documentation

virtual void U3dSimpleTriangledSurface::addPoint ( U3dPoint point)
inlinevirtual

Add one initial point JUST DO IT !!!

Implements U3dTriangledAbstractSurface.

virtual void U3dSimpleTriangledSurface::addPoint ( U3dPoint point)
inlinevirtual

Add one initial point JUST DO IT !!!

Implements U3dTriangledAbstractSurface.

virtual void U3dSimpleTriangledSurface::movePoint ( int  ind,
double  x,
double  y,
double  z 
)
inlinevirtual

Move initial point with index ind to provided coordinates place JUST DO IT !!!

Implements U3dTriangledAbstractSurface.

virtual void U3dSimpleTriangledSurface::movePoint ( int  ind,
double  x,
double  y,
double  z 
)
inlinevirtual

Move initial point with index ind to provided coordinates place JUST DO IT !!!

Implements U3dTriangledAbstractSurface.

virtual bool U3dSimpleTriangledSurface::removePoint ( int  ind)
inlinevirtual

Remove initial points with index ind. If no such point return false, otherwise return true JUST DO IT !!!

Implements U3dTriangledAbstractSurface.

virtual bool U3dSimpleTriangledSurface::removePoint ( int  ind)
inlinevirtual

Remove initial points with index ind. If no such point return false, otherwise return true JUST DO IT !!!

Implements U3dTriangledAbstractSurface.

void U3dSimpleTriangledSurface::setGridSizes ( int  n,
int  m 
)
inline

Set grid sizes

void U3dSimpleTriangledSurface::setGridSizes ( int  n,
int  m 
)
inline

Set grid sizes

virtual void U3dSimpleTriangledSurface::triangulate ( )
virtual

Main triangulation method

virtual void U3dSimpleTriangledSurface::triangulate ( )
virtual

Main triangulation method

Member Data Documentation

int U3dSimpleTriangledSurface::m_m
protected

Grid sizes

U3dSimpleTriangledSurface::Type U3dSimpleTriangledSurface::m_type
protected

Type of constructed surface


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