#include "wxMaracasSurfaceRenderingManagerData.h" /******************************************************************************************** ** Start of data viewmanagerData *********************************************************************************************/ wxMaracasSurfaceRenderingManagerData::wxMaracasSurfaceRenderingManagerData(vtkProp3D* prop3Dvect, std::string dataname){ _prop3D = prop3Dvect; _dataname = dataname; } wxMaracasSurfaceRenderingManagerData::~wxMaracasSurfaceRenderingManagerData(){ _prop3D->Delete(); } /** ** Adds a prop3D to the world of the application **/ void wxMaracasSurfaceRenderingManagerData::setProp3D(vtkProp3D* prop3D){ _prop3D = prop3D; } /** ** Changes the opacity in a prop3D **/ void wxMaracasSurfaceRenderingManagerData::changeOpacity(int value){ std::cout<<"chage op"<_prop3D; actor->GetProperty()->SetOpacity((double)value/100.0); } void wxMaracasSurfaceRenderingManagerData::changeColor(double red, double green, double blue){ std::cout<<"chage col"<_prop3D; actor->GetProperty()->SetColor(red,green,blue); } /** ** Check if the variables are setted correctly **/ void wxMaracasSurfaceRenderingManagerData::checkInvariant(){ } /** ** get the prop3D **/ vtkProp3D* wxMaracasSurfaceRenderingManagerData::getProp3D(){ return this->_prop3D; } /** ** return the id from the daat **/ int wxMaracasSurfaceRenderingManagerData::getId(){ return _id; } /** ** set data id **/ void wxMaracasSurfaceRenderingManagerData::setId(int propid){ _id = propid; } /** ** Get the filanme **/ std::string wxMaracasSurfaceRenderingManagerData::getDataname(){ return _dataname; } /** ** Set the filanme **/ void wxMaracasSurfaceRenderingManagerData::setDataname(std::string dataname){ _dataname = dataname; }