Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
00010 #include "SimDataFormats/Vertex/interface/SimVertex.h"
00011
00012 #include "TEvePointSet.h"
00013
00014 class FWSimVertexProxyBuilder : public FWSimpleProxyBuilderTemplate<SimVertex>
00015 {
00016 public:
00017 FWSimVertexProxyBuilder( void ) {}
00018 virtual ~FWSimVertexProxyBuilder( void ) {}
00019
00020 REGISTER_PROXYBUILDER_METHODS();
00021
00022 private:
00023
00024 FWSimVertexProxyBuilder( const FWSimVertexProxyBuilder& );
00025
00026 const FWSimVertexProxyBuilder& operator=( const FWSimVertexProxyBuilder& );
00027
00028 void build( const SimVertex& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* );
00029 };
00030
00031 void
00032 FWSimVertexProxyBuilder::build( const SimVertex& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* )
00033 {
00034 TEvePointSet* pointSet = new TEvePointSet;
00035 setupAddElement( pointSet, &oItemHolder );
00036 pointSet->SetNextPoint( iData.position().x(), iData.position().y(), iData.position().z());
00037 }
00038
00039 REGISTER_FWPROXYBUILDER( FWSimVertexProxyBuilder, SimVertex, "SimVertices", FWViewType::kAll3DBits | FWViewType::kAllRPZBits );