Logo Search packages:      
Sourcecode: ball version File versions

BALL::VIEW::EditableScene Class Reference

#include <editableScene.h>

Inheritance diagram for BALL::VIEW::EditableScene:

BALL::VIEW::Scene BALL::VIEW::ModularWidget BALL::Embeddable BALL::VIEW::ConnectionObject

List of all members.

Detailed Description

Extended 3D view for editing molecules. The editing functionality is implemented as an own mode.

Definition at line 49 of file editableScene.h.

Protected QT overridden virtual methods

QAction * active_stereo_action_
QAction * animation_export_PNG_action_
QAction * animation_export_POV_action_
QAction * animation_export_VRML_action_
List< Cameraanimation_points_
QAction * animation_repeat_action_
AnimationThread * animation_thread_
QAction * cancel_animation_action_
QAction * clear_animation_action_
QMenu * create_coordinate_system_
ModeType current_mode_
QAction * dual_stereo_action_
QAction * dual_stereo_different_display_action_
Size font_size_
list< float > fps_
QAction * fullscreen_action_
bool ignore_pick_
QPoint info_point_
String info_string_
ModeType last_mode_
QByteArray last_state_
QActionGroup * mode_group_
bool mouse_button_is_pressed_
QAction * move_action_
bool need_update_
QAction * no_stereo_action_
Size offscreen_factor_
Vector3 old_trackorigin_
Quaternion old_trackrotation_
bool pick_select_
QAction * picking_action_
bool preview_
QRubberBand * rb_
QAction * record_animation_action_
std::vector< RenderSetuprenderers_
QAction * rotate_action_
bool show_fps_
QAction * start_animation_action_
Camera stereo_camera_
Index stereo_left_eye_
Index stereo_right_eye_
bool stop_animation_
Camera stored_camera_
QAction * switch_grid_
Vector3 system_origin_
String text_
PreciseTime time_
QToolBar * toolbar_
QList< QAction * > toolbar_actions_
bool tracking_initialized_
bool update_running_
bool use_preview_
bool want_to_use_vertex_buffer_
Index x_window_pick_pos_first_
Index x_window_pick_pos_second_
Index x_window_pos_new_
Index x_window_pos_old_
Index y_window_pick_pos_first_
Index y_window_pick_pos_second_
Index y_window_pos_new_
Index y_window_pos_old_
float zoom_factor_
static float animation_smoothness_ = 2
static float mouse_sensitivity_ = 5
static float mouse_wheel_sensitivity_ = 5
static bool offscreen_rendering_ = true
static Position pov_nr_ = 100000
static Position screenshot_nr_ = 100000
static bool show_light_sources_ = false
static Position vrml_nr_ = 100000
void animate_ ()
virtual void buttonPressEvent (ButtonEvent *evt)
virtual void buttonReleaseEvent (ButtonEvent *evt)
void createCoordinateSystem_ (bool at_origin)
String createFPSInfo_ ()
 Estimate current fps and convert into a string.
virtual void customEvent (QEvent *evt)
Index getMoveModeAction_ (const QMouseEvent &e)
Vector3 getTranslationVector_ (const Vector3 &v)
float getXDiff_ ()
float getYDiff_ ()
virtual void init ()
virtual void motionTrackingEvent (MotionTrackingEvent *evt)
virtual void paintGL ()
void pickParent_ (QPoint p)
void processMoveModeMouseEvents_ (QMouseEvent *e)
void processRotateModeMouseEvents_ (QMouseEvent *e)
void readLights_ (const INIFile &inifile)
virtual void resizeEvent (QResizeEvent *event)
void rotateSystem_ ()
void rotateSystemClockwise_ ()
void selectionPressed_ ()
void selectionPressedMoved_ ()
void selectObjects_ ()
virtual void transformationEvent6D (TransformationEvent6D *evt)
void translateSystem_ ()
void writeLights_ (INIFile &inifile) const
void zoomSystem_ ()


virtual bool canHandle (const String &) const
virtual void finalizeWidget (MainControl &main_control)
virtual bool openFile (const String &)
static void registerWidget (ModularWidget *mwidget) throw (Exception::NullPointer)

Debugging and Diagnostics

virtual void dump (std::ostream &s=std::cout, Size depth=0) const
virtual bool eventFilter (QObject *object, QEvent *event)
bool exportPNG (const String &filename)
List< Camera > & getAnimationPoints ()
GLRenderergetGLRenderer ()
ModeType getMode () const
float getMousePositionX ()
float getMousePositionY ()
const StagegetStage () const
StagegetStage ()
const Vector3getTurnPoint () const
bool inMoveMode () const
bool isAnimationRunning () const
bool isUpdateRunning () const
virtual bool isValid () const
void move (Vector3 v)
void moveComposites (const List< Composite * > &composites, Vector3 v)
virtual void paintEvent (QPaintEvent *e)
Position prepareGridTextures (const RegularData3D &grid, const ColorMap &map)
void resetTracking ()
void rotate (float degree_right, float degree_up)
void rotateClockwise (float degree)
void rotateComposites (const List< Composite * > &composites, float degree_right, float degree_up, float degree_clockwise=0)
void setCamera (const Camera &camera)
void setDefaultLighting (bool update_GL=true)
void setFPSEnabled (bool state)
void setFullScreen (bool state)
void setGLRenderer (GLRenderer &renderer)
void setOffScreenRendering (bool enabled, Size factor)
void setTurnPoint (const Vector3 &v)
virtual void setWidgetVisible (bool state)
void showText (const String &text, Size font_size=20)
void updateGL ()
void addGlWindow ()
void clearRecordedAnimation ()
void createCoordinateSystem ()
 Create an coordinate system at current position.
void createCoordinateSystemAtOrigin ()
 Create an coordinate system at origin.
void enterActiveStereo ()
void enterDualStereo ()
void enterDualStereoDifferentDisplays ()
void exitStereo ()
void exportNextPOVRay ()
 Export to POVRay whithout showing file dialog.
String exportPNG ()
 Export PNG image and return the filename.
void exportPOVRay ()
void printScene ()
void restoreViewPoint ()
void setPreview (bool state)
 Enable or disable model previews e.g. while rotating.
void setupViewVolume ()
void showExportPNGDialog ()
 show an dialog to save an PNG file to
void showExportVRMLDialog ()
 opens the VIEW/DIALOGS/GeometryExportDialog for vrml and stl export
void showInfos ()
 Popup informations for object under mouse cursor.
void startAnimation ()
void stopAnimation ()
void storeViewPoint ()
void switchShowGrid ()
virtual void switchShowWidget ()
void switchToLastMode ()
bool usePreview () const
 Returns the state of the preview mode.
static float getAnimationSmoothness ()
static float getMouseSensitivity ()
static float getMouseWheelSensitivity ()
static void setAnimationSmoothness (float value)
static void setMouseSensitivity (float sensitivity)
static void setMouseWheelSensitivity (float sensitivity)
static void setPOVNumber (Position pos)
static void setScreenShotNumber (Position pos)
static void setShowLightSources (bool state)
static void setVRMLNumber (Position pos)
static bool showLightSourcesEnabled ()
static bool stereoBufferSupportTest ()

Public Types

enum  EditMode { EDIT__MODE = PICKING__MODE + 1 }
Type definitions
typedef std::vector< Embeddable * > EmbeddableVector
Type definitions
 Different Mouse Mode actions.
enum  ModeType { ROTATE__MODE = 0, MOVE__MODE, PICKING__MODE }

Public Slots

void computeBondOrders ()
void createNewMolecule ()
int getEditElementType ()
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *e)
void optimizeStructure ()
void saturateWithHydrogens ()
void setEditElementType (int element_number)
virtual void wheelEvent (QWheelEvent *qmouse_event)


void newEditOperation (EditableScene::EditOperation &eo)

Public Member Functions

void addStructure (String name)
virtual void applyPreferences ()
void checkMenu (MainControl &main_control)
 EditableScene (const EditableScene &eScene, QWidget *parent_widget=NULL, const char *name=NULL, Qt::WFlags wflags=0)
 Copy constructor.
 EditableScene (QWidget *parent_widget, const char *name=NULL, Qt::WFlags w_flags=0)
 Default Constructor.
void finalizePreferencesTab (Preferences &preferences)
void initializePreferencesTab (Preferences &preferences)
void initializeWidget (MainControl &main_control)
void setCursor (String c)
void setElementCursor ()
virtual void setMode (ModeType mode)
void setWorkingDirFromFilename_ (String filename)
void showContextMenu (QPoint pos)
virtual void showHelp (const String &url)
virtual ~EditableScene ()
Constructors and Destructor
virtual void clear ()
virtual void destroy ()
Accessors: inspectors and mutators
virtual bool exportScene (Renderer &er) const
virtual void fetchPreferences (INIFile &inifile)
virtual void writePreferences (INIFile &inifile)
Convenience methods
FragmentDBgetFragmentDB () const
MainControlgetMainControl () const
String getWorkingDir ()
 Implemented for convenience.
virtual void setStatusbarText (String text, bool important=false)
void setWorkingDir (const String &dir)
 Implemented for convenience.
const StringgetIdentifier () const
virtual void registerThis ()
void setIdentifier (const String &identifier)
void unregisterThis ()
Accessors: inspectors and mutators
ConnectionObjectgetParent () const
ConnectionObjectgetRoot ()
bool isConnectionObjectRegistered (const ConnectionObject &object)
void registerConnectionObject (ConnectionObject &object)
void unregisterConnectionObject (ConnectionObject &object)
Management of menu and toolbar entries
QAction * insertMenuEntry (Position parent_id, const String &name, const QObject *receiver=0, const char *slot=0, const String &description="", QKeySequence accel=QKeySequence())
virtual void registerForHelpSystem (const QObject *object, const String &url)
void setIcon (const String &filename, bool add_to_main_toolbar=true)
void setMenuHelp (const String &url)
void setMenuHint (const String &hint)
Preferences handling
bool lockComposites ()
bool unlockComposites ()
 Unlock the Composites.
void set (const Scene &scene)

Protected Slots

void activatedOrderItem_ (QAction *action)
void addStructure_ ()
void atomProperties_ ()
void changeBondOrder_ ()
void changeElement_ ()
void createMolecule_ ()
void deleteAtom_ ()
void deleteBond_ ()
virtual void editMode_ ()
void moveAtom_ ()
void setFormalCharge_ ()
Protected slots
virtual void dragEnterEvent (QDragEnterEvent *e)
virtual void dropEvent (QDropEvent *e)
void dummySlot ()
virtual void moveMode_ ()
virtual void pickingMode_ ()
virtual void resetCamera_ ()
 Reset the camera to standard values.
virtual void resetRepresentationsForRenderer_ (RenderSetup &rs)
virtual void rotateMode_ ()
virtual void setViewPoint_ ()
 Set the viewpoint.
virtual void showViewPoint_ ()
 Show the viewpoint and the look at point in the statusline of the mainwidget.

Protected Member Functions

virtual void addToolBarEntries (QToolBar *tb)
void changeBondOrder_ (Index delta)
void deselect_ (bool update=true)
String getBondOrderString_ (Index order)
void getClickedItems_ (int x, int y)
List< AtomContainer * > getContainers_ ()
 ******************** Helper Functions *************************
TVector2< float > getScreenPosition_ (Vector3 vec)
void init_ ()
void insert_ (int x_, int y_, PDBAtom &atom_)
virtual void keyPressEvent (QKeyEvent *e)
 Catch key events.
void merge_ (Composite *a1, Composite *a2)
virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void onNotify (Message *message)
void onNotify_ (Message *message)
virtual bool reactToKeyEvent_ (QKeyEvent *e)
void renderGrid_ ()
Protected notification methods
void notify_ (Message &message)
void notify_ (Message *message)

Static Protected Member Functions

static Size countInstances_ (const std::type_info &type)
static EmbeddablegetInstance_ (const std::type_info &type, const String &identifier)
static EmbeddablegetInstance_ (const std::type_info &type, Position index)
static void registerInstance_ (const std::type_info &type, const Embeddable *instance)
static void unregisterInstance_ (const Embeddable *instance)

Protected Attributes

QAction * add_hydrogens_action_
Position atom_number_
Vector3 atom_pos_
int atomic_number_
int bond_order_
QAction * bondorders_action_
bool default_visible_
QAction * edit_id_
QAction * element_action_
FragmentDB fragment_db_
bool fragment_db_initialized_
QAction * last_action_
Qt::MouseButtons last_buttons_
Position last_y_
QList< QAction * > main_toolbar_actions_
QPoint menu_point_
QAction * new_molecule_action_
QAction * optimize_action_
bool show_window_enty_
bool temp_move_
vector< EditOperation > undo_
QAction * window_menu_entry_

Static Protected Attributes

static bool only_highlighted_ = true


class  EditOperation

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index