The SplitView3DInventor class allows to create a window with two or more Inventor views. More...
#include <SplitView3DInventor.h>
Public Member Functions | |
AbstractSplitView (Gui::Document *pcDocument, QWidget *parent, Qt::WindowFlags wflags=0) | |
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... | |
virtual const char * getName (void) const | |
returns the name of the view (important for messages) More... | |
PyObject * getPyObject (void) | |
This method returns the Python wrapper for a C++ object. More... | |
int getSize () | |
View3DInventorViewer * getViewer (unsigned int) 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 onUpdate (void) | |
get called when the document is updated More... | |
void setOverrideCursor (const QCursor &) | |
void setPyObject (PyObject *) | |
~AbstractSplitView () | |
![]() | |
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... | |
virtual void viewAll () | |
~MDIView () | |
View destructor Detach the view from the document, if attached. More... | |
virtual void print () | |
Print content of view. More... | |
virtual void printPdf () | |
Print to PDF file. More... | |
virtual void printPreview () | |
Show a preview dialog. More... | |
QSize minimumSizeHint () const | |
virtual void setCurrentViewMode (ViewMode mode) | |
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... | |
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... | |
virtual void onRename (Gui::Document *) | |
get called when the document is renamed (change of its internal name) More... | |
![]() | |
BaseClass () | |
Construction. More... | |
virtual Type getTypeId (void) const | |
bool isDerivedFrom (const Type type) const | |
virtual ~BaseClass () | |
Destruction. More... | |
Protected Member Functions | |
void setupSettings () | |
![]() | |
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 | |
Additional Inherited Members | |
![]() | |
enum ViewMode { Child, TopLevel, FullScreen } | |
MDI view mode enum. More... | |
![]() | |
virtual void print (QPrinter *printer) | |
virtual void restoreOverrideCursor () | |
![]() | |
void message (const QString &, int) | |
![]() | |
static void * create (void) | |
static Type getClassTypeId (void) | |
static void init (void) | |
![]() | |
virtual 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... | |
![]() | |
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) | |
Detailed Description
The SplitView3DInventor class allows to create a window with two or more Inventor views.
Constructor & Destructor Documentation
◆ AbstractSplitView()
AbstractSplitView::AbstractSplitView | ( | Gui::Document * | pcDocument, |
QWidget * | parent, | ||
Qt::WindowFlags | wflags = 0 |
||
) |
◆ ~AbstractSplitView()
AbstractSplitView::~AbstractSplitView | ( | ) |
References Base::Subject< _MessageType >::Detach(), and hGrp.
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.
◆ deleteSelf()
|
virtual |
◆ getName()
|
virtual |
returns the name of the view (important for messages)
Reimplemented from Gui::BaseView.
◆ 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.
◆ getSize()
int AbstractSplitView::getSize | ( | ) |
◆ getViewer()
View3DInventorViewer * AbstractSplitView::getViewer | ( | unsigned int | n | ) | const |
Referenced by Gui::AlignmentView::AlignmentView().
◆ OnChange()
|
virtual |
Observer message from the ParameterGrp.
References ParameterGrp::GetASCII(), ParameterGrp::GetBool(), ParameterGrp::GetFloat(), ParameterGrp::GetInt(), and ParameterGrp::GetUnsigned().
Referenced by setupSettings().
◆ onHasMsg()
|
virtual |
Message handler test.
Reimplemented from Gui::MDIView.
◆ onMsg()
|
virtual |
Message handler.
Reimplemented from Gui::MDIView.
References Gui::Camera::Bottom, Gui::Camera::Front, Gui::Camera::Isometric, Gui::Camera::Left, Gui::Camera::Rear, Gui::Camera::Right, Gui::Camera::rotation(), and Gui::Camera::Top.
◆ onUpdate()
|
virtual |
get called when the document is updated
Reimplemented from Gui::BaseView.
Referenced by shipAreasCurve.TaskPanel.TaskPanel::initValues(), and shipAreasCurve.TaskPanel.TaskPanel::onData().
◆ setOverrideCursor()
|
virtual |
Reimplemented from Gui::MDIView.
◆ setPyObject()
|
virtual |
Reimplemented from Base::BaseClass.
◆ setupSettings()
|
protected |
References Base::Subject< _MessageType >::Attach(), App::GetApplication(), App::Application::GetParameterGroupByPath(), hGrp, and OnChange().
Referenced by Gui::AlignmentView::AlignmentView().
Member Data Documentation
◆ hGrp
|
protected |
handle to the viewer parameter group
Referenced by setupSettings(), and ~AbstractSplitView().
The documentation for this class was generated from the following files:
- src/Gui/SplitView3DInventor.h
- src/Gui/SplitView3DInventor.cpp