BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
BALL::VIEW::EditOperation Class Reference

#include <BALL/VIEW/KERNEL/editOperation.h>

Public Types

enum  OperationType { DEFAULT, ADDED__ATOM, ADDED__BOND, CHANGED__TYPE }
 

Public Member Functions

 EditOperation ()
 Constructor. More...
 
 EditOperation (Atom *atom, Bond *bond, String description="Added Object", int operation=0)
 
virtual ~EditOperation ()
 Destructor. More...
 

Public Attributes

int operationType
 
Atomatom
 
Bondbond
 
String description
 

Detailed Description

This class represents a single edit operation and stores its type and parameters. This can be used to implement undo functionality.

Definition at line 22 of file editOperation.h.

Member Enumeration Documentation

Enumerator
DEFAULT 
ADDED__ATOM 
ADDED__BOND 
CHANGED__TYPE 

Definition at line 36 of file editOperation.h.

Constructor & Destructor Documentation

BALL::VIEW::EditOperation::EditOperation ( )

Constructor.

BALL::VIEW::EditOperation::EditOperation ( Atom atom,
Bond bond,
String  description = "Added Object",
int  operation = 0 
)
virtual BALL::VIEW::EditOperation::~EditOperation ( )
virtual

Destructor.

Member Data Documentation

Atom* BALL::VIEW::EditOperation::atom

Definition at line 49 of file editOperation.h.

Bond* BALL::VIEW::EditOperation::bond

Definition at line 50 of file editOperation.h.

String BALL::VIEW::EditOperation::description

Definition at line 51 of file editOperation.h.

int BALL::VIEW::EditOperation::operationType

Definition at line 48 of file editOperation.h.