BALL 1.5.0
forceModel.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4// $Id: forceModel.h,v 1.5.18.1 2007/03/25 21:26:06 oliver Exp $
5//
6
7#ifndef BALL_VIEW_MODELS_FORCEMODEL_H
8#define BALL_VIEW_MODELS_FORCEMODEL_H
9
10#ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
12#endif
13
14namespace BALL
15{
16 namespace VIEW
17 {
18
26 {
27 public:
28
30
31
34
35
38
41 ForceModel(const ForceModel& add_line_model);
42
45 virtual ~ForceModel();
46
48 void setScaling(float value)
49 { scaling_ = value;}
50
52 void setMaxLength(float value)
53 { max_length_ = value;}
54
56 float getScaling() const
57 { return scaling_;}
58
60 float getMaxLength() const
61 { return max_length_;}
62
64 void setBaseSize(float size) { base_size_ = size;}
65
67 float getBaseSize() const { return base_size_;}
68
70 void setOffset(float off) { offset_ = off;}
71
73 float getOffset() const { return offset_;}
74
76
79
93 virtual Processor::Result operator() (Composite& composite);
94
96
97 protected:
98
99 float scaling_;
102 float offset_;
103 };
104
105 } // namespace VIEW
106} // namspace BALL
107
108#endif // BALL_VIEW_MODELS_FORCEMODEL_H
#define BALL_CREATE(name)
Definition: create.h:62
Definition: constants.h:13
float getBaseSize() const
Definition: forceModel.h:67
void setBaseSize(float size)
Definition: forceModel.h:64
float getScaling() const
Definition: forceModel.h:56
void setOffset(float off)
Definition: forceModel.h:70
void setMaxLength(float value)
Definition: forceModel.h:52
float getMaxLength() const
Definition: forceModel.h:60
float getOffset() const
Definition: forceModel.h:73
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52