71 case Viewer::ExamineMode:
74 case Viewer::LightMode:
76 case Viewer::PickingMode:
79 case Viewer::QuestionMode:
91 case Viewer::ExamineMode:
92 cursorPainter_->
setCursor(QCursor( QPixmap( OpenFlipper::Options::iconDirStr() + QDir::separator() +
"cursor_move.png" ) ,0,0 ));
94 case Viewer::LightMode:
95 cursorPainter_->
setCursor(QCursor( QPixmap( OpenFlipper::Options::iconDirStr() + QDir::separator() +
"cursor_light.png" ) ,0,0 ));
97 case Viewer::PickingMode:
98 cursorPainter_->
setCursor(QCursor( QPixmap( OpenFlipper::Options::iconDirStr() + QDir::separator() +
"cursor_arrow.png" ) ,0,0 ));
103 case Viewer::QuestionMode:
104 cursorPainter_->
setCursor(QCursor( QPixmap( OpenFlipper::Options::iconDirStr() + QDir::separator() +
"cursor_whatsthis.png" ) ,0,0 ));
110 case Viewer::PickingMode:
125 unsigned int maxPases = 1;
130 for (
unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i ) {
135 if(_am == Viewer::PickingMode) {
191 if(OpenFlipper::Options::coreProfile())
202 _tool->setOrientation(Qt::Horizontal);
208 QGraphicsProxyWidget* item =
glScene_->addWidget(_tool);
212 int midP = (
glScene_->width() / 2) - (
int)(_tool->width() / 2);
213 item->setPos(midP, 3);
232 ret->first->setParent(0);
255 addToolBar(Qt::LeftToolBarArea,_tool);
297 connect(
pickMenu_, SIGNAL( aboutToHide() ),
301 QActionGroup * ag =
new QActionGroup(
pickMenu_ );
302 ag->setExclusive(
true );
304 for (
unsigned int i=0; i<
pick_modes_.size(); ++i) {
315 QAction* ac =
new QAction(
pick_modes_[i].name().c_str(), ag );
316 ac->setData( QVariant( i ) );
317 ac->setCheckable(
true );
320 ac->setChecked(
true );
326 connect( ag, SIGNAL( triggered( QAction * ) ),
335 int _id = _action->data().toInt();
377 for (
unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i )
402 std::vector<PickMode>::iterator it =
pick_modes_.begin();
438 for (
unsigned int j = 0 ; j < OpenFlipper::Options::examinerWidgets() ; ++j )
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.
ActionMode
Enum listing action modes of the viewers.
void setCursor(const QCursor &_cursor)
Sets the current used cursor.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
Struct containing information about pickModes.
void analyzeSceneGraph(ACG::SceneGraph::BaseNode *_root, unsigned int &_maxPasses, ACG::Vec3d &_bbmin, ACG::Vec3d &_bbmax)
Analyze the SceneGraph <ACG/Scenegraph/SceneGraphAnalysis.hh>
ACG::SceneGraph::BaseNode * getSceneGraphRootNode()
get scenegraph root node