SBGEditor Class Reference

This class is the base class for Editor.

Identity

virtual SBCContainerUUID getUUID () const
 Returns the widget UUID.
 
virtual QString getName () const
 Returns the class name.
 
virtual QString getDescription () const
 Returns the menu item text.
 
virtual QPixmap getLogo () const
 Returns the pixmap logo.
 
virtual int getFormat () const
 Returns the format.
 
virtual QKeySequence getShortcut () const
 Returns the shorcut.
 
virtual QString getToolTip () const
 Returns the tool tip.
 

Editing

virtual void beginEditing ()
 Called when editing is about to begin.
 
virtual void endEditing ()
 Called when editing is about to end.
 

Actions

virtual void getActions (SBVector< SBGAction *> &actionVector)
 Gets the editor's actions.
 

Event

virtual void mousePressEvent (QMouseEvent *event)
 Handles mouse press event.
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 Handles mouse release event.
 
virtual void mouseMoveEvent (QMouseEvent *event)
 Handles mouse move event.
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 Handles mouse double click event.
 
virtual void wheelEvent (QWheelEvent *event)
 Handles wheel event.
 
virtual void keyPressEvent (QKeyEvent *event)
 Handles key press event.
 
virtual void keyReleaseEvent (QKeyEvent *event)
 Handles key release event.
 
virtual void handlePressEvent (const SBPosition3 &position, SBNode *node)
 Handles mouse press event.
 
virtual void handleReleaseEvent (const SBPosition3 &position, SBNode *node)
 Handles mouse release event.
 
virtual void handleMoveEvent (const SBPosition3 &position, SBNode *node)
 Handles mouse move event.
 

Display

virtual void display ()
 To display elements in the viewport.
 
virtual void displayForShadow ()
 To display shadowing elements in the viewport.
 
virtual void displayInterface ()
 To display the 2D interface in the viewport (after post-processing)
 

GUI

SBGWindowWidgetgetPropertyWidget () const
 Get the property window.
 
void setPropertyWidget (SBGWindowWidget *propertyWidget)
 Set the property window.
 

GUI attributes

SBGWindowWidgetpropertyWidget
 

Additional Inherited Members

- Signals inherited from SBGWindowWidget
void shown (bool)
 Emitted when the widget is shown or hidden.
 
- Public Member Functions inherited from SBGWindowWidget
virtual ~SBGWindowWidget ()
 Destructor.
 
virtual QString getCitation () const
 Returns the citation information.
 
SBGWindowgetWindow () const
 Returns the pointer to the embedding SAMSON window.
 
virtual void loadSettings (SBGSettings *settings)
 Loads settings.
 
virtual void saveSettings (SBGSettings *settings)
 Saves settings.
 
void loadDefaultSettings ()
 Loads default settings.
 
void saveDefaultSettings ()
 Saves default settings.
 
void setLockedFlag (bool lockedFlag)
 Sets whether the widget is locked (on top)
 
bool getLockedFlag () const
 Returns whether the widget is locked (on top)
 
- Protected Member Functions inherited from SBGWindowWidget
 SBGWindowWidget ()
 
 SBGWindowWidget (SBGWindowWidgetData *dataPointer)
 Builds a particle at position p.