The 3D view window It consists out of the 3D view. More...

#include <View3DInventor.h>

Public Slots

void dump (const char *filename, bool onlyVisible=false)
 
void restoreOverrideCursor ()
 
void setOverrideCursor (const QCursor &)
 override the cursor in this view More...
 
- Public Slots inherited from Gui::MDIView
virtual void setOverrideCursor (const QCursor &)
 
virtual void restoreOverrideCursor ()
 

Public Member Functions

virtual bool containsViewProvider (const ViewProvider *) const
 containsViewProvider Checks if the given view provider is part of this view. The default implementation returns false. More...
 
virtual void deleteSelf ()
 delete itself More...
 
bool eventFilter (QObject *, QEvent *)
 
virtual const char * getName (void) const
 returns the name of the view (important for messages) More...
 
virtual PyObjectgetPyObject (void)
 This method returns the Python wrapper for a C++ object. More...
 
View3DInventorViewergetViewer (void) const
 
bool hasClippingPlane () const
 
virtual void OnChange (ParameterGrp::SubjectType &rCaller, ParameterGrp::MessageType Reason)
 Observer message from the ParameterGrp. More...
 
virtual bool onHasMsg (const char *pMsg) const
 Message handler test. More...
 
virtual bool onMsg (const char *pMsg, const char **ppReturn)
 Message handler. More...
 
virtual void onRename (Gui::Document *pDoc)
 get called when the document is updated More...
 
virtual void onUpdate (void)
 get called when the document is updated More...
 
virtual void print ()
 print function of the view More...
 
virtual void print (QPrinter *)
 
virtual void printPdf ()
 Print to PDF file. More...
 
virtual void printPreview ()
 Show a preview dialog. More...
 
void removeOverlayWidget ()
 
bool setCamera (const char *pCamera)
 
void setCurrentViewMode (ViewMode b)
 If b is set to FullScreen the MDI view is displayed in full screen mode, if b is set to TopLevel then it is displayed as an own top-level window, otherwise (Normal) as tabbed window. More...
 
void setOverlayWidget (QWidget *)
 
void toggleClippingPlane ()
 
 View3DInventor (Gui::Document *pcDocument, QWidget *parent, const QtGLWidget *sharewidget=0, Qt::WindowFlags wflags=0)
 
virtual void viewAll ()
 
 ~View3DInventor ()
 
- Public Member Functions inherited from Gui::MDIView
virtual bool canClose (void)
 overwrite when checking on close state More...
 
 MDIView (Gui::Document *pcDocument, QWidget *parent, Qt::WindowFlags wflags=0)
 View constructor Attach the view to the given document. More...
 
virtual void onRelabel (Gui::Document *pDoc)
 get called when the document is updated More...
 
 ~MDIView ()
 View destructor Detach the view from the document, if attached. More...
 
QSize minimumSizeHint () const
 
ViewMode currentViewMode () const
 
template<typename _T >
_T getActiveObject (const char *name, App::DocumentObject **parent=0, std::string *subname=0) const
 access getter for the active object list More...
 
void setActiveObject (App::DocumentObject *o, const char *n, const char *subname=0)
 
bool hasActiveObject (const char *n) const
 
bool isActiveObject (App::DocumentObject *o, const char *n, const char *subname=0) const
 
- Public Member Functions inherited from Gui::BaseView
 BaseView (Gui::Document *pcDocument=0)
 View constructor Attach the view to the given document. More...
 
virtual ~BaseView ()
 View destructor Detach the view from the document, if attached! More...
 
void setDocument (Gui::Document *pcDocument)
 sets the view to another document (called by Application) More...
 
void onClose (void)
 is sent from the document in order to close the document More...
 
Gui::DocumentgetGuiDocument () const
 returns the document the view is attached to More...
 
App::DocumentgetAppDocument () const
 returns the document the view is attached to More...
 
bool isPassive (void) const
 indicates if the view is in passive mode More...
 
- Public Member Functions inherited from Base::BaseClass
 BaseClass ()
 Construction. More...
 
virtual Type getTypeId (void) const
 
bool isDerivedFrom (const Type type) const
 
virtual void setPyObject (PyObject *)
 
virtual ~BaseClass ()
 Destruction. More...
 

Protected Slots

void stopAnimating ()
 
- Protected Slots inherited from Gui::MDIView

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *e)
 
void customEvent (QEvent *e)
 
void dragEnterEvent (QDragEnterEvent *e)
 
void dropEvent (QDropEvent *e)
 Drops the event e and writes the right Python command. More...
 
void focusInEvent (QFocusEvent *e)
 
void keyPressEvent (QKeyEvent *e)
 
void keyReleaseEvent (QKeyEvent *e)
 
void windowStateChanged (MDIView *)
 This method gets called from the main window this view is attached to whenever the window state of the active view changes. More...
 
- Protected Member Functions inherited from Gui::MDIView
void closeEvent (QCloseEvent *e)
 
void changeEvent (QEvent *e)
 

Protected Attributes

ParameterGrp::handle hGrp
 handle to the viewer parameter group More...
 
- Protected Attributes inherited from Gui::MDIView
PyObjectpythonObject
 
- Protected Attributes inherited from Gui::BaseView
bool bIsDetached
 
bool bIsPassive
 

Friends

class View3DPy
 

Additional Inherited Members

- Public Types inherited from Gui::MDIView
enum  ViewMode { Child, TopLevel, FullScreen }
 MDI view mode enum. More...
 
- Signals inherited from Gui::MDIView
void message (const QString &, int)
 
- Static Public Member Functions inherited from Base::BaseClass
static void * create (void)
 
static Type getClassTypeId (void)
 
static void init (void)
 
- Static Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr)
 

Detailed Description

The 3D view window It consists out of the 3D view.

Author
Juergen Riegel

Constructor & Destructor Documentation

◆ View3DInventor()

View3DInventor::View3DInventor ( Gui::Document pcDocument,
QWidget parent,
const QtGLWidget sharewidget = 0,
Qt::WindowFlags  wflags = 0 
)

◆ ~View3DInventor()

View3DInventor::~View3DInventor ( )

Member Function Documentation

◆ containsViewProvider()

bool View3DInventor::containsViewProvider ( const ViewProvider ) const
virtual

containsViewProvider Checks if the given view provider is part of this view. The default implementation returns false.

Returns
bool

Reimplemented from Gui::MDIView.

◆ contextMenuEvent()

void View3DInventor::contextMenuEvent ( QContextMenuEvent *  e)
protected

◆ customEvent()

◆ deleteSelf()

void View3DInventor::deleteSelf ( )
virtual

delete itself

Reimplemented from Gui::MDIView.

References Gui::MDIView::deleteSelf().

◆ dragEnterEvent()

void View3DInventor::dragEnterEvent ( QDragEnterEvent *  e)
protected

◆ dropEvent()

void View3DInventor::dropEvent ( QDropEvent *  e)
protected

Drops the event e and writes the right Python command.

References Gui::BaseView::getAppDocument(), Gui::getMainWindow(), and Gui::MainWindow::loadUrls().

◆ dump

void View3DInventor::dump ( const char *  filename,
bool  onlyVisible = false 
)
slot

Referenced by onMsg().

◆ eventFilter()

bool View3DInventor::eventFilter ( QObject watched,
QEvent e 
)

◆ focusInEvent()

void View3DInventor::focusInEvent ( QFocusEvent *  e)
protected

◆ getName()

const char * View3DInventor::getName ( void  ) const
virtual

returns the name of the view (important for messages)

Reimplemented from Gui::BaseView.

Referenced by OnChange().

◆ getPyObject()

PyObject * View3DInventor::getPyObject ( void  )
virtual

This method returns the Python wrapper for a C++ object.

It's in the responsibility of the programmer to do the correct reference counting. Basically there are two ways how to implement that: Either always return a new Python object then reference counting is not a matter or return always the same Python object then the reference counter must be incremented by one. However, it's absolutely forbidden to return always the same Python object without incrementing the reference counter.

The default implementation returns 'None'.

Reimplemented from Gui::MDIView.

◆ getViewer()

◆ hasClippingPlane()

bool View3DInventor::hasClippingPlane ( ) const

◆ keyPressEvent()

void View3DInventor::keyPressEvent ( QKeyEvent *  e)
protected

◆ keyReleaseEvent()

void View3DInventor::keyReleaseEvent ( QKeyEvent *  e)
protected

◆ OnChange()

◆ onHasMsg()

bool View3DInventor::onHasMsg ( const char *  pMsg) const
virtual

Message handler test.

Reimplemented from Gui::MDIView.

References Gui::BaseView::getAppDocument().

◆ onMsg()

◆ onRename()

void View3DInventor::onRename ( Gui::Document pDoc)
virtual

get called when the document is updated

Reimplemented from Gui::BaseView.

References Gui::Document::getDocument(), and App::Document::getName().

◆ onUpdate()

void View3DInventor::onUpdate ( void  )
virtual

get called when the document is updated

Reimplemented from Gui::BaseView.

References Base::Console(), and Base::ConsoleSingleton::Log().

Referenced by shipAreasCurve.TaskPanel.TaskPanel::initValues(), and shipAreasCurve.TaskPanel.TaskPanel::onData().

◆ print() [1/2]

void View3DInventor::print ( )
virtual

print function of the view

Reimplemented from Gui::MDIView.

Referenced by printPdf(), and printPreview().

◆ print() [2/2]

void View3DInventor::print ( QPrinter *  printer)
virtual

Reimplemented from Gui::MDIView.

◆ printPdf()

void View3DInventor::printPdf ( )
virtual

Print to PDF file.

Reimplemented from Gui::MDIView.

References Gui::FileDialog::getSaveFileName(), and print().

◆ printPreview()

void View3DInventor::printPreview ( )
virtual

Show a preview dialog.

Reimplemented from Gui::MDIView.

References print().

◆ removeOverlayWidget()

void View3DInventor::removeOverlayWidget ( )

Referenced by setOverlayWidget().

◆ restoreOverrideCursor

void View3DInventor::restoreOverrideCursor ( )
slot

◆ setCamera()

bool View3DInventor::setCamera ( const char *  pCamera)

Referenced by onMsg().

◆ setCurrentViewMode()

void View3DInventor::setCurrentViewMode ( ViewMode  b)
virtual

If b is set to FullScreen the MDI view is displayed in full screen mode, if b is set to TopLevel then it is displayed as an own top-level window, otherwise (Normal) as tabbed window.

This method is reimplemented from MDIView to set the this widget as the proxy of the embedded GL widget to get all key events in TopLevel or Fullscreen mode.

Reimplemented from Gui::MDIView.

References Gui::MDIView::Child, Gui::MDIView::currentViewMode(), Gui::getMainWindow(), and Gui::MDIView::setCurrentViewMode().

Referenced by keyPressEvent().

◆ setOverlayWidget()

void View3DInventor::setOverlayWidget ( QWidget widget)

References removeOverlayWidget().

◆ setOverrideCursor

void View3DInventor::setOverrideCursor ( const QCursor &  aCursor)
slot

override the cursor in this view

◆ stopAnimating

void View3DInventor::stopAnimating ( )
protectedslot

◆ toggleClippingPlane()

void View3DInventor::toggleClippingPlane ( )

◆ viewAll()

void View3DInventor::viewAll ( )
virtual

Reimplemented from Gui::MDIView.

Referenced by Gui::Application::sExport().

◆ windowStateChanged()

void View3DInventor::windowStateChanged ( MDIView )
protectedvirtual

This method gets called from the main window this view is attached to whenever the window state of the active view changes.

The default implementation does nothing.

Reimplemented from Gui::MDIView.

References ParameterGrp::GetInt(), and hGrp.

Friends And Related Function Documentation

◆ View3DPy

friend class View3DPy
friend

Member Data Documentation

◆ hGrp

ParameterGrp::handle Gui::View3DInventor::hGrp
protected

handle to the viewer parameter group

Referenced by customEvent(), windowStateChanged(), and ~View3DInventor().


The documentation for this class was generated from the following files:
  • src/Gui/View3DInventor.h
  • src/Gui/View3DInventor.cpp