AAPlane.h
Go to the documentation of this file.
1 #ifndef __GfxTL__AAPLANE_HEADER__
2 #define __GfxTL__AAPLANE_HEADER__
3 
4 namespace GfxTL
5 {
6  template< class PointT >
7  class AAPlane
8  {
9  public:
10  typedef PointT PointType;
11  typedef typename PointType::ScalarType ScalarType;
12 
13  AAPlane();
14  AAPlane(unsigned int axis, ScalarType value);
15  AAPlane(unsigned int axis, const PointType& p);
16  inline ScalarType operator()(const PointType& p) const;
17  void Set(unsigned int axis, ScalarType value);
18  inline unsigned int Axis() const;
19  inline ScalarType Value() const;
20  void Value(ScalarType v);
21 
22  private:
23  unsigned int _axis;
24  ScalarType _value;
25  };
26 
27  template< class PointT >
29  const PointType& p) const
30  {
31  return p[_axis] - _value;
32  }
33 
34  template< class PointT >
35  unsigned int AAPlane< PointT >::Axis() const
36  {
37  return _axis;
38  }
39 
40  template< class PointT >
42  {
43  return _value;
44  }
45 
46  template< class PointT >
48  {
49  _value = v;
50  }
51 };
52 
53 #include "AAPlane.hpp"
54 
55 #endif
GfxTL::AAPlane::AAPlane
AAPlane()
Definition: AAPlane.hpp:5
GfxTL::AAPlane::operator()
ScalarType operator()(const PointType &p) const
Definition: AAPlane.h:28
GfxTL::AAPlane::Axis
unsigned int Axis() const
Definition: AAPlane.h:35
AAPlane.hpp
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
GfxTL::AAPlane::ScalarType
PointType::ScalarType ScalarType
Definition: AAPlane.h:11
GfxTL::AAPlane
Definition: AAPlane.h:7
GfxTL::AAPlane::Value
ScalarType Value() const
Definition: AAPlane.h:41
armarx::PointT
pcl::PointXYZRGBL PointT
Definition: Common.h:28
GfxTL
Definition: AABox.h:8
GfxTL::AAPlane::PointType
PointT PointType
Definition: AAPlane.h:10
armarx::ctrlutil::v
double v(double t, double v0, double a0, double j)
Definition: CtrlUtil.h:39
GfxTL::AAPlane::Set
void Set(unsigned int axis, ScalarType value)
Definition: AAPlane.hpp:23