]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/kernel/PlaneDirectionManager.cxx
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / kernel / PlaneDirectionManager.cxx
index 0900a392cfeec5501024922bb68b01cc3d8ed00e..0a95f5c7f3e627c36d1686be97b4c19cea15e2a4 100644 (file)
@@ -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
+}