18 Point (
const std::string& label,
float x,
float y,
float z) {
24 Point (
float x,
float y,
float z) {
72 void load (
const std::string& s);
73 void load (
const char *fn);
74 void load_txt (
const char *fn);
75 void load_fcsv (
const char *fn);
76 void save (
const char *fn);
77 void save_fcsv (
const char *fn);
78 void save_fcsv (
const std::string& fn);
79 void save_txt (
const char *fn);
82 void insert_ras (
const std::string& p);
85 void insert_lps (
const std::string& label,
float x,
float y,
float z);
86 void insert_lps (
const float* xyz);
87 void insert_lps (
const std::string& label,
const float* xyz);
88 void insert_ras (
const std::string& label,
float x,
float y,
float z);
89 void insert_ras (
const float* xyz);
92 const T&
point (
int idx)
const {
93 return point_list[idx];
96 float point (
int idx,
int dim)
const {
97 return point_list[idx].p[dim];
101 size_t get_count (
void)
const;
104 void truncate (
size_t new_length);
void set_label(const char *s)
Definition pointset.h:53
const std::string & get_label(void) const
Definition pointset.h:56
Labeled_point(const std::string &label, float x, float y, float z)
Definition pointset.h:43
std::string label
Definition pointset.h:50
Labeled_point()
Definition pointset.h:42
Point(const std::string &label, float x, float y, float z)
Definition pointset.h:18
Point(float x, float y, float z)
Definition pointset.h:24
std::string get_label(void) const
Definition pointset.h:35
Point()
Definition pointset.h:17
void set_label(const char *s)
Definition pointset.h:32
const T & point(int idx) const
Definition pointset.h:92
std::vector< T > point_list
Definition pointset.h:70
SMART_POINTER_SUPPORT(Pointset)
float point(int idx, int dim) const
Definition pointset.h:96
void load(const std::string &s)
#define UNUSED_VARIABLE(a)
Definition compiler_warnings.h:7
#define PLMBASE_API
Definition plmbase_config.h:19
Pointset< Point > Unlabeled_pointset
Definition pointset.h:113
Pointset< Labeled_point > Labeled_pointset
Definition pointset.h:112