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

shape More...

#include <a_shape_quadric.h>

+ Inheritance diagram for a_shape_quadric:
+ Collaboration diagram for a_shape_quadric:

Public Member Functions

 a_shape_quadric ()
 
virtual const std::string classname () const
 
virtual void p9pts (const a_point *pt)
 
void p9pts (const a_point &p1, const a_point &p2, const a_point &p3, const a_point &p4, const a_point &p5, const a_point &p6, const a_point &p7, const a_point &p8, const a_point &p9)
 
a_point center () const
 
a_point principals () const
 
a_point n1 () const
 
a_point n2 () const
 
a_point n3 () const
 
virtual a_point closest_point (const a_point p) const
 
virtual 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 nl=1)
 
virtual void export_matrices () const
 
void export_points (const unsigned int nseg, const std::vector< a_point > &pts) const
 
void export_triangles (const unsigned int nseg, const std::vector< a_point > &pts) const
 
vnl_double_3x3 A () const
 
void Ap ()
 
vnl_double_3 b () const
 
void init_dist ()
 
void getA () const
 
void getb () const
 
void getAp () 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)
 

Static Public Member Functions

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

Protected Attributes

vnl_double_3x3 A_
 
vnl_double_3x3 Ap_
 
vnl_double_3 b_
 
double d0_
 
double d1_
 
double d2_
 
vnl_matrix< double > R_
 
- Protected Attributes inherited from a_shape
double P_
 
vnl_vector< double > para_
 
bool verbose_
 

Detailed Description

shape

Definition at line 28 of file a_shape_quadric.h.

Constructor & Destructor Documentation

◆ a_shape_quadric()

a_shape_quadric::a_shape_quadric ( )

Definition at line 71 of file a_shape_quadric.cxx.

+ Here is the call graph for this function:

Member Function Documentation

◆ A()

vnl_double_3x3 a_shape_quadric::A ( ) const

Definition at line 78 of file a_shape_quadric.cxx.

+ Here is the caller graph for this function:

◆ Ap()

void a_shape_quadric::Ap ( )

Definition at line 93 of file a_shape_quadric.cxx.

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

◆ b()

vnl_double_3 a_shape_quadric::b ( ) const

Definition at line 101 of file a_shape_quadric.cxx.

+ Here is the caller graph for this function:

◆ center()

a_point a_shape_quadric::center ( ) const

Definition at line 365 of file a_shape_quadric.cxx.

+ Here is the caller graph for this function:

◆ classname()

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

Reimplemented from a_shape.

Reimplemented in a_shape_cylinder.

Definition at line 32 of file a_shape_quadric.h.

◆ closest_point()

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

vnl_double_3x3 A = this->A(); vnl_double_3 b = this->b();

vnl_symmetric_eigensystem<double> eig(A); vnl_matrix<double> R = eig.V;

Implements a_shape.

Reimplemented in a_shape_cylinder.

Definition at line 192 of file a_shape_quadric.cxx.

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

◆ dist_point()

double a_shape_quadric::dist_point ( a_point  p) const
virtual

Implements a_shape.

Definition at line 403 of file a_shape_quadric.cxx.

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

◆ export_matrices()

void a_shape_quadric::export_matrices ( ) const
virtual

Reimplemented in a_shape_cylinder.

Definition at line 451 of file a_shape_quadric.cxx.

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

◆ export_points()

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

Definition at line 469 of file a_shape_quadric.cxx.

+ Here is the caller graph for this function:

◆ export_triangles()

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

Definition at line 473 of file a_shape_quadric.cxx.

+ Here is the caller graph for this function:

◆ fit_cloud()

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

Implements a_shape.

Definition at line 438 of file a_shape_quadric.cxx.

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

◆ getA()

void a_shape_quadric::getA ( ) const
inline

Definition at line 55 of file a_shape_quadric.h.

◆ getAp()

void a_shape_quadric::getAp ( ) const
inline

Definition at line 57 of file a_shape_quadric.h.

◆ getb()

void a_shape_quadric::getb ( ) const
inline

Definition at line 56 of file a_shape_quadric.h.

◆ help()

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

Definition at line 59 of file a_shape_quadric.cxx.

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

◆ init_dist()

void a_shape_quadric::init_dist ( )
virtual

Reimplemented from a_shape.

Definition at line 180 of file a_shape_quadric.cxx.

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

◆ n1()

a_point a_shape_quadric::n1 ( ) const

Definition at line 382 of file a_shape_quadric.cxx.

+ Here is the caller graph for this function:

◆ n2()

a_point a_shape_quadric::n2 ( ) const

Definition at line 389 of file a_shape_quadric.cxx.

+ Here is the caller graph for this function:

◆ n3()

a_point a_shape_quadric::n3 ( ) const

Definition at line 396 of file a_shape_quadric.cxx.

+ Here is the caller graph for this function:

◆ p9pts() [1/2]

void a_shape_quadric::p9pts ( const a_point &  p1,
const a_point &  p2,
const a_point &  p3,
const a_point &  p4,
const a_point &  p5,
const a_point &  p6,
const a_point &  p7,
const a_point &  p8,
const a_point &  p9 
)

Definition at line 110 of file a_shape_quadric.cxx.

+ Here is the call graph for this function:

◆ p9pts() [2/2]

void a_shape_quadric::p9pts ( const a_point *  pt)
virtual

Reimplemented in a_shape_cylinder.

Definition at line 121 of file a_shape_quadric.cxx.

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

◆ principals()

a_point a_shape_quadric::principals ( ) const

Definition at line 373 of file a_shape_quadric.cxx.

+ Here is the caller graph for this function:

◆ random_hint()

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

Implements a_shape.

Definition at line 409 of file a_shape_quadric.cxx.

+ Here is the call graph for this function:

Member Data Documentation

◆ A_

vnl_double_3x3 a_shape_quadric::A_
protected

Definition at line 59 of file a_shape_quadric.h.

◆ Ap_

vnl_double_3x3 a_shape_quadric::Ap_
protected

Definition at line 60 of file a_shape_quadric.h.

◆ b_

vnl_double_3 a_shape_quadric::b_
protected

Definition at line 61 of file a_shape_quadric.h.

◆ d0_

double a_shape_quadric::d0_
protected

Definition at line 62 of file a_shape_quadric.h.

◆ d1_

double a_shape_quadric::d1_
protected

Definition at line 62 of file a_shape_quadric.h.

◆ d2_

double a_shape_quadric::d2_
protected

Definition at line 62 of file a_shape_quadric.h.

◆ R_

vnl_matrix<double> a_shape_quadric::R_
protected

Definition at line 63 of file a_shape_quadric.h.


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