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

circle shape More...

#include <a_shape_circle.h>

+ Inheritance diagram for a_shape_circle:
+ Collaboration diagram for a_shape_circle:

Public Member Functions

 a_shape_circle ()
 
virtual const std::string classname () const
 
a_point closest_point (const a_point p) const
 
double dist_point (const a_point p) const
 
void p3pts (const a_point p1, const a_point p2, const a_point p3)
 
a_point dir () const
 
a_point orig () const
 
double radius () const
 
void dir (const a_point pt)
 
void orig (const a_point pt)
 
void radius (double r)
 
void random_hint (const std::vector< a_point > &pts)
 
void fit_cloud (std::vector< a_point > &pts, short nl=1)
 
void export_points (const unsigned int nseg, const std::vector< a_point > &pts) const
 
void export_lines (const unsigned int nseg, 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)
 
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

circle shape

Definition at line 25 of file a_shape_circle.h.

Constructor & Destructor Documentation

◆ a_shape_circle()

a_shape_circle::a_shape_circle ( )
inline

Definition at line 28 of file a_shape_circle.h.

Member Function Documentation

◆ classname()

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

Reimplemented from a_shape.

Definition at line 29 of file a_shape_circle.h.

◆ closest_point()

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

Implements a_shape.

Definition at line 75 of file a_shape_circle.cxx.

+ Here is the call graph for this function:

◆ dir() [1/2]

a_point a_shape_circle::dir ( ) const
inline

Definition at line 34 of file a_shape_circle.h.

+ Here is the caller graph for this function:

◆ dir() [2/2]

void a_shape_circle::dir ( const a_point  pt)
inline

Definition at line 37 of file a_shape_circle.h.

◆ dist_point()

double a_shape_circle::dist_point ( const a_point  p) const
virtual

Implements a_shape.

Definition at line 84 of file a_shape_circle.cxx.

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

◆ export_lines()

void a_shape_circle::export_lines ( const unsigned int  nseg,
const std::vector< a_point > &  pts 
) const

Definition at line 157 of file a_shape_circle.cxx.

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

◆ export_points()

void a_shape_circle::export_points ( const unsigned int  nseg,
const std::vector< a_point > &  pts 
) const

Definition at line 134 of file a_shape_circle.cxx.

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

◆ fit_cloud()

void a_shape_circle::fit_cloud ( std::vector< a_point > &  pts,
short  nl = 1 
)
virtual

Implements a_shape.

Definition at line 114 of file a_shape_circle.cxx.

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

◆ help()

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

Definition at line 51 of file a_shape_circle.cxx.

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

◆ orig() [1/2]

a_point a_shape_circle::orig ( ) const
inline

Definition at line 35 of file a_shape_circle.h.

+ Here is the caller graph for this function:

◆ orig() [2/2]

void a_shape_circle::orig ( const a_point  pt)
inline

Definition at line 38 of file a_shape_circle.h.

◆ p3pts()

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

Definition at line 63 of file a_shape_circle.cxx.

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

◆ radius() [1/2]

double a_shape_circle::radius ( ) const
inline

Definition at line 36 of file a_shape_circle.h.

+ Here is the caller graph for this function:

◆ radius() [2/2]

void a_shape_circle::radius ( double  r)
inline

Definition at line 39 of file a_shape_circle.h.

◆ random_hint()

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

Implements a_shape.

Definition at line 94 of file a_shape_circle.cxx.

+ Here is the call graph for this function:

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