_radio = radio;
_colour = colour;
_opacity = opacity;
-
}
_render->RemoveViewProp(_vectdata[i]->GetActor());
delete _vectdata[i];
_vectdata.pop_back();
- }
-
+ }
}
void PlaneDirectionManager::UpdateVectors()throw (std::exception){
PlaneDirectionManagerData* temp;
_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];
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
+}