33 #ifndef CXREPCONTAINER_H
34 #define CXREPCONTAINER_H
36 #include "cxResourceVisualizationExport.h"
45 typedef boost::shared_ptr<class Rep>
RepPtr;
47 typedef std::map<QString, RepPtr>
RepMap;
68 for (
unsigned i = 0; i < mReps.size(); ++i)
70 boost::shared_ptr<REP> rep = boost::dynamic_pointer_cast<REP>(mReps[i]);
71 if (rep && rep->hasTool(tool))
76 return boost::shared_ptr<REP>();
95 for (
unsigned i = 0; i < mReps.size(); ++i)
97 boost::shared_ptr<REP> rep = boost::dynamic_pointer_cast<REP>(mReps[i]);
98 if (rep && rep->hasData(data))
101 return boost::shared_ptr<REP>();
118 for (
unsigned i = 0; i < mReps.size(); ++i)
120 boost::shared_ptr<REP> rep = boost::dynamic_pointer_cast<REP>(mReps[i]);
124 return boost::shared_ptr<REP>();
139 static std::vector<boost::shared_ptr<REP> >
findReps(std::vector<RepPtr> reps)
141 std::vector<boost::shared_ptr<REP> > retval;
142 for (
unsigned i = 0; i < reps.size(); ++i)
144 boost::shared_ptr<REP> rep = boost::dynamic_pointer_cast<REP>(reps[i]);
146 retval.push_back(rep);
152 std::vector<RepPtr> mReps;
158 #endif // CXREPCONTAINER_H
std::map< QString, RepPtr > RepMap
boost::shared_ptr< REP > findFirst()
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class RepContainer > RepContainerPtr
boost::shared_ptr< REP > findFirst(ToolPtr tool)
std::map< QString, VolumetricBaseRepPtr > VolumetricRepMap
boost::shared_ptr< REP > findFirst(DataPtr data)
static std::vector< boost::shared_ptr< REP > > findReps(std::vector< RepPtr > reps)
boost::shared_ptr< class Rep > RepPtr
boost::shared_ptr< class Tool > ToolPtr
RepContainer(std::vector< RepPtr > reps)