X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Fkernel%2FPlaneDirectionManager.cxx;h=0a95f5c7f3e627c36d1686be97b4c19cea15e2a4;hb=96facb2168314bc57826afc4342abd43e27f0ff7;hp=0900a392cfeec5501024922bb68b01cc3d8ed00e;hpb=e42ecf415793e6f85e5de98b41385fe53b6d00e0;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/kernel/PlaneDirectionManager.cxx b/lib/maracasVisuLib/src/kernel/PlaneDirectionManager.cxx index 0900a39..0a95f5c 100644 --- a/lib/maracasVisuLib/src/kernel/PlaneDirectionManager.cxx +++ b/lib/maracasVisuLib/src/kernel/PlaneDirectionManager.cxx @@ -9,7 +9,6 @@ PlaneDirectionManager::PlaneDirectionManager(int radio, double colour[3] , int o _radio = radio; _colour = colour; _opacity = opacity; - } @@ -48,8 +47,7 @@ void PlaneDirectionManager::RemoveAllActorsFromIndex(int n)throw (std::exception _render->RemoveViewProp(_vectdata[i]->GetActor()); delete _vectdata[i]; _vectdata.pop_back(); - } - + } } void PlaneDirectionManager::UpdateVectors()throw (std::exception){ PlaneDirectionManagerData* temp; @@ -89,24 +87,22 @@ void PlaneDirectionManager::addRemoveActor(int index, bool addremove){ _render->AddViewProp (_vectdata[index]->GetActor()); }else{ _render->RemoveViewProp (_vectdata[index]->GetActor()); - } - - } - - + } + } } -void PlaneDirectionManager::changeColor(int index,double r,double g,double b){ +void PlaneDirectionManager::changeColor(int index,double r,double g,double b) +{ GetPlaneDirectionManagerData(index)->ChangeColour(r,g,b); } -PlaneDirectionManagerData* PlaneDirectionManager::GetPlaneDirectionManagerData(int id) { - +PlaneDirectionManagerData* PlaneDirectionManager::GetPlaneDirectionManagerData(int id) +{ return _vectdata[id]; } void PlaneDirectionManager::WriteInformation(std::string filename, double* spc){ - FILE *ff; + FILE *ff; ff = fopen( filename.c_str() , "w+" ); if(spc ==NULL){ spc = new double[3]; @@ -142,16 +138,13 @@ void PlaneDirectionManager::WriteInformation(std::string filename, double* spc) fprintf(ff,"Dir%d\n",i); fprintf(ff,"\tP0[%f, %f, %f]\tP1[%f, %f, %f]\tP2[%f, %f, %f]\tDir[%f, %f, %f] \n", p0x,p0y,p0z, p1x,p1y,p1z, p2x,p2y,p2z, dirx,diry,dirz); - } - + } fclose(ff); } else { // else ff printf("PlaneDirectionManager::WriteInformation ...Error... creating file"); - } //ff - - + } //ff } void PlaneDirectionManager::SetArrowSize(int arrowsize){ _radio = arrowsize; -} \ No newline at end of file +}