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... | |
![]() | |
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 PyObject * getPyObject (void) | |
This method returns the Python wrapper for a C++ object. More... | |
View3DInventorViewer * getViewer (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 () | |
![]() | |
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 | |
![]() | |
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::Document * getGuiDocument () const | |
returns the document the view is attached to More... | |
App::Document * getAppDocument () const | |
returns the document the view is attached to More... | |
bool isPassive (void) const | |
indicates if the view is in passive mode More... | |
![]() | |
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 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... | |
![]() | |
void closeEvent (QCloseEvent *e) | |
void changeEvent (QEvent *e) | |
Protected Attributes | |
ParameterGrp::handle hGrp | |
handle to the viewer parameter group More... | |
![]() | |
PyObject * pythonObject | |
![]() | |
bool bIsDetached | |
bool bIsPassive | |
Friends | |
class View3DPy | |
Additional Inherited Members | |
![]() | |
enum ViewMode { Child, TopLevel, FullScreen } | |
MDI view mode enum. More... | |
![]() | |
void message (const QString &, int) | |
![]() | |
static void * create (void) | |
static Type getClassTypeId (void) | |
static void init (void) | |
![]() | |
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.
Constructor & Destructor Documentation
◆ View3DInventor()
View3DInventor::View3DInventor | ( | Gui::Document * | pcDocument, |
QWidget * | parent, | ||
const QtGLWidget * | sharewidget = 0 , |
||
Qt::WindowFlags | wflags = 0 |
||
) |
◆ ~View3DInventor()
View3DInventor::~View3DInventor | ( | ) |
References Base::Subject< _MessageType >::Detach(), hGrp, and Gui::SoFCDB::writeNodesToString().
Member Function Documentation
◆ containsViewProvider()
|
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()
|
protected |
◆ customEvent()
|
protected |
◆ deleteSelf()
|
virtual |
◆ dragEnterEvent()
|
protected |
◆ dropEvent()
|
protected |
Drops the event e and writes the right Python command.
References Gui::BaseView::getAppDocument(), Gui::getMainWindow(), and Gui::MainWindow::loadUrls().
◆ dump
|
slot |
Referenced by onMsg().
◆ eventFilter()
◆ focusInEvent()
|
protected |
◆ getName()
|
virtual |
returns the name of the view (important for messages)
Reimplemented from Gui::BaseView.
Referenced by OnChange().
◆ getPyObject()
|
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()
View3DInventorViewer* Gui::View3DInventor::getViewer | ( | void | ) | const |
Referenced by StdCmdAlignment::activated(), Gui::Document::cloneView(), TechDrawGui::Grabber3d::copyActiveViewToSvgFile(), Gui::Document::createView(), Gui::MainWindow::event(), Gui::Document::getInEdit(), Gui::Document::removeAnnotationViewProvider(), Gui::Document::Save(), Gui::Document::setAnnotationViewProvider(), Gui::Document::setEdit(), Gui::Document::setEditingTransform(), Gui::Document::slotDeletedObject(), Gui::Document::slotNewObject(), Gui::Document::toggleInSceneGraph(), and StdCmdDrawStyle::updateIcon().
◆ hasClippingPlane()
bool View3DInventor::hasClippingPlane | ( | ) | const |
◆ keyPressEvent()
|
protected |
References Gui::MDIView::Child, Gui::MDIView::currentViewMode(), and setCurrentViewMode().
◆ keyReleaseEvent()
|
protected |
◆ OnChange()
|
virtual |
Observer message from the ParameterGrp.
References Base::Type::fromName(), ParameterGrp::GetASCII(), ParameterGrp::GetBool(), Base::BaseClass::getClassTypeId(), ParameterGrp::GetFloat(), ParameterGrp::GetInt(), getName(), and ParameterGrp::GetUnsigned().
◆ onHasMsg()
|
virtual |
◆ onMsg()
|
virtual |
Message handler.
Reimplemented from Gui::MDIView.
References Gui::Camera::Bottom, dump(), Gui::Camera::Front, Gui::BaseView::getGuiDocument(), Gui::Camera::Isometric, Gui::Camera::Left, Gui::Camera::Rear, Gui::Document::redo(), Gui::Camera::Right, Gui::Camera::rotation(), Gui::Document::save(), Gui::Document::saveAs(), Gui::Document::saveCopy(), setCamera(), Gui::Camera::Top, Gui::Document::undo(), and Gui::SoFCDB::writeNodesToString().
Referenced by Gui::Document::createView().
◆ onRename()
|
virtual |
get called when the document is updated
Reimplemented from Gui::BaseView.
References Gui::Document::getDocument(), and App::Document::getName().
◆ onUpdate()
|
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]
|
virtual |
print function of the view
Reimplemented from Gui::MDIView.
Referenced by printPdf(), and printPreview().
◆ print() [2/2]
|
virtual |
Reimplemented from Gui::MDIView.
◆ printPdf()
|
virtual |
Print to PDF file.
Reimplemented from Gui::MDIView.
References Gui::FileDialog::getSaveFileName(), and print().
◆ printPreview()
|
virtual |
◆ removeOverlayWidget()
void View3DInventor::removeOverlayWidget | ( | ) |
Referenced by setOverlayWidget().
◆ restoreOverrideCursor
|
slot |
◆ setCamera()
◆ setCurrentViewMode()
|
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
|
slot |
override the cursor in this view
◆ stopAnimating
|
protectedslot |
◆ toggleClippingPlane()
void View3DInventor::toggleClippingPlane | ( | ) |
◆ viewAll()
|
virtual |
Reimplemented from Gui::MDIView.
Referenced by Gui::Application::sExport().
◆ windowStateChanged()
|
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 |
Member Data Documentation
◆ 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