Program: wxMaracas
Module: $RCSfile: wxMaracasIRMViewManager.cxx,v $
Language: C++
- Date: $Date: 2009/04/09 13:58:38 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2009/04/14 12:47:30 $
+ Version: $Revision: 1.3 $
Copyright: (c) 2002, 2003
License:
/**
** Adds a prop3D to the manager and returns the identifier
**/
-int wxMaracasIRMViewManager::addProp3D(vtkProp3D* prop3D, std::string dataname) throw(...){
+int wxMaracasIRMViewManager::addProp3D(vtkProp3D* prop3D, std::string dataname) throw(char*){
checkInvariant();
if(prop3D != NULL){
wxMaracasIRMViewManagerData* data = new wxMaracasIRMViewManagerData(prop3D, dataname);
/**
** adds or removes an actor depending of the bool value
**/
-void wxMaracasIRMViewManager::addRemoveActor(int propid, bool addremove) throw(...){
+void wxMaracasIRMViewManager::addRemoveActor(int propid, bool addremove) throw(char*){
checkInvariant();
wxMaracasIRMViewManagerData* data = this->getViewData(propid);
/**
** Changes the opacity in a prop3D
**/
-void wxMaracasIRMViewManager::changeOpacity(int propid, int value) throw(...){
+void wxMaracasIRMViewManager::changeOpacity(int propid, int value) throw(char*){
checkInvariant();
/**
** changes the isovalue in a prop3D
**/
-void wxMaracasIRMViewManager::changeIsoValue(int propid, int value )throw (...){
+void wxMaracasIRMViewManager::changeIsoValue(int propid, int value )throw(char*){
checkInvariant();
wxMaracasIRMViewManagerData* data = this->getViewData(propid);
return NULL;
}
-void wxMaracasIRMViewManager::checkInvariant() throw(...){
+void wxMaracasIRMViewManager::checkInvariant() throw(char*){
if(this->_renderer==NULL){
throw "Renderer not set";
}
}
-wxMaracasIRMViewManagerData* wxMaracasIRMViewManager::getViewData(int id) throw(...){
+wxMaracasIRMViewManagerData* wxMaracasIRMViewManager::getViewData(int id) throw(char*){
int i;
for(i = 0; i < prop3Dvect.size();i++){
if(prop3Dvect[i]->getId() == id){
return NULL;
}
-int wxMaracasIRMViewManager::getMaxIsoValue(int propid){
+int wxMaracasIRMViewManager::getMaxIsoValue(int propid) throw(char*){
return this->getViewData(propid)->getMaxGreyLevel();
}
-void wxMaracasIRMViewManager::changeColor(int propid, double red, double green, double blue) throw (...){
+void wxMaracasIRMViewManager::changeColor(int propid, double red, double green, double blue) throw(char*){
checkInvariant();
this->getViewData(propid)->changeColor(red, green, blue);