#ifndef OCCVIEWER_VIEWMODEL_H
#define OCCVIEWER_VIEWMODEL_H
+#include <qcolor.h>
#include <qcursor.h>
#include "OCCViewer.h"
static QString Type() { return "OCCViewer"; }
OCCViewer_Viewer( bool DisplayTrihedron = true );
- virtual ~OCCViewer_Viewer();
+ virtual ~OCCViewer_Viewer();
void update();
virtual void updateViewAspects( const viewAspectList& );
virtual void clearViewAspects();
+ QColor backgroundColor() const;
+ void setBackgroundColor( const QColor& );
+
//! returns true if 3d Trihedron in viewer was created
- bool trihedronActivated() const { return !myTrihedron.IsNull(); }
- virtual void toggleTrihedron();
+ bool trihedronActivated() const { return !myTrihedron.IsNull(); }
-public slots:
- void onClearViewAspects();
+ void toggleTrihedron();
+ bool isTrihedronVisible() const;
+ virtual void setTrihedronShown( const bool );
+ int trihedronSize() const;
+ virtual void setTrihedronSize( const int );
+
+public slots:
+ void onClearViewAspects();
+
public:
Handle(V3d_Viewer) getViewer3d() const { return myV3dViewer;}
Handle(V3d_Viewer) getCollector3d() const { return myV3dCollector; }
void setColor( const Handle(AIS_InteractiveObject)&, const QColor&, bool=true );
void switchRepresentation( const Handle(AIS_InteractiveObject)&, int, bool=true );
void setTransparency( const Handle(AIS_InteractiveObject)&, float, bool=true );
+ void setIsos( const int u, const int v ); // number of isolines
+ void isos( int& u, int& v ) const;
signals:
void selectionChanged();
private:
Handle(V3d_Viewer) myV3dViewer;
Handle(V3d_Viewer) myV3dCollector;
- Handle(AIS_InteractiveContext) myAISContext;
+
Handle(AIS_Trihedron) myTrihedron;
+ Handle(AIS_InteractiveContext) myAISContext;
viewAspectList myViewAspects;
- bool mySelectionEnabled;
- bool myMultiSelectionEnabled;
+ bool mySelectionEnabled;
+ bool myMultiSelectionEnabled;
- QPoint myStartPnt, myEndPnt;
+ QColor myBgColor;
+ QPoint myStartPnt, myEndPnt;
};
#ifdef WIN32