BALL  1.5.0
twoColoredLine.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: twoColoredLine.h,v 1.10.16.1 2007-03-25 21:26:12 oliver Exp $
5 //
6 
7 #ifndef BALL_VIEW_VIEW_PRIMITIVES_TWOCOLOREDLINE_H
8 #define BALL_VIEW_VIEW_PRIMITIVES_TWOCOLOREDLINE_H
9 
10 #ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
12 #endif
13 
14 #ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
16 #endif
17 
18 #ifndef BALL_VIEW_DATATPYE_VERTEX2_H
20 #endif
21 
22 namespace BALL
23 {
24  namespace VIEW
25  {
46  : public GeometricObject,
47  public ColorExtension2,
48  public Vertex2
49  {
50  public:
51 
53 
54 
56 
57 
71 
77  TwoColoredLine(const TwoColoredLine& two_colored_line);
78 
80 
82 
86  virtual ~TwoColoredLine();
87 
96  virtual void clear();
97 
99 
101 
110  void set(const TwoColoredLine& two_colored_line);
111 
115  const TwoColoredLine& operator = (const TwoColoredLine& two_colored_line);
116 
119  void swap(TwoColoredLine& two_colored_line);
120 
122 
124 
131  Vector3 getMiddleVertex() const;
132 
134 
136 
147  virtual bool isValid() const;
148 
161  virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
162 
163  // Method to get all vertices from a geometric object
164  virtual void getVertices(vector<Vector3>& vertices) const;
165 
167  };
168 
169  #ifndef BALL_NO_INLINE_FUNCTIONS
170  # include <BALL/VIEW/PRIMITIVES/twoColoredLine.iC>
171  #endif
172 
173  } // namespace VIEW
174 } // namespace BALL
175 
176 #endif // BALL_VIEW_VIEW_PRIMITIVES_TWOCOLOREDLINE_H
#define BALL_CREATE(name)
Definition: create.h:62
Definition: constants.h:13
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52