CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
CmsShowModelPopup Class Reference

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

Inheritance diagram for CmsShowModelPopup:

Public Member Functions

void changeModelColor (Color_t iColor)
 
void changeModelOpacity (Int_t opacity=100)
 
 ClassDef (CmsShowModelPopup, 0)
 
void clicked ()
 
virtual void CloseWindow ()
 
 CmsShowModelPopup (FWDetailViewManager *, FWSelectionManager *, const FWColorManager *, const TGWindow *p=0, UInt_t w=1, UInt_t h=1)
 
void colorSetChanged ()
 
void disconnectAll ()
 
void fillModelPopup (const FWSelectionManager &iSelMgr)
 
void openDetailedView ()
 
void toggleModelVisible (Bool_t on=kTRUE)
 
void updateDisplay ()
 
virtual ~CmsShowModelPopup ()
 

Private Member Functions

 CmsShowModelPopup (const CmsShowModelPopup &)
 
const CmsShowModelPopupoperator= (const CmsShowModelPopup &)
 

Private Attributes

sigc::connection m_changes
 
const FWColorManagerm_colorManager
 
FWColorSelectm_colorSelectWidget
 
sigc::connection m_destroyedConn
 
FWDetailViewManagerm_detailViewManager
 
FWDialogBuilderm_dialogBuilder
 
TGCheckButton * m_isVisibleButton
 
sigc::connection m_modelChangedConn
 
TGLabel * m_modelLabel
 
std::set< FWModelIdm_models
 
TGHSlider * m_opacitySlider
 
std::vector< TGTextButton * > m_openDetailedViewButtons
 

Friends

class CmsShowModelPopupDetailViewButtonAdapter
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 51 of file CmsShowModelPopup.h.

Constructor & Destructor Documentation

CmsShowModelPopup::CmsShowModelPopup ( FWDetailViewManager iManager,
FWSelectionManager iSelMgr,
const FWColorManager iColorMgr,
const TGWindow *  p = 0,
UInt_t  w = 1,
UInt_t  h = 1 
)

Definition at line 54 of file CmsShowModelPopup.cc.

CmsShowModelPopup::~CmsShowModelPopup ( )
virtual

Definition at line 106 of file CmsShowModelPopup.cc.

CmsShowModelPopup::CmsShowModelPopup ( const CmsShowModelPopup )
private

Member Function Documentation

void CmsShowModelPopup::changeModelColor ( Color_t  color)

Change the color of the selected objects.

NOTES:

  • Notice that the whole thing works with a "Copy old properties and modify" paradigm.

Definition at line 317 of file CmsShowModelPopup.cc.

void CmsShowModelPopup::changeModelOpacity ( Int_t  opacity = 100)

Change the opacity of the selected objects. See above in changeModelColor for additional notes.

Definition at line 336 of file CmsShowModelPopup.cc.

CmsShowModelPopup::ClassDef ( CmsShowModelPopup  ,
 
)
void CmsShowModelPopup::clicked ( )

Definition at line 378 of file CmsShowModelPopup.cc.

virtual void CmsShowModelPopup::CloseWindow ( )
inlinevirtual

Definition at line 62 of file CmsShowModelPopup.h.

62 { UnmapWindow(); }
void CmsShowModelPopup::colorSetChanged ( )

Definition at line 271 of file CmsShowModelPopup.cc.

void CmsShowModelPopup::disconnectAll ( )

This is invoked to when no object is selected and sets the dialog in a disabled look.

Definition at line 286 of file CmsShowModelPopup.cc.

void CmsShowModelPopup::fillModelPopup ( const FWSelectionManager iSelMgr)

this updates the dialog when selection changes. It also handles multiple Selections by updating only the widgets which have non controversial (i.e. different across selected objects) values.

Definition at line 135 of file CmsShowModelPopup.cc.

void CmsShowModelPopup::openDetailedView ( )

Definition at line 370 of file CmsShowModelPopup.cc.

const CmsShowModelPopup& CmsShowModelPopup::operator= ( const CmsShowModelPopup )
private
void CmsShowModelPopup::toggleModelVisible ( Bool_t  on = kTRUE)

Change (not toggle actually) the visibility of selected objects. See changeModelColor for additional notes.

Definition at line 355 of file CmsShowModelPopup.cc.

void CmsShowModelPopup::updateDisplay ( )

Based on the actual models properties, update the GUI.

Definition at line 251 of file CmsShowModelPopup.cc.

Friends And Related Function Documentation

friend class CmsShowModelPopupDetailViewButtonAdapter
friend

Definition at line 55 of file CmsShowModelPopup.h.

Member Data Documentation

sigc::connection CmsShowModelPopup::m_changes
private

Definition at line 97 of file CmsShowModelPopup.h.

const FWColorManager* CmsShowModelPopup::m_colorManager
private

Definition at line 100 of file CmsShowModelPopup.h.

FWColorSelect* CmsShowModelPopup::m_colorSelectWidget
private

Definition at line 89 of file CmsShowModelPopup.h.

sigc::connection CmsShowModelPopup::m_destroyedConn
private

Definition at line 96 of file CmsShowModelPopup.h.

FWDetailViewManager* CmsShowModelPopup::m_detailViewManager
private

Definition at line 99 of file CmsShowModelPopup.h.

FWDialogBuilder* CmsShowModelPopup::m_dialogBuilder
private

Definition at line 102 of file CmsShowModelPopup.h.

TGCheckButton* CmsShowModelPopup::m_isVisibleButton
private

Definition at line 90 of file CmsShowModelPopup.h.

sigc::connection CmsShowModelPopup::m_modelChangedConn
private

Definition at line 95 of file CmsShowModelPopup.h.

TGLabel* CmsShowModelPopup::m_modelLabel
private

Definition at line 88 of file CmsShowModelPopup.h.

std::set<FWModelId> CmsShowModelPopup::m_models
private

Definition at line 94 of file CmsShowModelPopup.h.

TGHSlider* CmsShowModelPopup::m_opacitySlider
private

Definition at line 101 of file CmsShowModelPopup.h.

std::vector<TGTextButton*> CmsShowModelPopup::m_openDetailedViewButtons
private

Definition at line 91 of file CmsShowModelPopup.h.