75int main(
int argc,
char** argv )
79 QApplication application(argc,argv);
84 std::string inputFilename = examplesPath +
"samples/lobster.vol";
95 Image3D imageCrop(subDomain);
96 Image3D imageCrop2(subDomain2);
102 if(pt[0]>=ptLow[0] && pt[1] >= ptLow[1] && pt[2] >= ptLow[2] &&
103 pt[0]<=ptUpp[0] && pt[1] <= ptUpp[1] && pt[2] <= ptUpp[2]){
104 imageCrop.setValue(*it, imageVol(*it));
107 if(pt[0]>=ptLow2[0] && pt[1] >= ptLow2[1] && pt[2] >= ptLow2[2] &&
108 pt[0]<=ptUpp2[0] && pt[1] <= ptUpp2[1] && pt[2] <= ptUpp2[2]){
109 imageCrop2.setValue(*it, imageVol(*it));
113 viewer <<
SetMode3D(imageCrop.className(),
"BoundingBox");
115 viewer << AddTextureImage3DWithFunctor<Image3D, hueFct, Z3i::Space, Z3i::KSpace> (imageCrop2, hueFct(),
MyViewer::RGBMode);
119 return application.exec();
Iterator for HyperRectDomain.