DGtal  1.1.0
Knot_5_1.h
1 
17 #pragma once
18 
31 #if defined(Knot_5_1_RECURSES)
32 #error Recursive header files inclusion detected in Knot_5_1.h
33 #else // defined(Knot_5_1_RECURSES)
34 
35 #define Knot_5_1_RECURSES
36 
37 #if !defined Knot_5_1_h
38 
39 #define Knot_5_1_h
40 
42 // Inclusions
43 #include <iostream>
44 #include <cmath>
45 #include "DGtal/base/Common.h"
47 
48 namespace DGtal
49 {
50 
52 // class Knot_5_1
58 template <typename TSpace>
59 class Knot_5_1
60 {
61  // ----------------------- Standard services ------------------------------
62 public:
63  typedef TSpace Space;
64  typedef typename TSpace::RealPoint RealPoint;
65  typedef typename TSpace::Point Point;
66 
70  ~Knot_5_1() {}
71 
78  Knot_5_1 ( long double scale_1, long double scale_2, long double scale_3 );
79 
80 
81  // ----------------------- Interface --------------------------------------
82 public:
83 
89  RealPoint x ( long double t ) const;
90 
96  RealPoint xp ( long double t ) const;
97 
98 
103  void selfDisplay ( std::ostream & out ) const;
104 
109  bool isValid() const;
110 
111 
112  // ------------------------- Protected Datas ------------------------------
113 private:
114  // ------------------------- Private Datas --------------------------------
115 private:
116  long double scale[3];
117  // ------------------------- Hidden services ------------------------------
118 protected:
119 
125 
126 private:
127 
133  Knot_5_1 ( const Knot_5_1 & other );
134 
141  Knot_5_1 & operator= ( const Knot_5_1 & other );
142 
143 
144  // ------------------------- Internals ------------------------------------
145 private:
146 
147 }; // end of class Knot_5_1
148 
149 
156 template <typename T>
157 std::ostream&
158 operator<< ( std::ostream & out, const Knot_5_1<T> & object );
159 
160 
161 } // namespace DGtal
162 
163 
165 // Includes inline functions.
166 #if !defined(BUILD_INLINE)
167 #include "DGtal/geometry/curves/parametric/Knot_5_1.ih"
168 #endif
169 
170 
171 // //
173 
174 #endif // !defined Knot_5_1_h
175 
176 #undef Knot_5_1_RECURSES
177 #endif // else defined(Knot_5_1_RECURSES)
DGtal::Knot_5_1::Point
TSpace::Point Point
Definition: Knot_5_1.h:65
DGtal::Knot_5_1::operator=
Knot_5_1 & operator=(const Knot_5_1 &other)
DGtal::Knot_5_1::x
RealPoint x(long double t) const
DGtal::Knot_5_1::RealPoint
TSpace::RealPoint RealPoint
Definition: Knot_5_1.h:64
DGtal::Knot_5_1::Knot_5_1
Knot_5_1(const Knot_5_1 &other)
DGtal::Knot_5_1::isValid
bool isValid() const
DGtal::Knot_5_1::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::Knot_5_1::Knot_5_1
Knot_5_1(long double scale_1, long double scale_2, long double scale_3)
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition: ClosedIntegerHalfPlane.h:49
DGtal::Knot_5_1
Aim: Implement a parametrized knot 5, 1.
Definition: Knot_5_1.h:60
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
DGtal::Knot_5_1::Knot_5_1
Knot_5_1()
Point
MyPointD Point
Definition: testClone2.cpp:383
RealPoint
Z2i::RealPoint RealPoint
Definition: testAstroid2D.cpp:46
DGtal::Knot_5_1::~Knot_5_1
~Knot_5_1()
Definition: Knot_5_1.h:70
DGtal::Knot_5_1::xp
RealPoint xp(long double t) const
DGtal::Knot_5_1::Space
TSpace Space
Definition: Knot_5_1.h:63