ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | Public Attributes | Friends | List of all members
Point Class Reference

#include <pointcloud.h>

Collaboration diagram for Point:
Collaboration graph
[legend]

Public Member Functions

 Point (pcl::PointXYZ point)
 
bool operator== (const Point &p) const
 
 Point ()
 
 Point (const std::vector< double > &point)
 
 Point (const std::vector< double > &point, const std::set< size_t > &cluster_ids)
 
 Point (double x, double y, double z)
 
 Point (double x, double y, double z, const std::set< size_t > &cluster_ids)
 
std::vector< double > as_vector () const
 
double norm () const
 
double squared_norm () const
 
void SetID (int pid)
 
int GetID () const
 
bool operator== (const Point &p) const
 
Pointoperator= (const Point &other)
 
Point operator+ (const Point &p) const
 
Point operator- (const Point &p) const
 
double operator* (const Point &p) const
 
Point operator/ (double c) const
 

Public Attributes

float x
 
float y
 
float z
 
std::vector< int > clIds
 
double x
 
double y
 
double z
 
int id
 
std::set< size_t > cluster_ids
 

Friends

std::ostream & operator<< (std::ostream &os, const Point &p)
 

Detailed Description

Definition at line 71 of file main.cpp.

Constructor & Destructor Documentation

◆ Point() [1/6]

Point::Point ( pcl::PointXYZ  point)
inline

Definition at line 77 of file main.cpp.

◆ Point() [2/6]

Point::Point ( )
inline

Definition at line 26 of file pointcloud.h.

◆ Point() [3/6]

Point::Point ( const std::vector< double > &  point)

Definition at line 26 of file pointcloud.cxx.

◆ Point() [4/6]

Point::Point ( const std::vector< double > &  point,
const std::set< size_t > &  cluster_ids 
)

Definition at line 36 of file pointcloud.cxx.

◆ Point() [5/6]

Point::Point ( double  x,
double  y,
double  z 
)

Definition at line 47 of file pointcloud.cxx.

◆ Point() [6/6]

Point::Point ( double  x,
double  y,
double  z,
const std::set< size_t > &  cluster_ids 
)

Definition at line 54 of file pointcloud.cxx.

Member Function Documentation

◆ as_vector()

std::vector< double > Point::as_vector ( ) const

Definition at line 63 of file pointcloud.cxx.

◆ GetID()

int Point::GetID ( ) const
inline

Definition at line 40 of file pointcloud.h.

◆ norm()

double Point::norm ( ) const

Definition at line 73 of file pointcloud.cxx.

◆ operator*()

double Point::operator* ( const Point p) const

Definition at line 125 of file pointcloud.cxx.

◆ operator+()

Point Point::operator+ ( const Point p) const

Definition at line 105 of file pointcloud.cxx.

◆ operator-()

Point Point::operator- ( const Point p) const

Definition at line 115 of file pointcloud.cxx.

◆ operator/()

Point Point::operator/ ( double  c) const

Definition at line 131 of file pointcloud.cxx.

◆ operator=()

Point & Point::operator= ( const Point other)

Definition at line 84 of file pointcloud.cxx.

◆ operator==() [1/2]

bool Point::operator== ( const Point p) const

◆ operator==() [2/2]

bool Point::operator== ( const Point p) const
inline

Definition at line 83 of file main.cpp.

◆ SetID()

void Point::SetID ( int  pid)
inline

Definition at line 39 of file pointcloud.h.

◆ squared_norm()

double Point::squared_norm ( ) const

Definition at line 79 of file pointcloud.cxx.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Point p 
)
friend

Definition at line 99 of file pointcloud.cxx.

Member Data Documentation

◆ clIds

std::vector<int> Point::clIds

Definition at line 75 of file main.cpp.

◆ cluster_ids

std::set<size_t> Point::cluster_ids

Definition at line 24 of file pointcloud.h.

◆ id

int Point::id

Definition at line 23 of file pointcloud.h.

◆ x [1/2]

double Point::x

Definition at line 20 of file pointcloud.h.

◆ x [2/2]

float Point::x

Definition at line 72 of file main.cpp.

◆ y [1/2]

double Point::y

Definition at line 21 of file pointcloud.h.

◆ y [2/2]

float Point::y

Definition at line 73 of file main.cpp.

◆ z [1/2]

double Point::z

Definition at line 22 of file pointcloud.h.

◆ z [2/2]

float Point::z

Definition at line 74 of file main.cpp.


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