Points&Forces (survey)
Software tools facilitating the task of surveying architecture
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
a_shape Class Referenceabstract

shape More...

#include <a_shape.h>

+ Inheritance diagram for a_shape:
+ Collaboration diagram for a_shape:

Public Member Functions

 a_shape (int n_parameters)
 
virtual ~a_shape ()
 
virtual const std::string classname () const
 
void P (const double P)
 
double P () const
 
unsigned int npara () const
 
virtual a_point closest_point (const a_point p) const =0
 
virtual double dist_point (const a_point p) const =0
 
virtual void random_hint (const std::vector< a_point > &pts)=0
 
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 ()
 

Protected Attributes

double P_
 
vnl_vector< double > para_
 
bool verbose_
 

Friends

std::ostream & operator<< (std::ostream &o, const a_shape &s)
 

Detailed Description

shape

Definition at line 31 of file a_shape.h.

Constructor & Destructor Documentation

◆ a_shape()

a_shape::a_shape ( int  n_parameters)
inline

Definition at line 34 of file a_shape.h.

◆ ~a_shape()

a_shape::~a_shape ( )
virtual

Definition at line 34 of file a_shape.cxx.

Member Function Documentation

◆ average_dist_cloud()

double a_shape::average_dist_cloud ( const std::vector< a_point > &  pts)

Definition at line 48 of file a_shape.cxx.

+ Here is the call graph for this function:

◆ best_fitting_cloud()

int a_shape::best_fitting_cloud ( const std::vector< a_point > &  pts,
std::vector< a_point > &  pts2 
)

Definition at line 82 of file a_shape.cxx.

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

◆ classname()

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

Reimplemented in a_shape_sphere, a_shape_quadric, a_shape_plane, a_shape_line, a_shape_cylinder, and a_shape_circle.

Definition at line 36 of file a_shape.h.

+ Here is the caller graph for this function:

◆ closest_point()

virtual a_point a_shape::closest_point ( const a_point  p) const
pure virtual

◆ dist_cloud()

double a_shape::dist_cloud ( const std::vector< a_point > &  pts)

Definition at line 39 of file a_shape.cxx.

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

◆ dist_point()

virtual double a_shape::dist_point ( const a_point  p) const
pure virtual

Implemented in a_shape_sphere, a_shape_line, a_shape_circle, a_shape_quadric, and a_shape_plane.

+ Here is the caller graph for this function:

◆ export_inliers()

void a_shape::export_inliers ( const std::vector< a_point > &  pts)

Definition at line 143 of file a_shape.cxx.

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

◆ export_outliers()

void a_shape::export_outliers ( const std::vector< a_point > &  pts)

Definition at line 165 of file a_shape.cxx.

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

◆ fit_cloud() [1/2]

void a_shape::fit_cloud ( const std::vector< a_point > &  pts,
vnl_least_squares_function fn 
)

Definition at line 126 of file a_shape.cxx.

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

◆ fit_cloud() [2/2]

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

◆ getparameters()

vnl_vector<double> a_shape::getparameters ( ) const
inline

Definition at line 56 of file a_shape.h.

+ Here is the caller graph for this function:

◆ help()

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

Definition at line 21 of file a_shape.cxx.

+ Here is the caller graph for this function:

◆ init_dist()

virtual void a_shape::init_dist ( )
inlinevirtual

Reimplemented in a_shape_quadric.

Definition at line 63 of file a_shape.h.

+ Here is the caller graph for this function:

◆ npara()

unsigned int a_shape::npara ( ) const
inline

Definition at line 41 of file a_shape.h.

+ Here is the caller graph for this function:

◆ P() [1/2]

double a_shape::P ( ) const
inline

Definition at line 40 of file a_shape.h.

+ Here is the caller graph for this function:

◆ P() [2/2]

void a_shape::P ( const double  P)
inline

Definition at line 39 of file a_shape.h.

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

◆ para()

void a_shape::para ( const int  i,
const double  val 
)
inline

Definition at line 57 of file a_shape.h.

+ Here is the caller graph for this function:

◆ random_hint()

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

Implemented in a_shape_sphere, a_shape_quadric, a_shape_plane, a_shape_line, and a_shape_circle.

+ Here is the caller graph for this function:

◆ rms_dist_cloud()

double a_shape::rms_dist_cloud ( const std::vector< a_point > &  pts)

Definition at line 53 of file a_shape.cxx.

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

◆ threshold_cloud()

int a_shape::threshold_cloud ( const std::vector< a_point > &  pts,
std::vector< a_point > &  pts2 
)

Definition at line 65 of file a_shape.cxx.

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

◆ verbose()

void a_shape::verbose ( bool  v)
inline

Definition at line 62 of file a_shape.h.

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

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const a_shape s 
)
friend

Definition at line 193 of file a_shape.cxx.

Member Data Documentation

◆ P_

double a_shape::P_
protected

Definition at line 67 of file a_shape.h.

◆ para_

vnl_vector<double> a_shape::para_
protected

Definition at line 68 of file a_shape.h.

◆ verbose_

bool a_shape::verbose_
protected

Definition at line 69 of file a_shape.h.


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