33#ifndef G4VISFILTERMANAGER_HH
34#define G4VISFILTERMANAGER_HH
87 std::vector<Factory*> fFactoryList;
88 std::vector<Filter*> fFilterList;
89 std::vector<G4UImessenger*> fMessengerList;
95 :fPlacement(placement)
104 std::vector<G4UImessenger*>::iterator iterMsgr = fMessengerList.begin();
106 while (iterMsgr != fMessengerList.end()) {
111 typename std::vector<Factory*>::iterator iterFactory = fFactoryList.begin();
113 while (iterFactory != fFactoryList.end()) {
118 typename std::vector<Filter*>::iterator iterFilter = fFilterList.begin();
120 while (iterFilter != fFilterList.end()) {
130 fFilterList.push_back(filter);
137 fFactoryList.push_back(factory);
146 typename std::vector<Filter*>::const_iterator iter = fFilterList.begin();
149 while (passed && (iter != fFilterList.end())) {
150 passed = (*iter)->Accept(obj);
178 ed <<
"Invalid Filter mode: "<<mode;
180 (
"G4VisFilterManager::SetMode(const G4String& mode)",
"visman0101",
JustWarning, ed);
202 ostr<<
"Registered filter factories:"<<std::endl;
203 typename std::vector<Factory*>::const_iterator iterFactory = fFactoryList.begin();
205 while (iterFactory != fFactoryList.end()) {
206 (*iterFactory)->Print(ostr);
210 if (0 == fFactoryList.size()) ostr<<
" None"<<std::endl;
213 ostr<<
"Registered filters:"<<std::endl;
215 typename std::vector<Filter*>::const_iterator iterFilter = fFilterList.begin();
217 while (iterFilter != fFilterList.end()) {
219 if ((*iterFilter)->Name() == name) (*iterFilter)->PrintAll(ostr);
222 (*iterFilter)->PrintAll(ostr);
227 if (0 == fFilterList.size()) ostr<<
" None"<<std::endl;
231const std::vector< G4VFilter<T>* >&
238const std::vector< G4VModelFactory< G4VFilter<T> >* >&
void SetMode(const G4String &)
void SetMode(const FilterMode::Mode &)
G4VisFilterManager(const G4String &)
FilterMode::Mode GetMode() const
G4String Placement() const
const std::vector< Filter * > & FilterList() const
G4VModelFactory< Filter > Factory
const std::vector< Factory * > & FactoryList() const
virtual ~G4VisFilterManager()
void Print(std::ostream &ostr, const G4String &name="") const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::ostringstream G4ExceptionDescription