MIRA
|
2D view of a scene that may contain different visualization objects which show the actual content of the scene. More...
#include <views/Visualization2DView.h>
Classes | |
class | UI |
Signals | |
void | editorClosed (EditorPart *editor) |
void | editorDestroyed (EditorPart *editor) |
void | windowTitleChanged (EditorPartWindow *editor) |
Public Member Functions | |
template<typename Reflector > | |
void | reflect (Reflector &r) |
virtual void | addVisualization (Visualization *vis) |
Adds an existing visualization to this view. More... | |
virtual void | moveUpVisualization (Visualization *vis) |
Change order of visualizations in the view, move the specified visualization up. More... | |
virtual void | moveDownVisualization (Visualization *vis) |
Change order of visualizations in the view, move the specified visualization down. More... | |
virtual void | addTool (VisualizationTool *tool) |
Adds an existing tool to this view. More... | |
virtual const Class & | supportedVisualizationClass () const |
Derived visualization views must return the base class of their supported visualizations. More... | |
virtual const Class & | supportedVisualizationToolClass () const |
Derived visualization views may return the base class of their supported tools. More... | |
virtual QGraphicsScene * | getSceneManager () |
virtual QGraphicsView * | getViewManager () |
virtual const std::string & | getFixedFrame () const |
virtual const std::string & | getCameraFrame () const |
virtual const Camera & | getCamera () const |
Obtains the current camera settings (position, orientation, etc.) of the views own camera. More... | |
virtual void | setCamera (const Camera &camera) |
Sets the current camera settings (position, orientation, etc.) of the views own camera. More... | |
virtual float | getToolBaseZValue () const |
Obtains the Z value all tools should adhere to to ensure that they will always be above regular visualizations. More... | |
void | reflect (XMLDeserializer &r) |
Specialization of reflect method for XML. More... | |
void | reflect (XMLSerializer &r) |
Specialization of reflect method for XML. More... | |
virtual void | removeVisualization (Visualization *vis) |
Remove the specified visualization from this view. More... | |
const std::list< Visualization * > & | getVisualizations () const |
const std::vector< VisualizationTool * > & | getTools () const |
VisualizationControlPage * | getControl () |
Returns pointer to VisualizationControlPage (or NULL, if no such page was created yet. More... | |
virtual Object * | getAdapter (const Class &adapter) |
Returns an object which is an instance of the given class associated with this object. More... | |
virtual const Class & | defaultVisualizationClass () const |
If a default visualization class is provided, this class is used to instantiate a default visualization for data objects, no other specialized visualization is found for. More... | |
void | setUpdateInterval (int interval) |
int | getUpdateInterval () |
VisualizationTool * | getActiveTool () |
Returns the current active tool, or NULL of no tool is active. More... | |
void | activateTool (VisualizationTool *tool) |
void | setOfferAuxiliaryVisualizations (bool on) |
virtual void | init (IWorkbenchPartSite *site) |
Is called by the workbench. More... | |
IWorkbenchPartSite * | getSite () |
virtual QImage | captureContent () |
Returns the content of the editor part as QImage. More... | |
void | setWidget (QWidget *widget) |
QWidget * | widget () const |
EditorPartTitleBar * | getTitleBar () |
void | undock () |
Undocks the window from the EditorPartArea and makes it floating. More... | |
void | dock () |
Docks the window back to the EditorPartArea. More... | |
bool | isDocked () const |
Returns true, if the window is docked in the EditorPartArea. More... | |
void | setOnTop (bool onTop) |
Makes the window stay on top of other windows. More... | |
bool | isOnTop () const |
Returns true, if the window stays on top of other windows. More... | |
void | showDecorations (bool show) |
void | setAutoHideDecorations (bool on) |
virtual void | activate () |
Is called by the Workbench to inform the Part that is being activated by the user. More... | |
virtual void | deactivate () |
Is called by the Workbench to inform the Part that is being deactivated since another Part got the focus. More... | |
bool | isActivated () const |
Returns true if this ViewPart currently has the focus and hence the users attention. More... | |
Class const & | getClass () const |
call the virtual internalGetClass(). More... | |
Static Public Member Functions | |
static PseudoClass const & | CLASS () |
Protected Slots | |
void | onMinimized () |
void | onMaximized () |
void | onRestored () |
void | onUndock () |
void | onDock () |
void | onOnTop (bool onTop) |
Protected Member Functions | |
virtual void | update (Duration dt) |
Is called by this class within the update timer event to update the view. More... | |
virtual QWidget * | createVisualizationPart () |
virtual void | resetView () |
virtual void | saveContentToFile () |
virtual void | setCameraFrame (const TransformProperty &frame) |
virtual QWidget * | createPartControl () |
Must be overloaded in subclasses to create the actual widget for this EditorPart. More... | |
void | startUpdateTimer () |
virtual void | timerEvent (QTimerEvent *) |
bool | eventFilter (QObject *obj, QEvent *event) |
void | keyPressEvent (QKeyEvent *event) |
void | keyReleaseEvent (QKeyEvent *event) |
void | focusOutEvent (QFocusEvent *event) |
std::string | getChannelIDFromMimeData (const QMimeData *mimeData) |
std::list< ClassProxy > | getVisualizationsFor (const std::string &channelID) |
void | dragEnterEventImpl (QDragEnterEvent *event) |
void | dropEventImpl (QDropEvent *event, QWidget *widget) |
void | destroyVisualizations () |
void | destroyTools () |
QMenu * | getViewMenu () |
Returns the optional editor menu that is shown when the user clicks the editor menu tool button. More... | |
virtual void | closeEvent (QCloseEvent *) |
virtual void | paintEvent (QPaintEvent *paintEvent) |
virtual void | changeEvent (QEvent *event) |
void | setActive (bool activate) |
virtual void | windowStateChanged (Qt::WindowStates oldState, Qt::WindowStates newState) |
void | updateDecorations () |
void | updateStateButtons () |
virtual Class const & | internalGetClass () const =0 |
Protected Attributes | |
TransformProperty | mFixedFrame |
TransformProperty | mCameraFrame |
Friends | |
class | UI |
2D view of a scene that may contain different visualization objects which show the actual content of the scene.
|
inline |
|
virtual |
Adds an existing visualization to this view.
The view will take ownership of the visualization and will destroy it upon its own deletion.
Reimplemented from VisualizationView.
|
virtual |
Change order of visualizations in the view, move the specified visualization up.
The base VisualizationView just changes the order in the stored list of visualizations. Subclasses should overwrite this method to adapt their respective GUI accordingly.
Reimplemented from VisualizationView.
|
virtual |
Change order of visualizations in the view, move the specified visualization down.
The base VisualizationView just changes the order in the stored list of visualizations. Subclasses should overwrite this method to adapt their respective GUI accordingly.
Reimplemented from VisualizationView.
|
virtual |
Adds an existing tool to this view.
The view will take ownership of the tool and will destroy it upon its own deletion.
Reimplemented from VisualizationView.
|
virtual |
Derived visualization views must return the base class of their supported visualizations.
Implements VisualizationView.
|
virtual |
Derived visualization views may return the base class of their supported tools.
The default implementation returns a null-class to indicate that no tools are supported.
Reimplemented from VisualizationView.
|
protectedvirtual |
Is called by this class within the update timer event to update the view.
The visualizations of the view have been updated before this method is called. The update cycle must be enabled by calling startUpdateTimer() after the derived class and its GUI components have been enabled
Implements VisualizationView.
|
protectedvirtual |
Implements VisualizationView.
|
protectedvirtual |
Reimplemented from VisualizationView.
|
protectedvirtual |
Reimplemented from VisualizationView.
|
virtual |
Implements IVisualization2DSite.
|
virtual |
Implements IVisualization2DSite.
|
inlinevirtual |
Implements IVisualizationSiteTransformable.
|
inlinevirtual |
Implements IVisualizationSiteTransformable.
|
virtual |
Obtains the current camera settings (position, orientation, etc.) of the views own camera.
Implements IVisualization2DSite.
|
virtual |
Sets the current camera settings (position, orientation, etc.) of the views own camera.
Implements IVisualization2DSite.
|
virtual |
Obtains the Z value all tools should adhere to to ensure that they will always be above regular visualizations.
Implements IVisualization2DSite.
|
inherited |
Specialization of reflect method for XML.
|
inherited |
Specialization of reflect method for XML.
|
inlineprotectedvirtualinherited |
Reimplemented in Visualization3DView.
|
virtualinherited |
Remove the specified visualization from this view.
The view will give up its ownership of the visualization and the Visualization must be destroyed outside of this view.
|
inherited |
|
inherited |
|
inherited |
Returns pointer to VisualizationControlPage (or NULL, if no such page was created yet.
Returns an object which is an instance of the given class associated with this object.
Returns nullptr if no such object can be found. The implementation if IAdaptable is responsible for destroying the instance of the created object.
Reimplemented from WorkbenchPart.
|
inlinevirtualinherited |
If a default visualization class is provided, this class is used to instantiate a default visualization for data objects, no other specialized visualization is found for.
If no default visualization class exists, such data objects can not be visualized (the default behavior).
|
protectedvirtualinherited |
Must be overloaded in subclasses to create the actual widget for this EditorPart.
This EditorPart should be set as parent for the created widget.
Implements EditorPart.
|
inherited |
|
inherited |
|
inlineinherited |
Returns the current active tool, or NULL of no tool is active.
|
inherited |
|
inlineinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
Is called by the workbench.
The WorkbenchPart should initialize itself and my store the pointer tothe IWorkbenchPartSite interface for later use.
Implements WorkbenchPart.
|
inherited |
|
virtualinherited |
Returns the content of the editor part as QImage.
Can be reimplemented by subclasses to provide special capturing techniques that are e.g. required by OpenQL widgets.
Reimplemented in Visualization3DView.
|
protectedinherited |
Returns the optional editor menu that is shown when the user clicks the editor menu tool button.
An EditorPart can add items to this menu within it's createPartControl() method, by calling this method and populating items to the menu.
|
protectedvirtualinherited |
|
signalinherited |
|
signalinherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
Undocks the window from the EditorPartArea and makes it floating.
|
inlineinherited |
Docks the window back to the EditorPartArea.
|
inlineinherited |
Returns true, if the window is docked in the EditorPartArea.
|
inlineinherited |
Makes the window stay on top of other windows.
|
inlineinherited |
Returns true, if the window stays on top of other windows.
|
inherited |
|
inherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
signalinherited |
|
virtualinherited |
Is called by the Workbench to inform the Part that is being activated by the user.
Implements IWorkbenchPart.
Reimplemented in ViewPart.
|
virtualinherited |
Is called by the Workbench to inform the Part that is being deactivated since another Part got the focus.
Implements IWorkbenchPart.
Reimplemented in ViewPart.
|
inlineinherited |
Returns true if this ViewPart currently has the focus and hence the users attention.
|
inlineinherited |
call the virtual internalGetClass().
|
inlinestaticinherited |
|
protectedpure virtualinherited |
|
friend |
|
protectedinherited |
|
protectedinherited |