CMS 3D CMS Logo

IgExaminerViewerCategory Class Reference

#include <Iguana/GLBrowsers/interface/IgExaminerViewerCategory.h>

Inheritance diagram for IgExaminerViewerCategory:

IgCommonViewCategory IgStateElement IgControlCategory IgControlItem

List of all members.

Public Member Functions

virtual void browserChanged (Ig3DBaseBrowser *browser)
 IgExaminerViewerCategory (IgState *state)
 ~IgExaminerViewerCategory ()

Private Slots

virtual void setAnimation (bool option)
virtual void setAutoClipping (bool option)
virtual void setBufferType (int type)
virtual void setCursor (bool option)
virtual void setDetailSeek (bool option)
virtual void setFeedbackSize (unsigned int size)
virtual void setInteractiveDrawStyle (int style)
virtual void setSeekTime (float time)
virtual void setStereoOffset (float offset)
virtual void setStereoViewing (bool option)
virtual void setStillDrawStyle (int style)
virtual void updateBufferType (int type)
virtual void updateInteractiveDrawStyle (int style)
virtual void updateStillDrawStyle (int style)

Private Member Functions

void addExaminerViewerTab (void)
 IG_DECLARE_STATE_ELEMENT (IgExaminerViewerCategory)
void updateBufferTypeHelp (void)
void updateInteractiveDrawStyleHelp (void)
void updateStillDrawStyleHelp (void)

Private Attributes

QCheckBox * m_animation
QCheckBox * m_autoClipping
QComboBox * m_bufferType
QCheckBox * m_cursor
QCheckBox * m_detailSeek
IgQtRangeControlUIntm_feedbackSize
QComboBox * m_interactiveDrawStyle
IgQtRangeControlFloatm_seekTime
IgQtRangeControlFloatm_stereoOffset
QCheckBox * m_stereoViewing
QComboBox * m_stillDrawStyle


Detailed Description

Definition at line 23 of file IgExaminerViewerCategory.h.


Constructor & Destructor Documentation

IgExaminerViewerCategory::IgExaminerViewerCategory ( IgState state  ) 

Definition at line 30 of file IgExaminerViewerCategory.cc.

References addExaminerViewerTab(), and IgState::put().

00031     : IgCommonViewCategory (state, "Examiner Viewer"),
00032       m_stillDrawStyle  (0),
00033       m_interactiveDrawStyle(0),
00034       m_bufferType      (0),
00035       m_seekTime        (0),
00036       m_stereoOffset    (0),
00037       m_feedbackSize    (0),
00038       m_autoClipping    (0),
00039       m_animation       (0),
00040       m_stereoViewing   (0),
00041       m_detailSeek      (0),
00042       m_cursor          (0)
00043 {
00044     addExaminerViewerTab ();
00045     state->put (s_key, this);    
00046 }

IgExaminerViewerCategory::~IgExaminerViewerCategory ( void   ) 

Definition at line 48 of file IgExaminerViewerCategory.cc.

References IgState::detach(), and IgControlCategory::state().

00049 { state()->detach (s_key); }


Member Function Documentation

void IgExaminerViewerCategory::addExaminerViewerTab ( void   )  [private]

Definition at line 58 of file IgExaminerViewerCategory.cc.

References reco::fitHelper::add(), HLT_VtxMuL3::connect, FALSE, m_animation, m_autoClipping, m_bufferType, m_cursor, m_detailSeek, m_feedbackSize, m_interactiveDrawStyle, m_seekTime, m_stereoOffset, m_stereoViewing, m_stillDrawStyle, IgControlCategory::panel(), setAnimation(), setAutoClipping(), setBufferType(), setCursor(), setDetailSeek(), setFeedbackSize(), setInteractiveDrawStyle(), IgQtRangeControlFloat::setLongStep(), IgQtRangeControlImp< T >::setLongStep(), IgQtRangeValue< T >::setMinValue(), setSeekTime(), IgQtRangeControlImp< T >::setSmallStep(), IgQtRangeControlFloat::setSmallStep(), setStereoOffset(), setStereoViewing(), setStillDrawStyle(), IgQtRangeControlCommon::StepperPart, IgControlCategory::topArea(), IgControlCategory::topLayout(), IgQtRangeControlCommon::ValuePart, and IgQtRangeControlCommon::widget().

Referenced by IgExaminerViewerCategory().

00059 {
00060     QWidget     *exViewerOptions = new QWidget (topArea ());
00061     topLayout ()->addWidget (exViewerOptions);
00062     
00063     QVBoxLayout *exViewerVLayout  = new QVBoxLayout (exViewerOptions);
00064     QGridLayout *exViewerLayout   = new QGridLayout (exViewerVLayout);
00065 
00066     QGridLayout *layout14 = new QGridLayout (0, 1, 1, 0, 6, "layout14"); 
00067 
00068     QLabel *stillDrawLabel = new QLabel (exViewerOptions, "stillDrawLabel");
00069     stillDrawLabel->setText (tr ("Still Draw Style"));
00070 
00071     layout14->addWidget (stillDrawLabel, 0, 0);
00072 
00073     m_stillDrawStyle = new QComboBox (FALSE, exViewerOptions, "m_stillDrawStyle");
00074     m_stillDrawStyle->clear ();
00075     m_stillDrawStyle->insertItem (tr ("As is"));
00076     m_stillDrawStyle->insertItem (tr ("Hidden line"));
00077     m_stillDrawStyle->insertItem (tr ("Wireframe overlay"));
00078     m_stillDrawStyle->insertItem (tr ("No texture"));
00079     m_stillDrawStyle->insertItem (tr ("Low resolution"));
00080     m_stillDrawStyle->insertItem (tr ("Wireframe"));
00081     m_stillDrawStyle->insertItem (tr ("Points"));
00082     m_stillDrawStyle->insertItem (tr ("Bounding box (no depth)"));
00083 
00084     layout14->addWidget (m_stillDrawStyle, 0, 1);
00085 
00086     QLabel *interDrawLabel = new QLabel (exViewerOptions, "interDrawLabel");
00087     interDrawLabel->setText (tr ("Interactive Draw Style"));
00088 
00089     layout14->addWidget (interDrawLabel, 1, 0);
00090 
00091     m_interactiveDrawStyle = new QComboBox (FALSE, exViewerOptions, "m_interactiveDrawStyle");
00092     m_interactiveDrawStyle->clear ();
00093     m_interactiveDrawStyle->insertItem (tr ("Same as still"));
00094     m_interactiveDrawStyle->insertItem (tr ("No texture"));
00095     m_interactiveDrawStyle->insertItem (tr ("Low resolution"));
00096     m_interactiveDrawStyle->insertItem (tr ("Wireframe"));
00097     m_interactiveDrawStyle->insertItem (tr ("Low resolution wireframe (no depth)"));
00098     m_interactiveDrawStyle->insertItem (tr ("Points"));
00099     m_interactiveDrawStyle->insertItem (tr ("Low resolution points (no depth)"));
00100     m_interactiveDrawStyle->insertItem (tr ("Bounding box (no depth)"));
00101 
00102     layout14->addWidget (m_interactiveDrawStyle, 1, 1);
00103 
00104     QLabel *bufferLabel = new QLabel (exViewerOptions, "bufferLabel");
00105     bufferLabel->setText (tr ("Render Buffer Type"));
00106 
00107     layout14->addWidget (bufferLabel, 2, 0);
00108 
00109     m_bufferType = new QComboBox( FALSE, exViewerOptions, "m_bufferType" );
00110     m_bufferType->clear ();
00111     m_bufferType->insertItem (tr ("Single"));
00112     m_bufferType->insertItem (tr ("Double"));
00113     m_bufferType->insertItem (tr ("Interactive"));
00114 
00115     layout14->addWidget( m_bufferType, 2, 1 );
00116 
00117     QLabel *seekTimeLabel = new QLabel(exViewerOptions, "seekTimeLabel" );
00118     seekTimeLabel->setText (tr ("Seek Time"));
00119 
00120     layout14->addWidget (seekTimeLabel, 3, 0);
00121 
00122     m_seekTime = new IgQtRangeControlFloat (exViewerOptions,
00123                                        IgQtRangeControl::StepperPart
00124                                        | IgQtRangeControl::ValuePart); 
00125     m_seekTime->setMinValue (0.);
00126     m_seekTime->setLongStep (1.);
00127     m_seekTime->setSmallStep (.1);
00128 
00129     layout14->addWidget (m_seekTime->widget (), 3, 1);
00130 
00131     m_stereoViewing = new QCheckBox (exViewerOptions, "m_stereoViewing");
00132     m_stereoViewing->setText (tr ("Stereo Viewing Offset"));
00133 
00134     layout14->addWidget (m_stereoViewing, 4, 0);
00135 
00136     m_stereoOffset = new IgQtRangeControlFloat (exViewerOptions,
00137                                            IgQtRangeControl::StepperPart
00138                                            | IgQtRangeControl::ValuePart);
00139     m_stereoOffset->setLongStep (1.);
00140     m_stereoOffset->setSmallStep (.1);
00141     m_stereoOffset->widget ()->setEnabled (false);
00142 
00143     layout14->addWidget (m_stereoOffset->widget (), 4, 1);
00144 
00145     QLabel *feedbackaxis = new QLabel(exViewerOptions, "feedbackaxis" );
00146     feedbackaxis->setText (tr ("Feedback Axis"));
00147 
00148     layout14->addWidget (feedbackaxis, 5, 0);
00149     m_feedbackSize = new IgQtRangeControlUInt (exViewerOptions,
00150                                            IgQtRangeControl::StepperPart
00151                                            | IgQtRangeControl::ValuePart);
00152     m_feedbackSize->setMinValue (1);
00153     m_feedbackSize->setLongStep (5);
00154     m_feedbackSize->setSmallStep (1);
00155 
00156     layout14->addWidget (m_feedbackSize->widget (), 5, 1);
00157 
00158     exViewerLayout->addLayout (layout14, 0, 0);
00159 
00160     QGridLayout *layout15 = new QGridLayout (0, 1, 1, 0, 6, "layout15"); 
00161 
00162     m_autoClipping = new QCheckBox (exViewerOptions, "m_autoClipping");
00163     m_autoClipping->setText (tr ("Auto Clipping"));
00164 
00165     layout15->addWidget (m_autoClipping, 0, 0);
00166 
00167     m_animation = new QCheckBox (exViewerOptions, "m_animation");
00168     m_animation->setText (tr ("3D Animation"));
00169     QWhatsThis::add (m_animation, tr ("Enable/disable animation of the model in "
00170                                       "the viewer by releasing the mouse button while "
00171                                       "dragging."));
00172 
00173     layout15->addWidget (m_animation, 0, 1);
00174 
00175     m_cursor = new QCheckBox (exViewerOptions, "m_cursor");
00176     m_cursor->setText (tr ("Mouse Cursor"));
00177     QWhatsThis::add (m_cursor, tr ("Enable/disable mouse cursor on the viewer canvas."));
00178 
00179     layout15->addWidget (m_cursor, 1, 0);
00180 
00181     m_detailSeek = new QCheckBox (exViewerOptions, "m_detailSeek");
00182     m_detailSeek->setText (tr ("Detail Seek"));
00183     QWhatsThis::add (m_detailSeek, tr ("Toggle between seeking to a point or seeking to an object."));
00184 
00185     layout15->addWidget (m_detailSeek, 1, 1);
00186 
00187     exViewerLayout->addLayout (layout15, 1, 0);
00188     exViewerVLayout->addItem (new QSpacerItem ( 0, 0, QSizePolicy::Expanding,
00189                                                     QSizePolicy::Expanding));
00190 
00191     connect (m_interactiveDrawStyle,    SIGNAL(activated (int)),
00192              this,                      SLOT  (setInteractiveDrawStyle (int)));
00193     connect (m_stillDrawStyle,          SIGNAL(activated (int)),
00194              this,                      SLOT  (setStillDrawStyle (int)));
00195     connect (m_bufferType,              SIGNAL(activated (int)),
00196              this,                      SLOT  (setBufferType (int)));
00197     connect (m_seekTime,                SIGNAL(newValue (float)),
00198              this,                      SLOT  (setSeekTime (float)));
00199     connect (m_stereoOffset,            SIGNAL(newValue (float)),
00200              this,                      SLOT  (setStereoOffset (float)));
00201     connect (m_feedbackSize,            SIGNAL(newValue (unsigned int)),
00202              this,                      SLOT  (setFeedbackSize (unsigned int)));
00203     connect (m_autoClipping,            SIGNAL(toggled (bool)),
00204              this,                      SLOT  (setAutoClipping (bool)));
00205     connect (m_animation,               SIGNAL(toggled (bool)),
00206              this,                      SLOT  (setAnimation (bool)));
00207     connect (m_stereoViewing,           SIGNAL(toggled (bool)),
00208              this,                      SLOT  (setStereoViewing (bool)));
00209     connect (m_stereoViewing,           SIGNAL(toggled (bool)),
00210              m_stereoOffset->widget (), SLOT  (setEnabled (bool)));
00211     connect (m_detailSeek,              SIGNAL(toggled (bool)),
00212              this,                      SLOT  (setDetailSeek (bool)));
00213     connect (m_cursor,                  SIGNAL(toggled (bool)),
00214              this,                      SLOT  (setCursor (bool)));
00215     
00216     QWhatsThis::add (panel (), "Edit examiner viewer properties");
00217     QWhatsThis::add (exViewerOptions, "Edit examiner viewer properties");
00218 }

void IgExaminerViewerCategory::browserChanged ( Ig3DBaseBrowser browser  )  [virtual]

Reimplemented from IgCommonViewCategory.

Definition at line 221 of file IgExaminerViewerCategory.cc.

References IgCommonViewCategory::browserChanged(), m_animation, m_autoClipping, m_cursor, m_detailSeek, m_feedbackSize, m_seekTime, IgCommonViewCategory::m_source, m_stereoOffset, m_stereoViewing, IgQtRangeControlImp< T >::setValue(), IgQtRangeControlFloat::setValue(), updateBufferType(), updateInteractiveDrawStyle(), and updateStillDrawStyle().

00222 {
00223     if (source)
00224     {
00225         IgCommonViewCategory::browserChanged (source);
00226         updateStillDrawStyle (m_source->getDrawStyle (SoQtViewer::STILL));
00227         updateInteractiveDrawStyle (m_source->getDrawStyle (SoQtViewer::INTERACTIVE));
00228         updateBufferType (m_source->getBufferingType ());    
00229         m_seekTime->setValue (m_source->getSeekTime ());
00230         m_stereoOffset->setValue (m_source->getStereoOffset ());
00231         m_feedbackSize->setValue (m_source->getFeedbackSize ());
00232         m_autoClipping->setChecked (m_source->isAutoClipping ());
00233         m_animation->setChecked (m_source->isAnimationEnabled ());
00234         m_stereoViewing->setChecked (m_source->isStereoViewing ());
00235         m_detailSeek->setChecked (m_source->isDetailSeek ());
00236         m_cursor->setChecked (m_source->isCursorEnabled ());
00237     }
00238 }

IgExaminerViewerCategory::IG_DECLARE_STATE_ELEMENT ( IgExaminerViewerCategory   )  [private]

void IgExaminerViewerCategory::setAnimation ( bool  option  )  [private, virtual, slot]

Definition at line 606 of file IgExaminerViewerCategory.cc.

References IgCommonViewCategory::m_source, and old.

Referenced by addExaminerViewerTab().

00607 { 
00608     bool old = m_source->isAnimationEnabled ();
00609     if (old != option)
00610         m_source->setAnimationEnabled (option);
00611 }

void IgExaminerViewerCategory::setAutoClipping ( bool  option  )  [private, virtual, slot]

Definition at line 598 of file IgExaminerViewerCategory.cc.

References IgCommonViewCategory::m_source, old, and Ig3DBaseBrowser::setAutoClipping().

Referenced by addExaminerViewerTab().

00599 { 
00600     bool old = m_source->isAutoClipping ();
00601     if (old != option)
00602         m_source->setAutoClipping (option);
00603 }

void IgExaminerViewerCategory::setBufferType ( int  type  )  [private, virtual, slot]

Definition at line 514 of file IgExaminerViewerCategory.cc.

References ASSERT, IgCommonViewCategory::m_source, and updateBufferTypeHelp().

Referenced by addExaminerViewerTab().

00515 {
00516     switch (type)
00517     {
00518     case 0:
00519         m_source->setBufferingType (SoQtViewer::BUFFER_SINGLE);
00520         break;
00521     case 1:
00522         m_source->setBufferingType (SoQtViewer::BUFFER_DOUBLE);
00523         break;
00524     case 2:
00525         m_source->setBufferingType (SoQtViewer::BUFFER_INTERACTIVE);
00526         break;
00527     default:
00528         ASSERT (false);
00529     }
00530     updateBufferTypeHelp ();
00531 }

void IgExaminerViewerCategory::setCursor ( bool  option  )  [private, virtual, slot]

Definition at line 630 of file IgExaminerViewerCategory.cc.

References IgCommonViewCategory::m_source, and old.

Referenced by addExaminerViewerTab().

00631 { 
00632     bool old = m_source->isCursorEnabled ();
00633     if (old != option)
00634         m_source->setCursorEnabled (option);
00635 }

void IgExaminerViewerCategory::setDetailSeek ( bool  option  )  [private, virtual, slot]

Definition at line 622 of file IgExaminerViewerCategory.cc.

References IgCommonViewCategory::m_source, and old.

Referenced by addExaminerViewerTab().

00623 { 
00624     bool old = m_source->isDetailSeek ();
00625     if (old != option)
00626         m_source->setDetailSeek (option);
00627 }

void IgExaminerViewerCategory::setFeedbackSize ( unsigned int  size  )  [private, virtual, slot]

Definition at line 594 of file IgExaminerViewerCategory.cc.

References IgCommonViewCategory::m_source.

Referenced by addExaminerViewerTab().

00595 { m_source->setFeedbackSize (int (newValue)); }

void IgExaminerViewerCategory::setInteractiveDrawStyle ( int  style  )  [private, virtual, slot]

Definition at line 374 of file IgExaminerViewerCategory.cc.

References ASSERT, IgCommonViewCategory::m_source, and updateInteractiveDrawStyleHelp().

Referenced by addExaminerViewerTab().

00375 {
00376     switch (style)
00377     {
00378     case 0:
00379         m_source->setDrawStyle (SoQtViewer::INTERACTIVE,
00380                                 SoQtViewer::VIEW_SAME_AS_STILL);
00381         break;
00382     case 1:
00383         m_source->setDrawStyle (SoQtViewer::INTERACTIVE,
00384                                 SoQtViewer::VIEW_NO_TEXTURE);
00385         break;
00386     case 2:
00387         m_source->setDrawStyle (SoQtViewer::INTERACTIVE,
00388                                 SoQtViewer::VIEW_LOW_COMPLEXITY);
00389         break;
00390     case 3:
00391         m_source->setDrawStyle (SoQtViewer::INTERACTIVE,
00392                                 SoQtViewer::VIEW_LINE);
00393         break;
00394     case 4:
00395         m_source->setDrawStyle (SoQtViewer::INTERACTIVE,
00396                                 SoQtViewer::VIEW_LOW_RES_LINE);
00397         break;
00398     case 5:
00399         m_source->setDrawStyle (SoQtViewer::INTERACTIVE,
00400                                 SoQtViewer::VIEW_POINT);
00401         break;
00402     case 6:
00403         m_source->setDrawStyle (SoQtViewer::INTERACTIVE,
00404                                 SoQtViewer::VIEW_LOW_RES_POINT);
00405         break;
00406     case 7:
00407         m_source->setDrawStyle (SoQtViewer::INTERACTIVE,
00408                                 SoQtViewer::VIEW_BBOX);
00409         break;
00410     default:
00411         ASSERT (false);
00412     }
00413     updateInteractiveDrawStyleHelp ();
00414 }

void IgExaminerViewerCategory::setSeekTime ( float  time  )  [private, virtual, slot]

Definition at line 585 of file IgExaminerViewerCategory.cc.

References IgCommonViewCategory::m_source.

Referenced by addExaminerViewerTab().

00586 { m_source->setSeekTime (newValue); }

void IgExaminerViewerCategory::setStereoOffset ( float  offset  )  [private, virtual, slot]

Definition at line 589 of file IgExaminerViewerCategory.cc.

References IgCommonViewCategory::m_source.

Referenced by addExaminerViewerTab().

00590 { m_source->setStereoOffset (newValue); }

void IgExaminerViewerCategory::setStereoViewing ( bool  option  )  [private, virtual, slot]

Definition at line 614 of file IgExaminerViewerCategory.cc.

References IgCommonViewCategory::m_source, and old.

Referenced by addExaminerViewerTab().

00615 { 
00616     bool old = m_source->isStereoViewing ();
00617     if (old != option)
00618         m_source->setStereoViewing (option);
00619 }

void IgExaminerViewerCategory::setStillDrawStyle ( int  style  )  [private, virtual, slot]

Definition at line 242 of file IgExaminerViewerCategory.cc.

References ASSERT, IgCommonViewCategory::m_source, and updateStillDrawStyleHelp().

Referenced by addExaminerViewerTab().

00243 {
00244     switch (style)
00245     {
00246     case 0:
00247         m_source->setDrawStyle (SoQtViewer::STILL,
00248                                 SoQtViewer::VIEW_AS_IS);
00249         break;
00250     case 1:
00251         m_source->setDrawStyle (SoQtViewer::STILL,
00252                                 SoQtViewer::VIEW_HIDDEN_LINE);
00253         break;
00254     case 2:
00255         m_source->setDrawStyle (SoQtViewer::STILL,
00256                                 SoQtViewer::VIEW_WIREFRAME_OVERLAY);
00257         break;
00258     case 3:
00259         m_source->setDrawStyle (SoQtViewer::STILL,
00260                                 SoQtViewer::VIEW_NO_TEXTURE);
00261         break;
00262     case 4:
00263         m_source->setDrawStyle (SoQtViewer::STILL,
00264                                 SoQtViewer::VIEW_LOW_COMPLEXITY);
00265         break;
00266     case 5:
00267         m_source->setDrawStyle (SoQtViewer::STILL,
00268                                 SoQtViewer::VIEW_LINE);
00269         break;
00270     case 6:
00271         m_source->setDrawStyle (SoQtViewer::STILL,
00272                                 SoQtViewer::VIEW_POINT);
00273         break;
00274     case 7:
00275         m_source->setDrawStyle (SoQtViewer::STILL,
00276                                 SoQtViewer::VIEW_BBOX);
00277         break;
00278     default:
00279         ASSERT (false);
00280     }
00281     updateStillDrawStyleHelp ();
00282 }

void IgExaminerViewerCategory::updateBufferType ( int  type  )  [private, virtual, slot]

Definition at line 534 of file IgExaminerViewerCategory.cc.

References ASSERT, m_bufferType, and updateBufferTypeHelp().

Referenced by browserChanged().

00535 {
00536     switch (type)
00537     {
00538     case SoQtViewer::BUFFER_SINGLE:
00539         m_bufferType->setCurrentItem (0);
00540         break;
00541     case SoQtViewer::BUFFER_DOUBLE:
00542         m_bufferType->setCurrentItem (1);
00543         break;
00544     case SoQtViewer::BUFFER_INTERACTIVE:
00545         m_bufferType->setCurrentItem (2);
00546         break;
00547     default:
00548         ASSERT (false);
00549     }
00550     updateBufferTypeHelp ();
00551 }

void IgExaminerViewerCategory::updateBufferTypeHelp ( void   )  [private]

Definition at line 554 of file IgExaminerViewerCategory.cc.

References reco::fitHelper::add(), ASSERT, and m_bufferType.

Referenced by setBufferType(), and updateBufferType().

00555 {
00556     switch (m_bufferType->currentItem ())
00557     {
00558     case 0:
00559         QWhatsThis::add (m_bufferType, 
00560                          "Viewer's render buffer type, currently OpenGL "
00561                          "canvas is selected to be single-buffered.");
00562         break;
00563     case 1:
00564         QWhatsThis::add (m_bufferType, 
00565                          "Viewer's render buffer type, currently OpenGL "
00566                          "canvas is selected to be double-buffered.");
00567         break;
00568     case 2:
00569         QWhatsThis::add (m_bufferType, 
00570                          "Viewer's render buffer type, currently animation "
00571                          "rendering is done in a double-buffered OpenGL canvas, "
00572                          "but ordinary rendering happens directly in the front-buffer. "
00573                          "This mode can be useful with absurdly large scenes, "
00574                          "as the rendering will visibly progress, and one will "
00575                          "avoid having the end user wonder why nothing is happening "
00576                          "while the scene is rendered to the back buffer in the default "
00577                          "SoQtViewer::BUFFER_DOUBLE mode.");
00578         break;
00579     default:
00580         ASSERT (false);
00581     }
00582 }

void IgExaminerViewerCategory::updateInteractiveDrawStyle ( int  style  )  [private, virtual, slot]

Definition at line 417 of file IgExaminerViewerCategory.cc.

References ASSERT, m_interactiveDrawStyle, and updateInteractiveDrawStyleHelp().

Referenced by browserChanged().

00418 {
00419     switch (style)
00420     {
00421     case SoQtViewer::VIEW_SAME_AS_STILL:
00422         m_interactiveDrawStyle->setCurrentItem (0);
00423         break;
00424     case SoQtViewer::VIEW_NO_TEXTURE:
00425         m_interactiveDrawStyle->setCurrentItem (1);
00426         break;
00427     case SoQtViewer::VIEW_LOW_COMPLEXITY:
00428         m_interactiveDrawStyle->setCurrentItem (2);
00429         break;
00430     case SoQtViewer::VIEW_LINE:
00431         m_interactiveDrawStyle->setCurrentItem (3);
00432         break;
00433     case SoQtViewer::VIEW_LOW_RES_LINE:
00434         m_interactiveDrawStyle->setCurrentItem (4);
00435         break;
00436     case SoQtViewer::VIEW_POINT:
00437         m_interactiveDrawStyle->setCurrentItem (5);
00438         break;
00439     case SoQtViewer::VIEW_LOW_RES_POINT:
00440         m_interactiveDrawStyle->setCurrentItem (6);
00441         break;
00442     case SoQtViewer::VIEW_BBOX:
00443         m_interactiveDrawStyle->setCurrentItem (7);
00444         break;
00445     default:
00446         ASSERT (false);
00447     }
00448     updateInteractiveDrawStyleHelp ();
00449 }

void IgExaminerViewerCategory::updateInteractiveDrawStyleHelp ( void   )  [private]

Definition at line 452 of file IgExaminerViewerCategory.cc.

References reco::fitHelper::add(), ASSERT, and m_interactiveDrawStyle.

Referenced by setInteractiveDrawStyle(), and updateInteractiveDrawStyle().

00453 {
00454     switch (m_interactiveDrawStyle->currentItem ())
00455     {
00456     case 0:
00457         QWhatsThis::add (m_interactiveDrawStyle,
00458                          "Drawing style when the end user is interacting with the scene camera, "
00459                          "causing continuous animation redraws. Selected style will "
00460                          "always render a scene with an animating camera in the same "
00461                          "manner as scene with a still camera.");
00462         break;
00463     case 1:
00464         QWhatsThis::add (m_interactiveDrawStyle,
00465                          "Drawing style when the end user is interacting with the scene camera, "
00466                          "causing continuous animation redraws. Selected style will "
00467                          "render scene without textures.");
00468         break;
00469     case 2:
00470         QWhatsThis::add (m_interactiveDrawStyle,
00471                          "Drawing style when the end user is interacting with the scene camera, "
00472                          "causing continuous animation redraws. Selected style will "
00473                          "render all \"complex\" shape types with low complexity to improve "
00474                          "rendering performance.");
00475         break;
00476     case 3:
00477         QWhatsThis::add (m_interactiveDrawStyle,
00478                          "Drawing style when the end user is interacting with the scene camera, "
00479                          "causing continuous animation redraws. Selected style will "
00480                          "view all polygon geometry in wireframe mode.");
00481         break;
00482     case 4:
00483         QWhatsThis::add (m_interactiveDrawStyle,
00484                          "Drawing style when the end user is interacting with the scene camera, "
00485                          "causing continuous animation redraws. Selected style will "
00486                          "render as wireframe and don't bother with getting them rendered "
00487                          "correctly in depth.");
00488         break;
00489     case 5:
00490         QWhatsThis::add (m_interactiveDrawStyle,
00491                          "Drawing style when the end user is interacting with the scene camera, "
00492                          "causing continuous animation redraws. Selected style will "
00493                          "render only the vertex positions of the geometry.");
00494         break;
00495     case 6:
00496         QWhatsThis::add (m_interactiveDrawStyle,
00497                          "Drawing style when the end user is interacting with the scene camera, "
00498                          "causing continuous animation redraws. Selected style will "
00499                          "render as vertex points and don't bother with getting them rendered "
00500                          "correctly in depth.");
00501         break;
00502     case 7:
00503         QWhatsThis::add (m_interactiveDrawStyle,
00504                          "Drawing style when the end user is interacting with the scene camera, "
00505                          "causing continuous animation redraws. Selected style will "
00506                          "view the scene's bounding boxes, instead of rendering the full geometry.");
00507         break;
00508     default:
00509         ASSERT (false);
00510     }
00511 }

void IgExaminerViewerCategory::updateStillDrawStyle ( int  style  )  [private, virtual, slot]

Definition at line 285 of file IgExaminerViewerCategory.cc.

References ASSERT, m_stillDrawStyle, and updateStillDrawStyleHelp().

Referenced by browserChanged().

00286 {
00287     switch (style)
00288     {
00289     case SoQtViewer::VIEW_AS_IS:
00290         m_stillDrawStyle->setCurrentItem (0);
00291         break;
00292     case SoQtViewer::VIEW_HIDDEN_LINE:
00293         m_stillDrawStyle->setCurrentItem (1);
00294         break;
00295     case SoQtViewer::VIEW_WIREFRAME_OVERLAY:
00296         m_stillDrawStyle->setCurrentItem (2);
00297         break;
00298     case SoQtViewer::VIEW_NO_TEXTURE:
00299         m_stillDrawStyle->setCurrentItem (3);
00300         break;
00301     case SoQtViewer::VIEW_LOW_COMPLEXITY:
00302         m_stillDrawStyle->setCurrentItem (4);
00303         break;
00304     case SoQtViewer::VIEW_LINE:
00305         m_stillDrawStyle->setCurrentItem (5);
00306         break;
00307     case SoQtViewer::VIEW_POINT:
00308         m_stillDrawStyle->setCurrentItem (6);
00309         break;
00310     case SoQtViewer::VIEW_BBOX:
00311         m_stillDrawStyle->setCurrentItem (7);
00312         break;
00313     default:
00314         ASSERT (false);
00315     }
00316     updateStillDrawStyleHelp ();
00317 }

void IgExaminerViewerCategory::updateStillDrawStyleHelp ( void   )  [private]

Definition at line 320 of file IgExaminerViewerCategory.cc.

References reco::fitHelper::add(), ASSERT, and m_stillDrawStyle.

Referenced by setStillDrawStyle(), and updateStillDrawStyle().

00321 {
00322     
00323     switch (m_stillDrawStyle->currentItem ())
00324     {
00325     case 0:
00326         QWhatsThis::add (m_stillDrawStyle,
00327                          "Drawing style when camera is standing still. Current style will "
00328                          "draw all scene geometry in it's original style");
00329         break;
00330     case 1:
00331         QWhatsThis::add (m_stillDrawStyle,
00332                          "Drawing style when camera is standing still. Current style will "
00333                          "draw scene in \"hidden line\" mode: that is, as wireframe with "
00334                          "no \"see-through\".");
00335         break;
00336     case 2:
00337         QWhatsThis::add (m_stillDrawStyle,
00338                          "Drawing style when camera is standing still. Current style will "
00339                          "render the scene as normal, but overlay a set of lines showing "
00340                          "the contours of all polygons");
00341         break;
00342     case 3:
00343         QWhatsThis::add (m_stillDrawStyle,
00344                          "Drawing style when camera is standing still. Current style will "
00345                          "render scene without textures.");
00346         break;
00347     case 4:
00348         QWhatsThis::add (m_stillDrawStyle,
00349                          "Drawing style when camera is standing still. Current style will "
00350                          "render all \"complex\" shape types with low complexity to improve "
00351                          "rendering performance.");
00352         break;
00353     case 5:
00354         QWhatsThis::add (m_stillDrawStyle,
00355                          "Drawing style when camera is standing still. Current style will "
00356                          "view all polygon geometry in wireframe mode.");
00357         break;
00358     case 6:
00359         QWhatsThis::add (m_stillDrawStyle,
00360                          "Drawing style when camera is standing still. Current style will "
00361                          "render only the vertex positions of the geometry.");
00362         break;
00363     case 7:
00364         QWhatsThis::add (m_stillDrawStyle,
00365                          "Drawing style when camera is standing still. Current style will "
00366                          "view the scene's bounding boxes, instead of rendering the full geometry.");
00367         break;
00368     default:
00369         ASSERT (false);
00370     }  
00371 }


Member Data Documentation

QCheckBox* IgExaminerViewerCategory::m_animation [private]

Definition at line 64 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), and browserChanged().

QCheckBox* IgExaminerViewerCategory::m_autoClipping [private]

Definition at line 63 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), and browserChanged().

QComboBox* IgExaminerViewerCategory::m_bufferType [private]

Definition at line 59 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), updateBufferType(), and updateBufferTypeHelp().

QCheckBox* IgExaminerViewerCategory::m_cursor [private]

Definition at line 67 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), and browserChanged().

QCheckBox* IgExaminerViewerCategory::m_detailSeek [private]

Definition at line 66 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), and browserChanged().

IgQtRangeControlUInt* IgExaminerViewerCategory::m_feedbackSize [private]

Definition at line 62 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), and browserChanged().

QComboBox* IgExaminerViewerCategory::m_interactiveDrawStyle [private]

Definition at line 58 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), updateInteractiveDrawStyle(), and updateInteractiveDrawStyleHelp().

IgQtRangeControlFloat* IgExaminerViewerCategory::m_seekTime [private]

Definition at line 60 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), and browserChanged().

IgQtRangeControlFloat* IgExaminerViewerCategory::m_stereoOffset [private]

Definition at line 61 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), and browserChanged().

QCheckBox* IgExaminerViewerCategory::m_stereoViewing [private]

Definition at line 65 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), and browserChanged().

QComboBox* IgExaminerViewerCategory::m_stillDrawStyle [private]

Definition at line 57 of file IgExaminerViewerCategory.h.

Referenced by addExaminerViewerTab(), updateStillDrawStyle(), and updateStillDrawStyleHelp().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:11 2009 for CMSSW by  doxygen 1.5.4