Loading...
Searching...
No Matches
forceModel.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: forceModel.h,v 1.5.18.1 2007/03/25 21:26:06 oliver Exp $
//
#ifndef BALL_VIEW_MODELS_FORCEMODEL_H
#define BALL_VIEW_MODELS_FORCEMODEL_H
#ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
# include <BALL/VIEW/MODELS/modelProcessor.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT ForceModel: public ModelProcessor
{
public:
BALL_CREATE(ForceModel)
//@{
ForceModel();
ForceModel(const ForceModel& add_line_model);
virtual ~ForceModel();
void setScaling(float value)
{ scaling_ = value;}
void setMaxLength(float value)
{ max_length_ = value;}
float getScaling() const
{ return scaling_;}
float getMaxLength() const
{ return max_length_;}
void setBaseSize(float size) { base_size_ = size;}
float getBaseSize() const { return base_size_;}
void setOffset(float off) { offset_ = off;}
float getOffset() const { return offset_;}
virtual Processor::Result operator() (Composite& composite);
protected:
float scaling_;
float max_length_;
float base_size_;
float offset_;
};
} // namespace VIEW
} // namspace BALL
#endif // BALL_VIEW_MODELS_FORCEMODEL_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::Composite
Definition composite.h:74
BALL::Processor::Result
int Result
Definition processor.h:36
BALL::VIEW::ForceModel::scaling_
float scaling_
Definition forceModel.h:99
BALL::VIEW::ForceModel::base_size_
float base_size_
Definition forceModel.h:101
BALL::VIEW::ForceModel::getBaseSize
float getBaseSize() const
Definition forceModel.h:67
BALL::VIEW::ForceModel::setBaseSize
void setBaseSize(float size)
Definition forceModel.h:64
BALL::VIEW::ForceModel::getScaling
float getScaling() const
Definition forceModel.h:56
BALL::VIEW::ForceModel::setScaling
void setScaling(float value)
Definition forceModel.h:48
BALL::VIEW::ForceModel::max_length_
float max_length_
Definition forceModel.h:100
BALL::VIEW::ForceModel::setOffset
void setOffset(float off)
Definition forceModel.h:70
BALL::VIEW::ForceModel::setMaxLength
void setMaxLength(float value)
Definition forceModel.h:52
BALL::VIEW::ForceModel::ForceModel
ForceModel()
BALL::VIEW::ForceModel::offset_
float offset_
Definition forceModel.h:102
BALL::VIEW::ForceModel::getMaxLength
float getMaxLength() const
Definition forceModel.h:60
BALL::VIEW::ForceModel::getOffset
float getOffset() const
Definition forceModel.h:73
BALL::VIEW::ModelProcessor::ModelProcessor
ModelProcessor()
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
modelProcessor.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13