#include "VisReco/VisMagneticField/interface/VisCMSMagFieldTwig.h"
#include "VisReco/VisMagneticField/interface/VisCMSMagField.h"
#include "VisReco/VisMagneticField/interface/xtypeinfo.h"
#include "VisFramework/VisFrameworkBase/interface/debug.h"
#include "Iguana/Inventor/interface/IgSoFieldPlane.h"
#include "Iguana/Framework/interface/IgBrowserMethods.h"
#include "Iguana/Framework/interface/IgRepSet.h"
#include "Iguana/GLBrowsers/interface/Ig3DFieldPlanesCategory.h"
#include "Iguana/GLModels/interface/IgCommon3DReps.h"
#include "Iguana/GLModels/interface/Ig3DModel.h"
#include "Iguana/GLModels/interface/Ig3DRep.h"
#include "Iguana/GLModels/interface/xtypeinfo.h"
#include "Iguana/Models/interface/IgTextModel.h"
#include "Iguana/Models/interface/IgSimpleTextRep.h"
#include "Iguana/Models/interface/xtypeinfo.h"
#include "CLHEP/Units/SystemOfUnits.h"
#include <sstream>
Go to the source code of this file.
Functions | |
MMM_DEFUN_FUNC (void, IgBrowserMethods::, doUpdate,(VisCMSMagFieldTwig *, IgTextRep *rep, unsigned)) | |
MMM_DEFUN_FUNC (void, IgBrowserMethods::, doUpdate,(VisCMSMagFieldTwig *twig, Ig3DRep *rep, unsigned mask)) |
MMM_DEFUN_FUNC | ( | void | , | |
IgBrowserMethods:: | , | |||
doUpdate | , | |||
(VisCMSMagFieldTwig *, IgTextRep *rep, unsigned) | ||||
) |
Definition at line 112 of file VisCMSMagFieldTwig.cc.
References IgTextRep::setText().
00114 { 00115 std::ostringstream text; 00116 text << "<table width='100%'><tr><td>Name</td><td>" 00117 << "Magnetic Field</td></tr></table>\n"; 00118 00119 rep->setText (text.str ()); 00120 }
MMM_DEFUN_FUNC | ( | void | , | |
IgBrowserMethods:: | , | |||
doUpdate | , | |||
(VisCMSMagFieldTwig *twig, Ig3DRep *rep, unsigned mask) | ||||
) |
Definition at line 94 of file VisCMSMagFieldTwig.cc.
References IgSoFieldPlane::field(), Ig3DBaseRep::node(), and IgTwig::visible().
00096 { 00097 // Let base class implementation handle the basics. 00098 mmm_doUpdate ((IgTwig *) twig, rep, mask); 00099 00100 // Get the current magnetic field if twig is visible 00101 IgSbField *field = 0; 00102 SbBox3f worldbox; 00103 00104 if ((! twig->visible () ) || (! twig->fieldProxy (field, worldbox))) 00105 return; 00106 00107 IgSoFieldPlane *repnode = twig->getFieldPlane (); 00108 repnode->field (field, worldbox); 00109 rep->node ()->addChild (repnode); 00110 }