Loading...
Searching...
No Matches
geometricTransformations.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_STRUCTURE_GEOMETRICTRANSFORMATIONS_H
#define BALL_STRUCTURE_GEOMETRICTRANSFORMATIONS_H
#ifndef BALL_COMMON_H
# include <BALL/common.h>
#endif
#ifndef BALL_KERNEL_ATOM_H
# include <BALL/KERNEL/atom.h>
#endif
#ifndef BALL_MATHS_VECTOR3_H
# include <BALL/MATHS/vector3.h>
#endif
#ifndef BALL_MATHS_MATRIX44_H
# include <BALL/MATHS/matrix44.h>
#endif
#ifndef BALL_CONCEPT_PROCESSOR_H
# include <BALL/CONCEPT/processor.h>
#endif
namespace BALL
{
class BALL_EXPORT TranslationProcessor
: public UnaryProcessor<Atom>
{
public:
TranslationProcessor();
TranslationProcessor(const Vector3& translation);
void setTranslation(const Vector3& translation);
const Vector3& getTranslation() const;
virtual Processor::Result operator()(Atom& atom);
private:
Vector3 translation_;
};
class BALL_EXPORT TransformationProcessor
:public UnaryProcessor<Atom>
{
public:
TransformationProcessor();
TransformationProcessor(const Matrix4x4& transformation);
void setTransformation(const Matrix4x4& transformation);
const Matrix4x4& getTransformation() const;
virtual Processor::Result operator()(Atom& atom);
protected:
Matrix4x4 transformation_;
};
} // namespace BALL
#endif // BALL_STRUCTURE_GEOMETRICTRANSFORMATIONS_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
atom.h
BALL::Atom
Definition atom.h:90
BALL::Processor::Result
int Result
Definition processor.h:36
BALL::TransformationProcessor::setTransformation
void setTransformation(const Matrix4x4 &transformation)
BALL::TransformationProcessor::transformation_
Matrix4x4 transformation_
Definition geometricTransformations.h:130
BALL::TransformationProcessor::operator()
virtual Processor::Result operator()(Atom &atom)
Applicator method.
BALL::TransformationProcessor::TransformationProcessor
TransformationProcessor(const Matrix4x4 &transformation)
BALL::TransformationProcessor::getTransformation
const Matrix4x4 & getTransformation() const
BALL::TransformationProcessor::TransformationProcessor
TransformationProcessor()
BALL::TranslationProcessor::setTranslation
void setTranslation(const Vector3 &translation)
BALL::TranslationProcessor::getTranslation
const Vector3 & getTranslation() const
BALL::TranslationProcessor::TranslationProcessor
TranslationProcessor()
BALL::TranslationProcessor::TranslationProcessor
TranslationProcessor(const Vector3 &translation)
BALL::TranslationProcessor::operator()
virtual Processor::Result operator()(Atom &atom)
Applicator method.
BALL::UnaryProcessor< Atom >::UnaryProcessor
UnaryProcessor()
Definition processor.h:69
common.h
BALL::Matrix4x4
TMatrix4x4< float > Matrix4x4
Definition matrix44.h:2184
matrix44.h
BALL
Definition constants.h:13
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084
processor.h
vector3.h