Points&Forces (survey)
Software tools facilitating the task of surveying architecture
Public Member Functions | Static Public Member Functions | List of all members
a_shape_plane Class Reference

shape More...

#include <a_shape_plane.h>

+ Inheritance diagram for a_shape_plane:
+ Collaboration diagram for a_shape_plane:

Public Member Functions

 a_shape_plane ()
 
virtual const std::string classname () const
 
void normal (const a_point p)
 
a_point normal () const
 
a_point origin () const
 
void normalise ()
 
void p3pts (const a_point p1, const a_point p2, const a_point p3)
 
double dist () const
 
void dist (const double v)
 
a_point closest_point (const a_point p) const
 
double dist_point (a_point p) const
 
void random_hint (const std::vector< a_point > &pts)
 
void fit_cloud (std::vector< a_point > &pts, short int=1)
 
void export_3pts () const
 
void export_triangles (const std::vector< a_point > &pts) const
 
- Public Member Functions inherited from a_shape
 a_shape (int n_parameters)
 
virtual ~a_shape ()
 
void P (const double P)
 
double P () const
 
unsigned int npara () const
 
double dist_cloud (const std::vector< a_point > &pts)
 
double average_dist_cloud (const std::vector< a_point > &pts)
 
double rms_dist_cloud (const std::vector< a_point > &pts)
 
int threshold_cloud (const std::vector< a_point > &pts, std::vector< a_point > &pts2)
 
int best_fitting_cloud (const std::vector< a_point > &pts, std::vector< a_point > &pts2)
 
void fit_cloud (const std::vector< a_point > &pts, vnl_least_squares_function &fn)
 
virtual void fit_cloud (std::vector< a_point > &pts, short nl=1)=0
 
vnl_vector< double > getparameters () const
 
void para (const int i, const double val)
 
void export_inliers (const std::vector< a_point > &pts)
 
void export_outliers (const std::vector< a_point > &pts)
 
void verbose (bool v)
 
virtual void init_dist ()
 

Static Public Member Functions

static const std::string help ()
 
- Static Public Member Functions inherited from a_shape
static const std::string help ()
 

Additional Inherited Members

- Protected Attributes inherited from a_shape
double P_
 
vnl_vector< double > para_
 
bool verbose_
 

Detailed Description

shape

Definition at line 25 of file a_shape_plane.h.

Constructor & Destructor Documentation

◆ a_shape_plane()

a_shape_plane::a_shape_plane ( )
inline

Definition at line 28 of file a_shape_plane.h.

Member Function Documentation

◆ classname()

virtual const std::string a_shape_plane::classname ( ) const
inlinevirtual

Reimplemented from a_shape.

Definition at line 29 of file a_shape_plane.h.

◆ closest_point()

a_point a_shape_plane::closest_point ( const a_point  p) const
virtual

Implements a_shape.

Definition at line 89 of file a_shape_plane.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dist() [1/2]

double a_shape_plane::dist ( ) const
inline

Definition at line 36 of file a_shape_plane.h.

+ Here is the caller graph for this function:

◆ dist() [2/2]

void a_shape_plane::dist ( const double  v)
inline

Definition at line 37 of file a_shape_plane.h.

+ Here is the call graph for this function:

◆ dist_point()

double a_shape_plane::dist_point ( a_point  p) const
virtual

Implements a_shape.

Definition at line 98 of file a_shape_plane.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ export_3pts()

void a_shape_plane::export_3pts ( ) const

Definition at line 151 of file a_shape_plane.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ export_triangles()

void a_shape_plane::export_triangles ( const std::vector< a_point > &  pts) const

Definition at line 174 of file a_shape_plane.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fit_cloud()

void a_shape_plane::fit_cloud ( std::vector< a_point > &  pts,
short int  = 1 
)

Definition at line 138 of file a_shape_plane.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ help()

const std::string a_shape_plane::help ( )
static

Definition at line 53 of file a_shape_plane.cxx.

+ Here is the call graph for this function:

◆ normal() [1/2]

a_point a_shape_plane::normal ( ) const
inline

Definition at line 32 of file a_shape_plane.h.

+ Here is the caller graph for this function:

◆ normal() [2/2]

void a_shape_plane::normal ( const a_point  p)

Definition at line 65 of file a_shape_plane.cxx.

+ Here is the caller graph for this function:

◆ normalise()

void a_shape_plane::normalise ( )

Definition at line 74 of file a_shape_plane.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ origin()

a_point a_shape_plane::origin ( ) const

Definition at line 83 of file a_shape_plane.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ p3pts()

void a_shape_plane::p3pts ( const a_point  p1,
const a_point  p2,
const a_point  p3 
)

Definition at line 107 of file a_shape_plane.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ random_hint()

void a_shape_plane::random_hint ( const std::vector< a_point > &  pts)
virtual

Implements a_shape.

Definition at line 119 of file a_shape_plane.cxx.

+ Here is the call graph for this function:

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