wxMaracasSurfaceRenderingManagerData Class Reference

#include <wxMaracasSurfaceRenderingManagerData.h>

Inheritance diagram for wxMaracasSurfaceRenderingManagerData:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 wxMaracasSurfaceRenderingManagerData (vtkProp3D *_prop3Dvect, std::string dataname="", vtkRenderWindowInteractor *interactor=NULL)
 ~wxMaracasSurfaceRenderingManagerData ()
void setProp3D (vtkProp3D *prop3D)
void changeOpacity (int value)
void checkInvariant ()
vtkProp3D * getProp3D ()
int getId ()
void setId (int propid)
std::string getDataname ()
void setDataname (std::string dataname)
void contourExtractor (int isovalue)
void changeColor (double red, double green, double blue)
void addRemoveSurfaceBox (bool visible)
void initializeBoxWidget (vtkRenderWindowInteractor *interactor)

Protected Attributes

vtkProp3D * _prop3D
std::string _dataname
vtkBoxWidget * _boxWidgetS1

Private Attributes

int _id

Detailed Description

Definition at line 14 of file wxMaracasSurfaceRenderingManagerData.h.


Constructor & Destructor Documentation

wxMaracasSurfaceRenderingManagerData::wxMaracasSurfaceRenderingManagerData ( vtkProp3D *  _prop3Dvect,
std::string  dataname = "",
vtkRenderWindowInteractor *  interactor = NULL 
)

Definition at line 8 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _boxWidgetS1, _dataname, _prop3D, and initializeBoxWidget().

00008                                                                                                                                                            {
00009 
00010         _prop3D = prop3Dvect;   
00011         _dataname = dataname;   
00012         _boxWidgetS1=NULL;
00013         
00014         initializeBoxWidget(interactor);
00015         
00016 
00017         
00018 
00019         /*_boxWidgetS1->GetPlanes( this->GetVtkClipping3DDataViewer()->GetTissuePlanes(0) );
00020         _boxWidgetS1->GetPlanes( this->GetVtkClipping3DDataViewer()->GetTissuePlanes(1) );
00021         _boxWidgetS1->GetPlanes( this->GetVtkClipping3DDataViewer()->GetTissuePlanes(2) );
00022         _boxWidgetS1->GetPlanes( this->GetVtkClipping3DDataViewer()->GetTissuePlanes(3) );*/
00023 }

Here is the call graph for this function:

wxMaracasSurfaceRenderingManagerData::~wxMaracasSurfaceRenderingManagerData (  ) 

Definition at line 26 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _boxWidgetS1, and _prop3D.

00026                                                                            {
00027         
00028         _prop3D->Delete();      
00029         if (_boxWidgetS1!=NULL)                                  { _boxWidgetS1         -> Delete();                                    }
00030 }


Member Function Documentation

void wxMaracasSurfaceRenderingManagerData::addRemoveSurfaceBox ( bool  visible  ) 

adds or removes the surface box

Definition at line 45 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _boxWidgetS1.

Referenced by wxMaracasSurfaceRenderingManager::addRemoveSurfaceBox().

00046 {
00047         if(_boxWidgetS1){
00048                 if (visible==true){
00049                         _boxWidgetS1->On();
00050                 } else {
00051                         _boxWidgetS1->Off();
00052                 }
00053         }
00054 }

Here is the caller graph for this function:

void wxMaracasSurfaceRenderingManagerData::changeColor ( double  red,
double  green,
double  blue 
)

Changes the color of the actor

Definition at line 66 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _prop3D.

00066                                                                                            {
00067         std::cout<<"chage col"<<red<<green<<blue<<std::endl;
00068     vtkActor* actor = (vtkActor*)this->_prop3D; 
00069         actor->GetProperty()->SetColor(red,green,blue); 
00070 }

void wxMaracasSurfaceRenderingManagerData::changeOpacity ( int  value  ) 

Changes the opacity in a prop3D

Definition at line 58 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _prop3D.

00058                                                                  {
00059         std::cout<<"chage op"<<value<<std::endl;
00060         vtkActor* actor = (vtkActor*)this->_prop3D;     
00061         actor->GetProperty()->SetOpacity((double)value/100.0);
00062 
00063         
00064 
00065 }

void wxMaracasSurfaceRenderingManagerData::checkInvariant (  ) 

Check if the variables are setted correctly

Reimplemented in wxMaracasSurfaceRenderingManagerDataMhd.

Definition at line 74 of file wxMaracasSurfaceRenderingManagerData.cxx.

00074                                                          {
00075 
00076 }

void wxMaracasSurfaceRenderingManagerData::contourExtractor ( int  isovalue  ) 

creates the image

Reimplemented in wxMaracasSurfaceRenderingManagerDataMhd.

std::string wxMaracasSurfaceRenderingManagerData::getDataname (  ) 

Get the filanme

Definition at line 99 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _dataname.

00099                                                            {
00100         return _dataname;
00101 }

int wxMaracasSurfaceRenderingManagerData::getId (  ) 

return the id from the daat

Definition at line 86 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _id.

Referenced by wxMaracasSurfaceRenderingManager::addProp3D(), and wxMaracasSurfaceRenderingManager::addPropMHD().

00086                                                {
00087         return _id;
00088 }

Here is the caller graph for this function:

vtkProp3D * wxMaracasSurfaceRenderingManagerData::getProp3D (  ) 
void wxMaracasSurfaceRenderingManagerData::initializeBoxWidget ( vtkRenderWindowInteractor *  interactor  ) 

Definition at line 32 of file wxMaracasSurfaceRenderingManagerData.cxx.

Referenced by wxMaracasSurfaceRenderingManagerData().

00032                                                                                                     {
00033         if(interactor!= NULL){
00034         
00035         }
00036 }

Here is the caller graph for this function:

void wxMaracasSurfaceRenderingManagerData::setDataname ( std::string  dataname  ) 

Set the filanme

Definition at line 105 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _dataname.

00105                                                                         {
00106         _dataname = dataname;
00107 }

void wxMaracasSurfaceRenderingManagerData::setId ( int  propid  ) 

set data id

Definition at line 92 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _id.

Referenced by wxMaracasSurfaceRenderingManager::addProp3D(), and wxMaracasSurfaceRenderingManager::addPropMHD().

00092                                                           {
00093         _id = propid;
00094 }

Here is the caller graph for this function:

void wxMaracasSurfaceRenderingManagerData::setProp3D ( vtkProp3D *  prop3D  ) 

Adds a prop3D to the world of the application

Definition at line 41 of file wxMaracasSurfaceRenderingManagerData.cxx.

References _prop3D.

00041                                                                      {
00042         _prop3D = prop3D;
00043 }


Member Data Documentation

Definition at line 88 of file wxMaracasSurfaceRenderingManagerData.h.

Referenced by getId(), and setId().


The documentation for this class was generated from the following files:

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1