#include <rsdl_point.h>
Definition at line 23 of file rsdl_point.h.
Public Types | |
| typedef vcl_vector< double >::const_iterator | const_iterator |
| Used until we support member templates. | |
Public Member Functions | |
| rsdl_point () | |
| Provided only for STL. | |
| rsdl_point (unsigned int Nc, unsigned int Na=0) | |
| Ctor to set the dimensions without setting the values. | |
| rsdl_point (const_iterator c_begin, const_iterator c_end, const_iterator a_begin, const_iterator a_end) | |
| Ctor from Cartesian and angular value vector iterators. | |
| rsdl_point (const vnl_vector< double > &c, const vnl_vector< double > &a) | |
| Ctor from Cartesian and angular value vnl_vectors. | |
| rsdl_point (const rsdl_point &old) | |
| Copy constructor. | |
| rsdl_point (const vnl_vector< double > &all, unsigned int Na=0) | |
| Ctor from cartesian and the angular values, in order, in a single vnl_vector. | |
| ~rsdl_point () | |
| Destructor. | |
| unsigned int | num_cartesian () const |
| Number of cartesian dimensions. | |
| unsigned int | num_angular () const |
| Number of angular dimensions. | |
| void | set_cartesian (const vnl_vector< double > &c) |
| Establish the cartesian values from a vnl_vector. | |
| void | set_cartesian (const_iterator c) |
| Establish the cartesian values from an iterator. | |
| void | set_angular (const vnl_vector< double > &a) |
| Establish the angular values from a vnl_vector. | |
| void | set_all (const vnl_vector< double > &all) |
| Establish the cartesian and angular values from a vnl_vector. | |
| void | set_angular (const_iterator a) |
| Establish the angular values from an iterator. | |
| const double & | cartesian (unsigned int i) const |
| Constant access to the indexed cartesian coordinate. | |
| double & | cartesian (unsigned int i) |
| Mutable access to the indexed cartesian coordinate. | |
| const double & | angular (unsigned int i) const |
| Constant access to the indexed angular coordinate. | |
| double & | angular (unsigned int i) |
| Mutable access to the indexed angular coordinate. | |
| rsdl_point & | operator= (const rsdl_point &old) |
| Assignment operator. | |
| void | resize (unsigned int Nc, unsigned int Na) |
| Resize both the cartesian and angular dimensions. | |
Private Attributes | |
| unsigned int | Nc_ |
| unsigned int | Na_ |
| double * | data_ |
|
|
Used until we support member templates.
Definition at line 26 of file rsdl_point.h. |
|
|
Provided only for STL. Creates a point without any data. Definition at line 10 of file rsdl_point.cxx. |
|
||||||||||||
|
Ctor to set the dimensions without setting the values. Nc and Na are the number of cartesian and angular coordinates, respectively. Definition at line 15 of file rsdl_point.cxx. |
|
||||||||||||||||||||
|
Ctor from Cartesian and angular value vector iterators.
Definition at line 20 of file rsdl_point.cxx. |
|
||||||||||||
|
Ctor from Cartesian and angular value vnl_vectors.
Definition at line 31 of file rsdl_point.cxx. |
|
|
Copy constructor.
Definition at line 39 of file rsdl_point.cxx. |
|
||||||||||||
|
Ctor from cartesian and the angular values, in order, in a single vnl_vector. The angular data is taken as the last Na values in the vector. Definition at line 46 of file rsdl_point.cxx. |
|
|
Destructor.
Definition at line 55 of file rsdl_point.cxx. |
|
|
Mutable access to the indexed angular coordinate.
Definition at line 88 of file rsdl_point.h. |
|
|
Constant access to the indexed angular coordinate.
Definition at line 85 of file rsdl_point.h. |
|
|
Mutable access to the indexed cartesian coordinate.
Definition at line 82 of file rsdl_point.h. |
|
|
Constant access to the indexed cartesian coordinate.
Definition at line 79 of file rsdl_point.h. |
|
|
Number of angular dimensions.
Definition at line 59 of file rsdl_point.h. |
|
|
Number of cartesian dimensions.
Definition at line 56 of file rsdl_point.h. |
|
|
Assignment operator.
Definition at line 105 of file rsdl_point.cxx. |
|
||||||||||||
|
Resize both the cartesian and angular dimensions.
Definition at line 120 of file rsdl_point.cxx. |
|
|
Establish the cartesian and angular values from a vnl_vector.
Definition at line 88 of file rsdl_point.cxx. |
|
|
Establish the angular values from an iterator. No checking is done: Nc elements are expected. Definition at line 97 of file rsdl_point.cxx. |
|
|
Establish the angular values from a vnl_vector.
Definition at line 79 of file rsdl_point.cxx. |
|
|
Establish the cartesian values from an iterator. No checking is done: Nc elements are expected. Definition at line 71 of file rsdl_point.cxx. |
|
|
Establish the cartesian values from a vnl_vector.
Definition at line 62 of file rsdl_point.cxx. |
|
|
Definition at line 99 of file rsdl_point.h. |
|
|
Definition at line 98 of file rsdl_point.h. |
|
|
Definition at line 97 of file rsdl_point.h. |
1.4.4