OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::ViewerView Class Reference

#include "ViewerView.h"

Inheritance diagram for ot::ViewerView:
Viewer ot::WidgetView

Public Member Functions

 ViewerView ()=delete
 
 ViewerView (ot::UID _modelID, ot::UID _viewerID, double _scaleWidth, double _scaleHeight, int _backgroundR, int _backgroundG, int _backgroundB, int _overlayTextR, int _overlayTextG, int _overlayTextB)
 
virtual ~ViewerView ()
 
virtual QWidget * getViewWidget (void) override
 Returns the widget that is set to this widget view.
 
- Public Member Functions inherited from Viewer
 Viewer ()=delete
 
 Viewer (ot::UID modelID, ot::UID viewerID, double scaleWidth, double scaleHeight, int backgroundR, int backgroundG, int backgroundB, int overlayTextR, int overlayTextG, int overlayTextB)
 
virtual ~Viewer ()
 
void reset ()
 
void refresh (bool _ignoreUpdateSettingsRequest=true)
 
void setClearColorAutomatic (int backgroundR, int backgroundG, int backgroundB, int foregroundR, int foregroundG, int foregroundB)
 
void removeOverlay (void)
 
void setOverlayText (const std::string &text)
 
ot::UID getViewerID (void)
 
void detachFromModel (void)
 
ot::PlotManager * get1DPlot (void) const
 
void setTabNames (const std::string &_osgViewTabName, const std::string &_plotTabName, const std::string &_versionGraphTabName)
 
void set1DPlotItemSelected (unsigned long long treeItemID, bool controlPressed)
 
void reset1DPlotItemSelection (void)
 
RubberbandgetRubberband (void)
 
void createRubberband (ot::serviceID_t _senderId, std::string &_note, const std::string &_configurationJson)
 
void finishRubberbandExecution (void)
 
void cancelRubberband (void)
 
void settingsItemChanged (const ot::Property *_property)
 
bool workingPlaneSettingsItemChanged (const std::string &_logicalName, const ot::Property *_item, bool &_settingsUpdateRequired)
 
bool axisCrossSettingsItemChanged (const std::string &_logicalName, const ot::Property *_item, bool &_settingsUpdateRequired)
 
bool geometrySettingsItemChanged (const std::string &_logicalName, const ot::Property *_item, bool &_settingsUpdateRequired)
 
bool displaySettingsItemChanged (const std::string &_logicalName, const ot::Property *_item, bool &_settingsUpdateRequired)
 
void toggleWorkingPlane (void)
 
void setWorkingPlaneTransform (osg::Matrix matrix)
 
osg::Matrix getWorkingPlaneTransform (void)
 
void toggleAxisCross (void)
 
void toggleCenterAxisCross (void)
 
void toggleCutplane (void)
 
void setLightSourceDistance (const std::string &value)
 
void freeze3DView (bool flag)
 
void addHandler (HandlerBase *handler)
 
void removeHandler (HandlerBase *handler)
 
bool hasHandlers (void)
 
void processHoverViewHandlers (osgUtil::LineSegmentIntersector *intersector)
 
HandlerBasegetCurrentHandler (void)
 
ModelgetModel (void)
 
bool propertyGridValueChanged (const ot::Property *_property)
 
void enableClipPlane (osg::Vec3d normal, osg::Vec3d point)
 
void updateClipPlane (osg::Vec3d normal, osg::Vec3d point)
 
void disableClipPlane (void)
 
void showClipPlaneHandles (void)
 
void hideClipPlaneHandles (void)
 
void setCursorText (const std::string &text)
 
void setFreezeWorkingPlane (bool flag)
 
bool getFreezeWorkingPlane ()
 
 Viewer (const int left, const int top, const int width, const int height)
 
Vieweroperator<< (const TopoDS_Shape &shape)
 
void AddShape (const TopoDS_Shape &shape)
 
void StartMessageLoop ()
 Starts message loop.
 
- Public Member Functions inherited from ot::WidgetView
 WidgetView (WidgetViewBase::ViewType _viewType)
 
virtual ~WidgetView ()
 
virtual void setViewWidgetFocus (void)
 Sets the input focus to the view widget. Custom widget views with nested widgets can override this method to set the focus to the correct widget. By default the root widget (widget returned by WidgetView::getViewWidget()) will get the focus set.
 
void setViewData (const WidgetViewBase &_data)
 
WidgetViewBasegetViewData (void)
 
const WidgetViewBasegetViewData (void) const
 
ads::CDockWidget * getViewDockWidget (void) const
 Returns the dock widget that belongs to this widget view.
 
QAction * getViewToggleAction (void) const
 Returns the dock widget toggle visibility action. Returns 0 if no widget view is set.
 
void setViewIsPermanent (bool _permanent=true)
 Permanent views wont be removed from the widget view manager when calling remove view.
 
bool getViewIsPermanent (void) const
 Permanent views wont be removed from the widget view manager when calling remove view.
 
void setViewContentModified (bool _isModified)
 Set the view modified state. Modified views will change the title to display an unsaved change.
 
bool getViewContentModified (void) const
 
QString getCurrentViewTitle (void) const
 Returns the widget view title that is currently displayed.
 
void setAsCurrentViewTab (void)
 
bool isCurrentViewTab (void) const
 

Additional Inherited Members

- Public Types inherited from ot::WidgetView
enum  InsertFlag { NoInsertFlags = 0 << 0 , KeepCurrentFocus = 1 << 0 }
 
typedef ot::Flags< InsertFlagInsertFlags
 
- Static Public Member Functions inherited from ot::WidgetView
static std::string createStoredViewName (const WidgetViewBase &_view)
 
static std::string createStoredViewName (const std::string &_entityName, WidgetViewBase::ViewType _viewType)
 Creates the name that should be used in the view management logic. The resulted name has the following syntax: <entityName>$<viewTypeString>
 
- Protected Member Functions inherited from Viewer
virtual void paintGL () override
 
virtual void resizeGL (int width, int height) override
 
virtual void initializeGL () override
 
virtual void mouseDoubleClickEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 
virtual void leaveEvent (QEvent *event) override
 
virtual void enterEvent (QEnterEvent *event) override
 
virtual void wheelEvent (QWheelEvent *event) override
 
virtual bool event (QEvent *evnt) override
 
virtual void keyPressEvent (QKeyEvent *event) override
 
virtual void keyReleaseEvent (QKeyEvent *event) override
 
- Protected Member Functions inherited from ot::WidgetView
void addWidgetToDock (QWidget *_widget)
 Call this function as soon as the widget for this view is created to add it to the dock.
 

Constructor & Destructor Documentation

◆ ViewerView() [1/2]

ot::ViewerView::ViewerView ( )
delete

◆ ViewerView() [2/2]

ot::ViewerView::ViewerView ( ot::UID _modelID,
ot::UID _viewerID,
double _scaleWidth,
double _scaleHeight,
int _backgroundR,
int _backgroundG,
int _backgroundB,
int _overlayTextR,
int _overlayTextG,
int _overlayTextB )

◆ ~ViewerView()

ot::ViewerView::~ViewerView ( )
virtual

Member Function Documentation

◆ getViewWidget()

QWidget * ot::ViewerView::getViewWidget ( void )
overridevirtual

Returns the widget that is set to this widget view.

Implements ot::WidgetView.


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