CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
FWProxyBuilderBase::Product Struct Reference

#include <FWProxyBuilderBase.h>

Public Member Functions

 Product (FWViewType::EType t, const FWViewContext *c)
 
 ~Product ()
 

Public Attributes

TEveElementList * m_elements
 
sigc::connection m_scaleConnection
 
const FWViewContextm_viewContext
 
FWViewType::EType m_viewType
 

Detailed Description

Definition at line 51 of file FWProxyBuilderBase.h.

Constructor & Destructor Documentation

FWProxyBuilderBase::Product::Product ( FWViewType::EType  t,
const FWViewContext c 
)

Definition at line 45 of file FWProxyBuilderBase.cc.

References m_elements.

46 {
47  m_elements = new TEveElementList("ProxyProduct");
48  m_elements->IncDenyDestroy();
49 }
const FWViewContext * m_viewContext
FWProxyBuilderBase::Product::~Product ( )

Definition at line 52 of file FWProxyBuilderBase.cc.

References i, and dbtoconf::parent.

53 {
54  // remove product from projected scene (RhoPhi or RhoZ)
55  TEveProjectable* pable = dynamic_cast<TEveProjectable*>(m_elements);
56  // don't have to check cast, because TEveElementList is TEveProjectable
57  for (TEveProjectable::ProjList_i i = pable->BeginProjecteds(); i != pable->EndProjecteds(); ++i)
58  {
59  TEveElement* projected = (*i)->GetProjectedAsElement();
60  (*projected->BeginParents())->RemoveElement(projected);
61  }
62 
63  // remove from 3D scenes
64  while (m_elements->HasParents())
65  {
66  TEveElement* parent = *m_elements->BeginParents();
67  parent->RemoveElement(m_elements);
68  }
69 
70  m_elements->Annihilate();
71 }
int i
Definition: DBlmapReader.cc:9
list parent
Definition: dbtoconf.py:74

Member Data Documentation

TEveElementList* FWProxyBuilderBase::Product::m_elements
sigc::connection FWProxyBuilderBase::Product::m_scaleConnection

Definition at line 56 of file FWProxyBuilderBase.h.

Referenced by FWProxyBuilderBase::createProduct().

const FWViewContext* FWProxyBuilderBase::Product::m_viewContext

Definition at line 54 of file FWProxyBuilderBase.h.

Referenced by FWProxyBuilderBase::modelChanges().

FWViewType::EType FWProxyBuilderBase::Product::m_viewType

Definition at line 53 of file FWProxyBuilderBase.h.

Referenced by FWProxyBuilderBase::modelChanges().