Public Member Functions | Private Attributes | List of all members
vgl_pointset_3d< Type > Class Template Reference

#include <vgl_fwd.h>

Public Member Functions

 vgl_pointset_3d ()
 Default constructor. More...
 
 vgl_pointset_3d (std::vector< vgl_point_3d< Type > > points)
 Construct from a list. More...
 
 vgl_pointset_3d (std::vector< vgl_point_3d< Type > > points, std::vector< vgl_vector_3d< Type > > normals)
 
 vgl_pointset_3d (std::vector< vgl_point_3d< Type > > points, std::vector< Type > scalars)
 
 vgl_pointset_3d (std::vector< vgl_point_3d< Type > > points, std::vector< vgl_vector_3d< Type > > normals, std::vector< Type > scalars)
 
void add_point (vgl_point_3d< Type > const &p)
 incrementally grow points, duplicate points are allowed. More...
 
void add_point_with_normal (vgl_point_3d< Type > const &p, vgl_vector_3d< Type > const &normal)
 incrementally grow points and normals duplicate pairs are allowed. More...
 
void add_point_with_scalar (vgl_point_3d< Type > const &p, Type sc)
 
void add_point_with_normal_and_scalar (vgl_point_3d< Type > const &p, vgl_vector_3d< Type > const &normal, Type sc)
 
bool has_normals () const
 accessors. More...
 
bool has_scalars () const
 
size_t npts () const
 
size_t size () const
 
vgl_point_3d< Type > p (unsigned i) const
 
vgl_vector_3d< Type > n (unsigned i) const
 
Type sc (unsigned i) const
 
std::vector< vgl_point_3d< Type > > points () const
 
std::vector< vgl_vector_3d< Type > > normals () const
 
std::vector< Type > scalars () const
 
void clear ()
 
void set_points (std::vector< vgl_point_3d< Type > > const &points)
 
void set_points_with_normals (std::vector< vgl_point_3d< Type > > const &points, std::vector< vgl_vector_3d< Type > > const &normals)
 
void set_points_with_scalars (std::vector< vgl_point_3d< Type > > const &points, std::vector< Type > const &scalars)
 
void set_points_with_normals_and_scalars (std::vector< vgl_point_3d< Type > > const &points, std::vector< vgl_vector_3d< Type > > const &normals, std::vector< Type > const &scalars)
 
void append_pointset (vgl_pointset_3d< Type > const &ptset)
 
bool set_point (unsigned i, vgl_point_3d< Type > const &p)
 
bool set_normal (unsigned i, vgl_vector_3d< Type > const &n)
 
bool set_scalar (unsigned i, Type sc)
 
bool operator== (const vgl_pointset_3d< Type > &spl) const
 Equality operator. More...
 
bool operator!= (vgl_pointset_3d< Type >const &spl) const
 

Private Attributes

bool has_normals_
 members. More...
 
bool has_scalars_
 
std::vector< vgl_point_3d< Type > > points_
 
std::vector< vgl_vector_3d< Type > > normals_
 
std::vector< Type > scalars_
 

Detailed Description

template<class Type>
class vgl_pointset_3d< Type >

Definition at line 38 of file vgl_fwd.h.

Constructor & Destructor Documentation

◆ vgl_pointset_3d() [1/5]

template<class Type>
vgl_pointset_3d< Type >::vgl_pointset_3d ( )
inline

Default constructor.

Definition at line 35 of file vgl_pointset_3d.h.

◆ vgl_pointset_3d() [2/5]

template<class Type>
vgl_pointset_3d< Type >::vgl_pointset_3d ( std::vector< vgl_point_3d< Type > >  points)
inline

Construct from a list.

Definition at line 38 of file vgl_pointset_3d.h.

◆ vgl_pointset_3d() [3/5]

template<class Type>
vgl_pointset_3d< Type >::vgl_pointset_3d ( std::vector< vgl_point_3d< Type > >  points,
std::vector< vgl_vector_3d< Type > >  normals 
)
inline

Definition at line 40 of file vgl_pointset_3d.h.

◆ vgl_pointset_3d() [4/5]

template<class Type>
vgl_pointset_3d< Type >::vgl_pointset_3d ( std::vector< vgl_point_3d< Type > >  points,
std::vector< Type >  scalars 
)
inline

Definition at line 43 of file vgl_pointset_3d.h.

◆ vgl_pointset_3d() [5/5]

template<class Type>
vgl_pointset_3d< Type >::vgl_pointset_3d ( std::vector< vgl_point_3d< Type > >  points,
std::vector< vgl_vector_3d< Type > >  normals,
std::vector< Type >  scalars 
)
inline

Definition at line 46 of file vgl_pointset_3d.h.

Member Function Documentation

◆ add_point()

template<class Type>
void vgl_pointset_3d< Type >::add_point ( vgl_point_3d< Type > const &  p)
inline

incrementally grow points, duplicate points are allowed.

Definition at line 52 of file vgl_pointset_3d.h.

◆ add_point_with_normal()

template<class Type>
void vgl_pointset_3d< Type >::add_point_with_normal ( vgl_point_3d< Type > const &  p,
vgl_vector_3d< Type > const &  normal 
)
inline

incrementally grow points and normals duplicate pairs are allowed.

Definition at line 56 of file vgl_pointset_3d.h.

◆ add_point_with_normal_and_scalar()

template<class Type>
void vgl_pointset_3d< Type >::add_point_with_normal_and_scalar ( vgl_point_3d< Type > const &  p,
vgl_vector_3d< Type > const &  normal,
Type  sc 
)
inline

Definition at line 62 of file vgl_pointset_3d.h.

◆ add_point_with_scalar()

template<class Type>
void vgl_pointset_3d< Type >::add_point_with_scalar ( vgl_point_3d< Type > const &  p,
Type  sc 
)
inline

Definition at line 59 of file vgl_pointset_3d.h.

◆ append_pointset()

template<class Type>
void vgl_pointset_3d< Type >::append_pointset ( vgl_pointset_3d< Type > const &  ptset)
inline

Definition at line 96 of file vgl_pointset_3d.h.

◆ clear()

template<class Type>
void vgl_pointset_3d< Type >::clear ( )
inline

Definition at line 78 of file vgl_pointset_3d.h.

◆ has_normals()

template<class Type>
bool vgl_pointset_3d< Type >::has_normals ( ) const
inline

accessors.

Definition at line 66 of file vgl_pointset_3d.h.

◆ has_scalars()

template<class Type>
bool vgl_pointset_3d< Type >::has_scalars ( ) const
inline

Definition at line 67 of file vgl_pointset_3d.h.

◆ n()

template<class Type>
vgl_vector_3d<Type> vgl_pointset_3d< Type >::n ( unsigned  i) const
inline

Definition at line 71 of file vgl_pointset_3d.h.

◆ normals()

template<class Type>
std::vector<vgl_vector_3d<Type> > vgl_pointset_3d< Type >::normals ( ) const
inline

Definition at line 76 of file vgl_pointset_3d.h.

◆ npts()

template<class Type>
size_t vgl_pointset_3d< Type >::npts ( ) const
inline

Definition at line 68 of file vgl_pointset_3d.h.

◆ operator!=()

template<class Type>
bool vgl_pointset_3d< Type >::operator!= ( vgl_pointset_3d< Type >const &  spl) const
inline

Definition at line 129 of file vgl_pointset_3d.h.

◆ operator==()

template<class Type >
bool vgl_pointset_3d< Type >::operator== ( const vgl_pointset_3d< Type > &  spl) const

Equality operator.

Definition at line 134 of file vgl_pointset_3d.h.

◆ p()

template<class Type>
vgl_point_3d<Type> vgl_pointset_3d< Type >::p ( unsigned  i) const
inline

Definition at line 70 of file vgl_pointset_3d.h.

◆ points()

template<class Type>
std::vector<vgl_point_3d<Type> > vgl_pointset_3d< Type >::points ( ) const
inline

Definition at line 75 of file vgl_pointset_3d.h.

◆ sc()

template<class Type>
Type vgl_pointset_3d< Type >::sc ( unsigned  i) const
inline

Definition at line 73 of file vgl_pointset_3d.h.

◆ scalars()

template<class Type>
std::vector< Type > vgl_pointset_3d< Type >::scalars ( ) const
inline

Definition at line 77 of file vgl_pointset_3d.h.

◆ set_normal()

template<class Type>
bool vgl_pointset_3d< Type >::set_normal ( unsigned  i,
vgl_vector_3d< Type > const &  n 
)
inline

Definition at line 116 of file vgl_pointset_3d.h.

◆ set_point()

template<class Type>
bool vgl_pointset_3d< Type >::set_point ( unsigned  i,
vgl_point_3d< Type > const &  p 
)
inline

Definition at line 112 of file vgl_pointset_3d.h.

◆ set_points()

template<class Type>
void vgl_pointset_3d< Type >::set_points ( std::vector< vgl_point_3d< Type > > const &  points)
inline

Definition at line 79 of file vgl_pointset_3d.h.

◆ set_points_with_normals()

template<class Type>
void vgl_pointset_3d< Type >::set_points_with_normals ( std::vector< vgl_point_3d< Type > > const &  points,
std::vector< vgl_vector_3d< Type > > const &  normals 
)
inline

Definition at line 82 of file vgl_pointset_3d.h.

◆ set_points_with_normals_and_scalars()

template<class Type>
void vgl_pointset_3d< Type >::set_points_with_normals_and_scalars ( std::vector< vgl_point_3d< Type > > const &  points,
std::vector< vgl_vector_3d< Type > > const &  normals,
std::vector< Type > const &  scalars 
)
inline

Definition at line 90 of file vgl_pointset_3d.h.

◆ set_points_with_scalars()

template<class Type>
void vgl_pointset_3d< Type >::set_points_with_scalars ( std::vector< vgl_point_3d< Type > > const &  points,
std::vector< Type > const &  scalars 
)
inline

Definition at line 86 of file vgl_pointset_3d.h.

◆ set_scalar()

template<class Type>
bool vgl_pointset_3d< Type >::set_scalar ( unsigned  i,
Type  sc 
)
inline

Definition at line 121 of file vgl_pointset_3d.h.

◆ size()

template<class Type>
size_t vgl_pointset_3d< Type >::size ( ) const
inline

Definition at line 69 of file vgl_pointset_3d.h.

Member Data Documentation

◆ has_normals_

template<class Type>
bool vgl_pointset_3d< Type >::has_normals_
private

members.

Definition at line 28 of file vgl_pointset_3d.h.

◆ has_scalars_

template<class Type>
bool vgl_pointset_3d< Type >::has_scalars_
private

Definition at line 29 of file vgl_pointset_3d.h.

◆ normals_

template<class Type>
std::vector<vgl_vector_3d<Type> > vgl_pointset_3d< Type >::normals_
private

Definition at line 31 of file vgl_pointset_3d.h.

◆ points_

template<class Type>
std::vector<vgl_point_3d<Type> > vgl_pointset_3d< Type >::points_
private

Definition at line 30 of file vgl_pointset_3d.h.

◆ scalars_

template<class Type>
std::vector< Type > vgl_pointset_3d< Type >::scalars_
private

Definition at line 32 of file vgl_pointset_3d.h.


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