BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
modelProcessor.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: modelProcessor.h,v 1.19.20.1 2007/03/28 13:51:47 amoll Exp $
5 //
6 
7 #ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
8 #define BALL_VIEW_MODELS_MODELPROCESSOR_H
9 
10 #ifndef BALL_CONCEPT_COMPOSITE_H
11 # include <BALL/CONCEPT/composite.h>
12 #endif
13 
14 #ifndef BALL_CONCEPT_PROPERTY_H
15 # include <BALL/CONCEPT/property.h>
16 #endif
17 
18 #ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
20 #endif
21 
22 namespace BALL
23 {
24  namespace VIEW
25  {
38  : public UnaryProcessor<Composite>,
39  public PropertyManager
40  {
41  public:
42 
44 
45 
47 
49  ModelProcessor(const ModelProcessor& model_processor);
50 
53  virtual ~ModelProcessor();
54 
56  virtual void clear();
57 
59  virtual bool isValid() const
60  {return true;};
61 
65  virtual void clearComposites()
66  {};
67 
69  virtual void dump(std::ostream& /*s = std::cout*/, Size /*depth = 0*/) const
70  {};
71 
74  { return geometric_objects_;}
75 
78  { return geometric_objects_;}
79 
81  void setDrawingPrecision(Index precision);
82 
84  Index getDrawingPrecision() const;
85 
87  void setSurfaceDrawingPrecision(float precision);
88 
90  float getSurfaceDrawingPrecision() const;
91 
97  virtual bool createGeometricObjects()
98  { return true;}
99 
100  protected:
101 
102  //_
104 
105  //_
107 
108  //_
110  };
111 
112  } // namespace VIEW
113 } // namespace BALL
114 
115 #endif // BALL_VIEW_MODELS_MODELPROCESSOR_H
#define BALL_CREATE(name)
Definition: create.h:62
GeometricObjectList geometric_objects_
GeometricObjectList & getGeometricObjects()
Return the list with the created geometric objects.
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
virtual bool isValid() const
virtual void clearComposites()
const GeometricObjectList & getGeometricObjects() const
Return the list with the created geometric objects.
virtual bool createGeometricObjects()
std::list< GeometricObject * > GeometricObjectList
virtual void dump(std::ostream &, Size) const