CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

FWViewGeometryList Class Reference

#include <Fireworks/Core/interface/FWViewGeometryList.h>

Inheritance diagram for FWViewGeometryList:
FW3DViewGeometry FWRPZViewGeometry

List of all members.

Public Member Functions

 FWViewGeometryList (const fireworks::Context &context, bool projected=true)
void updateColors ()
void updateTransparency (bool projectedType)
virtual ~FWViewGeometryList ()

Protected Member Functions

void addToCompound (TEveElement *el, FWGeomColorIndex idx, bool applyTransp=true) const

Protected Attributes

TEveCompound * m_colorComp [kFWGeomColorSize]
const fireworks::Contextm_context
const FWGeometrym_geom

Private Member Functions

 FWViewGeometryList (const FWViewGeometryList &)
const FWViewGeometryListoperator= (const FWViewGeometryList &)

Private Attributes

sigc::connection m_colorConnection
bool m_projected
sigc::connection m_transpConnection

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 35 of file FWViewGeometryList.h.


Constructor & Destructor Documentation

FWViewGeometryList::FWViewGeometryList ( const fireworks::Context context,
bool  projected = true 
)
FWViewGeometryList::~FWViewGeometryList ( ) [virtual]

Definition at line 42 of file FWViewGeometryList.cc.

References i, kFWGeomColorSize, m_colorComp, m_colorConnection, and m_transpConnection.

{
   m_transpConnection.disconnect();
   m_colorConnection.disconnect();
   for (int i = 0; i < kFWGeomColorSize; ++i)
   {
      if (m_colorComp[i]) m_colorComp[i]->Destroy();
   }
}
FWViewGeometryList::FWViewGeometryList ( const FWViewGeometryList ) [private]

Member Function Documentation

void FWViewGeometryList::addToCompound ( TEveElement *  el,
FWGeomColorIndex  idx,
bool  applyTransp = true 
) const [protected]
const FWViewGeometryList& FWViewGeometryList::operator= ( const FWViewGeometryList ) [private]
void FWViewGeometryList::updateColors ( )

Definition at line 64 of file FWViewGeometryList.cc.

References fireworks::Context::colorManager(), FWColorManager::geomColor(), FWColorManager::geomTransparency(), i, kFWGeomColorSize, m_colorComp, m_context, and m_projected.

Referenced by FWViewGeometryList().

{ 
   //  printf("%p FWViewGeometryList::updateColors projected %d %s \n", this, m_projected, GetElementName());
   for (int i = 0; i < kFWGeomColorSize; ++i)
   {
      m_colorComp[i]->SetMainColor(m_context.colorManager()->geomColor(FWGeomColorIndex(i)));
      m_colorComp[i]->SetMainTransparency(m_context.colorManager()->geomTransparency(m_projected));
      m_colorComp[i]->ElementChanged();
   }
}
void FWViewGeometryList::updateTransparency ( bool  projectedType)

Definition at line 76 of file FWViewGeometryList.cc.

References fireworks::Context::colorManager(), FWColorManager::geomTransparency(), i, kFWGeomColorSize, m_colorComp, m_context, and m_projected.

Referenced by FWViewGeometryList().

{
   //  printf("%p transp [%d]\n", this, iTransp);

   if (projectedType == m_projected)
   { 
      for (int i = 0; i < kFWGeomColorSize; ++i)
      {
         m_colorComp[i]->SetMainTransparency(m_context.colorManager()->geomTransparency(projectedType));
         m_colorComp[i]->ElementChanged();
      }
   }
}

Member Data Documentation

TEveCompound* FWViewGeometryList::m_colorComp[kFWGeomColorSize] [protected]
sigc::connection FWViewGeometryList::m_colorConnection [private]

Definition at line 59 of file FWViewGeometryList.h.

Referenced by FWViewGeometryList(), and ~FWViewGeometryList().

Definition at line 60 of file FWViewGeometryList.h.

Referenced by FWViewGeometryList(), updateColors(), and updateTransparency().

sigc::connection FWViewGeometryList::m_transpConnection [private]

Definition at line 58 of file FWViewGeometryList.h.

Referenced by FWViewGeometryList(), and ~FWViewGeometryList().