37 std::vector<double> tmpDimVector = ncsInfo.
getCoords();
70 branchCoordDataMap::const_iterator coordDataIterator =
coordData.begin();
72 while(coordDataIterator !=
coordData.end()) {
74 branchCoordMap = coordDataIterator->second;
76 simpleCoordCountMap::iterator bSCMapIterator = branchCoordMap.begin();
78 while(bSCMapIterator != branchCoordMap.end()) {
80 if(combinedCoordMap.find(bSCMapIterator->first) == combinedCoordMap.end()) {
81 combinedCoordMap.insert(
simpleCoordPair(bSCMapIterator->first, bSCMapIterator->second));
83 combinedCoordMap.find(bSCMapIterator->first)->second += bSCMapIterator->second;
92 return combinedCoordMap;
102 std::stringstream tempStr;
105 simpleCoordCountMap::const_iterator coordIterator = coordMap.begin();
107 while(coordIterator != coordMap.end()) {
111 std::vector<int> vDim = coordIterator->first.coordData;
112 std::vector<int>::const_iterator vDimIterator = vDim.begin();
113 while(vDimIterator != vDim.end()) {
115 tempStr << (*vDimIterator) <<
";";
120 tempStr <<
"):" << coordIterator->second <<
"|";
127 return tempStr.str();
133 std::stringstream tempStr;
138 return tempStr.str();
144 branchCoordDataMap::const_iterator coordMapIterator =
coordData.begin();
146 while(coordMapIterator !=
coordData.end()) {
148 if(currentTreeChildNodes.find(coordMapIterator->first) == currentTreeChildNodes.end() && coordMapIterator->first !=
thisNode) {
163 std::vector<double>::const_iterator dimIterator = coordVector.begin();
165 while(dimIterator != coordVector.end()) {
167 simplified =
static_cast<int>((*dimIterator)*simplifyFactor + 0.5);
168 outVector.
coordData.push_back(simplified);
178 double dimension = 0.0;
180 std::vector<int>::const_iterator dimIterator = simplifiedVector.
coordData.begin();
181 std::vector<double> outVector;
183 while(dimIterator != simplifiedVector.
coordData.end()) {
184 dimension =
static_cast<double>(*dimIterator) /
static_cast<double>(simplifyFactor);
185 outVector.push_back(dimension);
197 simpleCoordCountMap::const_iterator coordIterator = coordMap.begin();
199 std::vector<std::vector<double> > globalViewData;
202 while(coordIterator != coordMap.end()) {
204 for(i=1; i<=coordIterator->second; i++) {
205 globalViewData.push_back(
decode(coordIterator->first));
211 return globalViewData;