SpherePackingScenarioGenerator
|
00001 /* 00002 * GeometryHelper.h 00003 * 00004 * Created on: Mar 6, 2012 00005 * Author: michael 00006 */ 00007 00008 #ifndef GEOMETRYHELPER_H_ 00009 #define GEOMETRYHELPER_H_ 00010 00011 #include "algorithms/geometries/Channel.h" 00012 #include <vector> 00013 00014 namespace algorithms { 00015 namespace geometries { 00016 00017 class GeometryHelper { 00018 public: 00019 GeometryHelper(); 00020 virtual 00021 ~GeometryHelper(); 00022 00023 std::vector<algorithms::geometries::Channel*> getPointerVectorOfChannels( 00024 std::vector<algorithms::geometries::Channel>& channels 00025 ) { 00026 std::vector<algorithms::geometries::Channel*> ptrToChannels; 00027 ptrToChannels.reserve(channels.size()); 00028 00029 for(unsigned int i=0; i < channels.size(); i++) { 00030 ptrToChannels.push_back(&channels[i]); 00031 } 00032 return ptrToChannels; 00033 } 00034 00035 00036 }; 00037 00038 } /* namespace geometries */ 00039 } /* namespace algorithms */ 00040 #endif /* GEOMETRYHELPER_H_ */