Loading...
Searching...
No Matches
labelModel.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_MODELS_LABELMODEL_H
#define BALL_VIEW_MODELS_LABELMODEL_H
#ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
# include <BALL/VIEW/MODELS/modelProcessor.h>
#endif
#ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
# include <BALL/VIEW/DATATYPE/colorRGBA.h>
#endif
#ifndef BALL_STRUCTURE_GEOMETRICPROPERTIES_H
# include <BALL/STRUCTURE/geometricProperties.h>
#endif
#include <QtGui/QFont>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT LabelModel: public ModelProcessor
{
public:
BALL_CREATE(LabelModel)
enum Mode
{
ALL_ITEMS,
ALL_ATOMS,
ALL_RESIDUES,
ONE_LABEL
};
LabelModel();
LabelModel(const LabelModel& model);
virtual ~LabelModel();
void setFont(const QFont& font) { font_ = font;}
const QFont& getFont() const { return font_;}
void setColor(const ColorRGBA& color) { color_ = color;}
const ColorRGBA& getColor() const { return color_;}
void setMode(Mode mode) { mode_ = mode;}
Mode getType() const { return mode_;}
void setText(const String& text) { text_ = text;}
const String& getText() const { return text_;}
virtual Processor::Result operator() (Composite& composite);
virtual bool createGeometricObjects();
protected:
QFont font_;
ColorRGBA color_;
Mode mode_;
String text_;
Size nr_objects_;
Vector3 center_;
GeometricCenterProcessor center_processor_;
};
} // namespace VIEW
} // namspace BALL
#endif // BALL_VIEW_MODELS_LabelMODEL_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::Composite
Definition composite.h:74
BALL::GeometricCenterProcessor
Definition geometricProperties.h:135
BALL::Processor::Result
int Result
Definition processor.h:36
BALL::String
Definition string.h:57
BALL::VIEW::ColorRGBA
Definition colorRGBA.h:32
BALL::VIEW::LabelModel::mode_
Mode mode_
Definition labelModel.h:114
BALL::VIEW::LabelModel::getType
Mode getType() const
Definition labelModel.h:88
BALL::VIEW::LabelModel::setText
void setText(const String &text)
Definition labelModel.h:91
BALL::VIEW::LabelModel::text_
String text_
Definition labelModel.h:115
BALL::VIEW::LabelModel::center_processor_
GeometricCenterProcessor center_processor_
Definition labelModel.h:118
BALL::VIEW::LabelModel::color_
ColorRGBA color_
Definition labelModel.h:113
BALL::VIEW::LabelModel::nr_objects_
Size nr_objects_
Definition labelModel.h:116
BALL::VIEW::LabelModel::setColor
void setColor(const ColorRGBA &color)
Definition labelModel.h:79
BALL::VIEW::LabelModel::LabelModel
LabelModel(const LabelModel &model)
BALL::VIEW::LabelModel::setMode
void setMode(Mode mode)
Definition labelModel.h:85
BALL::VIEW::LabelModel::createGeometricObjects
virtual bool createGeometricObjects()
BALL::VIEW::LabelModel::Mode
Mode
Definition labelModel.h:44
BALL::VIEW::LabelModel::ONE_LABEL
@ ONE_LABEL
Definition labelModel.h:52
BALL::VIEW::LabelModel::ALL_ATOMS
@ ALL_ATOMS
Definition labelModel.h:48
BALL::VIEW::LabelModel::ALL_RESIDUES
@ ALL_RESIDUES
Definition labelModel.h:50
BALL::VIEW::LabelModel::ALL_ITEMS
@ ALL_ITEMS
Definition labelModel.h:46
BALL::VIEW::LabelModel::font_
QFont font_
Definition labelModel.h:112
BALL::VIEW::LabelModel::~LabelModel
virtual ~LabelModel()
BALL::VIEW::LabelModel::getText
const String & getText() const
Definition labelModel.h:94
BALL::VIEW::LabelModel::center_
Vector3 center_
Definition labelModel.h:117
BALL::VIEW::LabelModel::setFont
void setFont(const QFont &font)
Definition labelModel.h:73
BALL::VIEW::LabelModel::getFont
const QFont & getFont() const
Definition labelModel.h:76
BALL::VIEW::LabelModel::LabelModel
LabelModel()
BALL::VIEW::LabelModel::getColor
const ColorRGBA & getColor() const
Definition labelModel.h:82
BALL::VIEW::ModelProcessor::ModelProcessor
ModelProcessor()
colorRGBA.h
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
geometricProperties.h
modelProcessor.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084