mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
55
samples/qt/Graphic3dDemo/inc/ViewOperations.h
Executable file
55
samples/qt/Graphic3dDemo/inc/ViewOperations.h
Executable file
@@ -0,0 +1,55 @@
|
||||
#ifndef VIEWOPERATIONS_H
|
||||
#define VIEWOPERATIONS_H
|
||||
|
||||
#include <qobject.h>
|
||||
#include <qlist.h>
|
||||
#include <qaction.h>
|
||||
|
||||
#include <AIS_InteractiveContext.hxx>
|
||||
|
||||
class ViewOperations : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum ViewActions { /*MagViewId, AxoViewId, PerViewId,*/ ToolWireframeId, ToolShadingId };
|
||||
|
||||
enum Action { ViewFitAllId, ViewFitAreaId, ViewZoomId, ViewPanId,
|
||||
ViewGlobalPanId, ViewFrontId, ViewBackId,
|
||||
ViewTopId, ViewBottomId, ViewLeftId, ViewRightId,ViewAxoId,
|
||||
ViewRotationId, ViewResetId };
|
||||
|
||||
ViewOperations( QObject * parent=0 ) ;
|
||||
ViewOperations( Handle(AIS_InteractiveContext) theContext, QObject * parent=0 ) ;
|
||||
~ViewOperations();
|
||||
|
||||
QList<QAction*> getViewActions();
|
||||
QList<QAction*> getToolActions();
|
||||
void initActions();
|
||||
int getDisplayMode();
|
||||
|
||||
signals:
|
||||
void setCursor( const QCursor& );
|
||||
|
||||
private slots:
|
||||
void onActionActivated();
|
||||
|
||||
public slots:
|
||||
void onWireframe();
|
||||
void onShading();
|
||||
void onToolAction();
|
||||
void updateToggled( bool );
|
||||
void onNoActiveActions();
|
||||
|
||||
private:
|
||||
void initCursors();
|
||||
void initViewActions();
|
||||
void initToolActions();
|
||||
|
||||
private:
|
||||
Handle_AIS_InteractiveContext myContext;
|
||||
QList<QAction*> myViewActions;
|
||||
QList<QAction*> myToolActions;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user