Virtual Testbed
Ship dynamics simulator for extreme conditions
line.hh
1 #ifndef VTESTBED_IGES_LINE_HH
2 #define VTESTBED_IGES_LINE_HH
3 
4 #include <blitz/array.h>
5 
6 #include <vtestbed/iges/entity.hh>
7 
8 namespace vtb {
9 
10  namespace iges {
11 
13  template <class T>
14  class Line: public Entity {
15 
16  private:
17  typedef blitz::TinyVector<T,3> vec3;
18 
19  private:
20  vec3 _x1, _x2;
21 
22  public:
23 
24  inline
25  Line(const vec3& x1, const vec3& x2):
26  Entity(Entity_type::Line), _x1(x1), _x2(x2) {}
27 
28  protected:
29 
30  void
31  parameters(iges_ostream& out) const override;
32 
33  };
34 
35  }
36 
37 }
38 
39 #endif // vim:filetype=cpp
Entity type 110.
Definition: line.hh:14
Base class for entities.
Definition: iges/entity.hh:17
Main namespace.
Definition: convert.hh:9
Output stream that automatically wraps text for IGES files.
Definition: stream.hh:143