#include <Fireworks/Core/interface/FW3DViewBase.h>
Public Member Functions | |
virtual void | addTo (FWConfiguration &) const |
FW3DViewBase (TEveWindowSlot *, FWViewType::EType) | |
virtual void | populateController (ViewerParameterGUI &) const |
virtual void | setContext (const fireworks::Context &) |
virtual void | setFrom (const FWConfiguration &) |
void | updateGlobalSceneScaleParameters () |
virtual | ~FW3DViewBase () |
Private Member Functions | |
FW3DViewBase (const FW3DViewBase &) | |
const FW3DViewBase & | operator= (const FW3DViewBase &) |
void | showWireFrame (bool) |
Private Attributes | |
FW3DViewGeometry * | m_geometry |
FWBoolParameter | m_showMuonBarrel |
FWBoolParameter | m_showMuonEndcap |
FWBoolParameter | m_showPixelBarrel |
FWBoolParameter | m_showPixelEndcap |
FWBoolParameter | m_showTrackerBarrel |
FWBoolParameter | m_showTrackerEndcap |
FWBoolParameter | m_showWireFrame |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 38 of file FW3DViewBase.h.
FW3DViewBase::FW3DViewBase | ( | TEveWindowSlot * | iParent, |
FWViewType::EType | typeId | ||
) |
Definition at line 44 of file FW3DViewBase.cc.
References FWEveView::viewerGL().
: FWEveView(iParent, typeId), m_geometry(0), m_showMuonBarrel(this, "Show Muon Barrel", false ), m_showMuonEndcap(this, "Show Muon Endcap", false), m_showPixelBarrel(this, "Show Pixel Barrel", false ), m_showPixelEndcap(this, "Show Pixel Endcap", false), m_showTrackerBarrel(this, "Show Tracker Barrel", false ), m_showTrackerEndcap(this, "Show Tracker Endcap", false), m_showWireFrame(this, "Show Wire Frame", true) { viewerGL()->SetCurrentCamera(TGLViewer::kCameraPerspXOZ); }
FW3DViewBase::~FW3DViewBase | ( | ) | [virtual] |
FW3DViewBase::FW3DViewBase | ( | const FW3DViewBase & | ) | [private] |
void FW3DViewBase::addTo | ( | FWConfiguration & | iTo | ) | const [virtual] |
Reimplemented from FWEveView.
Definition at line 89 of file FW3DViewBase.cc.
References FWEveView::addToPerspectiveCamera(), and FWEveView::viewerGL().
{ // take care of parameters FWEveView::addTo(iTo); TGLPerspectiveCamera* camera = dynamic_cast<TGLPerspectiveCamera*>(&(viewerGL()->CurrentCamera())); if (camera) addToPerspectiveCamera(camera, "Plain3D", iTo); }
const FW3DViewBase& FW3DViewBase::operator= | ( | const FW3DViewBase & | ) | [private] |
void FW3DViewBase::populateController | ( | ViewerParameterGUI & | gui | ) | const [virtual] |
Reimplemented from FWEveView.
Definition at line 122 of file FW3DViewBase.cc.
References ViewerParameterGUI::getTabContainer(), m_showMuonBarrel, m_showMuonEndcap, m_showPixelBarrel, m_showPixelEndcap, m_showTrackerBarrel, m_showTrackerEndcap, m_showWireFrame, ViewerParameterGUI::requestTab(), ViewerParameterGUI::separator(), and FWEveView::viewerGL().
{ FWEveView::populateController(gui); gui.requestTab("Detector"). addParam(&m_showPixelBarrel). addParam(&m_showPixelEndcap). addParam(&m_showTrackerBarrel). addParam(&m_showTrackerEndcap). addParam(&m_showMuonBarrel). addParam(&m_showMuonEndcap). addParam(&m_showWireFrame); gui.requestTab("Style").separator(); gui.getTabContainer()->AddFrame(new TGTextButton(gui.getTabContainer(), "Root controls", Form("TEveGedEditor::SpawnNewEditor((TGLViewer*)0x%lx)", (unsigned long)viewerGL()))); }
void FW3DViewBase::setContext | ( | const fireworks::Context & | context | ) | [virtual] |
Reimplemented from FWEveView.
Reimplemented in FW3DView.
Definition at line 63 of file FW3DViewBase.cc.
References FWGenericParameter< T >::changed_, FWEveView::geoScene(), m_geometry, m_showMuonBarrel, m_showMuonEndcap, m_showPixelBarrel, m_showPixelEndcap, m_showTrackerBarrel, m_showTrackerEndcap, m_showWireFrame, FW3DViewGeometry::showMuonBarrel(), FW3DViewGeometry::showMuonEndcap(), FW3DViewGeometry::showPixelBarrel(), FW3DViewGeometry::showPixelEndcap(), FW3DViewGeometry::showTrackerBarrel(), FW3DViewGeometry::showTrackerEndcap(), and showWireFrame().
{ FWEveView::setContext(context); m_geometry = new FW3DViewGeometry(context); geoScene()->AddElement(m_geometry); m_showMuonBarrel.changed_.connect(boost::bind(&FW3DViewGeometry::showMuonBarrel,m_geometry,_1)); m_showMuonEndcap.changed_.connect(boost::bind(&FW3DViewGeometry::showMuonEndcap,m_geometry,_1)); m_showPixelBarrel.changed_.connect(boost::bind(&FW3DViewGeometry::showPixelBarrel,m_geometry,_1)); m_showPixelEndcap.changed_.connect(boost::bind(&FW3DViewGeometry::showPixelEndcap,m_geometry,_1)); m_showTrackerBarrel.changed_.connect(boost::bind(&FW3DViewGeometry::showTrackerBarrel,m_geometry,_1)); m_showTrackerEndcap.changed_.connect(boost::bind(&FW3DViewGeometry::showTrackerEndcap,m_geometry,_1)); m_showWireFrame.changed_.connect(boost::bind(&FW3DViewBase::showWireFrame,this, _1)); }
void FW3DViewBase::setFrom | ( | const FWConfiguration & | iFrom | ) | [virtual] |
Reimplemented from FWEveView.
Definition at line 100 of file FW3DViewBase.cc.
References fireworks::Context::colorManager(), FWEveView::context(), asciidump::s, FWEveView::setFromPerspectiveCamera(), FWColorManager::setGeomTransparency(), FWConfiguration::value(), FWConfiguration::valueForKey(), FWConfiguration::version(), and FWEveView::viewerGL().
{ // take care of parameters FWEveView::setFrom(iFrom); TGLPerspectiveCamera* camera = dynamic_cast<TGLPerspectiveCamera*>(&(viewerGL()->CurrentCamera())); if (camera) setFromPerspectiveCamera(camera, "Plain3D", iFrom); if (iFrom.version() < 5) { // transparency moved to common preferences in FWEveView version 5 std::string tName("Detector Transparency"); std::istringstream s(iFrom.valueForKey(tName)->value()); int transp; s>> transp; context().colorManager()->setGeomTransparency(transp, false); } }
void FW3DViewBase::showWireFrame | ( | bool | x | ) | [private] |
Definition at line 80 of file FW3DViewBase.cc.
References FWEveView::geoScene(), and FWEveView::viewerGL().
Referenced by setContext().
void FW3DViewBase::updateGlobalSceneScaleParameters | ( | ) |
FW3DViewGeometry* FW3DViewBase::m_geometry [private] |
Definition at line 64 of file FW3DViewBase.h.
Referenced by setContext(), and ~FW3DViewBase().
Definition at line 67 of file FW3DViewBase.h.
Referenced by populateController(), and setContext().
Definition at line 68 of file FW3DViewBase.h.
Referenced by populateController(), and setContext().
Definition at line 69 of file FW3DViewBase.h.
Referenced by populateController(), and setContext().
Definition at line 70 of file FW3DViewBase.h.
Referenced by populateController(), and setContext().
Definition at line 71 of file FW3DViewBase.h.
Referenced by populateController(), and setContext().
Definition at line 72 of file FW3DViewBase.h.
Referenced by populateController(), and setContext().
FWBoolParameter FW3DViewBase::m_showWireFrame [private] |
Definition at line 73 of file FW3DViewBase.h.
Referenced by populateController(), and setContext().