BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
MODELS
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
11
# include <
BALL/VIEW/MODELS/modelProcessor.h
>
12
#endif
13
14
namespace
BALL
15
{
16
namespace
VIEW
17
{
18
25
class
BALL_VIEW_EXPORT
ForceModel
:
public
ModelProcessor
26
{
27
public
:
28
29
BALL_CREATE
(
ForceModel
)
30
31
34
37
ForceModel
();
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_
;
100
float
max_length_
;
101
float
base_size_
;
102
float
offset_
;
103
};
104
105
}
// namespace VIEW
106
}
// namspace BALL
107
108
#endif // BALL_VIEW_MODELS_FORCEMODEL_H
Generated by
1.8.3.1