Commit b36ec526 authored by Jan Möbius's avatar Jan Möbius

Added Function to set Draw mode for all examiners

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4673 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c4784041
......@@ -282,6 +282,14 @@ unsigned int drawMode( ) {
return examiner_widgets_[activeExaminer_]->drawMode();
}
void setGlobalDrawMode( const unsigned int _mode ) {
for ( uint i = 0 ; i < examiner_widgets_.size(); ++i ) {
examiner_widgets_[i]->drawMode(_mode);
examiner_widgets_[i]->updateGL();
}
}
bool scenegraph_pick( ACG::SceneGraph::PickTarget _pickTarget, const QPoint &_mousePos, unsigned int &_nodeIdx, unsigned int &_targetIdx, ACG::Vec3d *_hitPointPtr=0 ) {
return examiner_widgets_[activeExaminer_]->pick( _pickTarget,_mousePos,_nodeIdx,_targetIdx,_hitPointPtr );
......
......@@ -392,18 +392,25 @@ void orthographicProjection();
DLLEXPORT
void perspectiveProjection();
/** \brief Switch to a different draw mode
/** \brief Switch active examiner to a different draw mode
*
*/
DLLEXPORT
void setDrawMode( const unsigned int _mode );
/** \brief Get the current draw Mode
/** \brief Get the current draw Mode of the active Examiner
*
*/
DLLEXPORT
unsigned int drawMode( );
/** \brief Switch all examiners to a different draw mode
*
*/
DLLEXPORT
void setGlobalDrawMode( const unsigned int _mode );
/** \brief Set the background color of the examiner widget.
*
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment