Loading...
Searching...
No Matches
editOperation.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_KERNEL_EDITOPERATION_H
#define BALL_VIEW_KERNEL_EDITOPERATION_H
#ifndef BALL_DATATYPE_STRING_H
# include <BALL/DATATYPE/string.h>
#endif
namespace BALL
{
class Atom;
class Bond;
namespace VIEW
{
class BALL_VIEW_EXPORT EditOperation
{
public:
EditOperation();
EditOperation(Atom* atom, Bond* bond, String description= "Added Object", int operation=0);
virtual ~EditOperation();
enum OperationType
{
DEFAULT,
ADDED__ATOM,
ADDED__BOND,
CHANGED__TYPE
// DELETED__ATOM
// DELETED__BOND
//CHANGED__SYSTEM
//MOVED__ATOM
};
int operationType;
Atom* atom;
Bond* bond;
String description;
};
}
}
#endif // BALL_VIEW_KERNEL_EDITOPERATION_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::Atom
Definition atom.h:90
BALL::Bond
Definition bond.h:57
BALL::String
Definition string.h:57
BALL::VIEW::EditOperation::bond
Bond * bond
Definition editOperation.h:50
BALL::VIEW::EditOperation::EditOperation
EditOperation()
Constructor.
BALL::VIEW::EditOperation::OperationType
OperationType
Definition editOperation.h:37
BALL::VIEW::EditOperation::DEFAULT
@ DEFAULT
Definition editOperation.h:38
BALL::VIEW::EditOperation::ADDED__BOND
@ ADDED__BOND
Definition editOperation.h:40
BALL::VIEW::EditOperation::ADDED__ATOM
@ ADDED__ATOM
Definition editOperation.h:39
BALL::VIEW::EditOperation::CHANGED__TYPE
@ CHANGED__TYPE
Definition editOperation.h:41
BALL::VIEW::EditOperation::EditOperation
EditOperation(Atom *atom, Bond *bond, String description="Added Object", int operation=0)
BALL::VIEW::EditOperation::operationType
int operationType
Definition editOperation.h:48
BALL::VIEW::EditOperation::atom
Atom * atom
Definition editOperation.h:49
BALL::VIEW::EditOperation::~EditOperation
virtual ~EditOperation()
Destructor.
BALL::VIEW::EditOperation::description
String description
Definition editOperation.h:51
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
string.h