1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// -*- C++ -*-
//
// Package: Calo
// Class : FWFromSliceSelectorBase
//
// Implementation:
// [Notes on implementation]
//
// Original Author:
// Created: Wed Jun 2 17:30:49 CEST 2010
//
// system include files
// user include files
#include "Fireworks/Calo/interface/FWFromSliceSelector.h"
#include "Fireworks/Core/interface/FWEventItem.h"
//
// constants, enums and typedefs
//
//
// static data member definitions
//
//
// constructors and destructor
//
FWFromSliceSelector::FWFromSliceSelector(const FWEventItem* iItem) : m_item(iItem) {}
FWFromSliceSelector::~FWFromSliceSelector() {}
//
// member functions
//
void FWFromSliceSelector::clear() {
if (!m_item)
return;
int size = static_cast<int>(m_item->size());
for (int index = 0; index < size; ++index) {
if (m_item->modelInfo(index).m_displayProperties.isVisible() && m_item->modelInfo(index).isSelected()) {
m_item->unselect(index);
}
}
}
void FWFromSliceSelector::reset() { m_item = nullptr; }
//
// const member functions
//
FWModelChangeManager* FWFromSliceSelector::changeManager() const { return m_item->changeManager(); }
//
// static member functions
//
|