1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
27 #include "vtkClipping3DDataViewer.h"
28 #include "vtkDataSetReader.h"
29 #include "vtkProperty.h"
31 vtkClipping3DDataViewer::vtkClipping3DDataViewer()
34 for (i=0; i<VTKMPRDATA_MAXTISSUE; i++){
35 _visibleTissue[i] = false;
36 _representationType[i] = true;
44 _volumerendererdata = VolumeRendererData::New();
45 _volumeMapper = vtkVolumeRayCastMapper::New();
46 _newvol = vtkVolume::New();
47 _volumeProperty = vtkVolumeProperty::New();
48 _compositeFunction = vtkVolumeRayCastCompositeFunction::New();
49 _compositeFunctionMIP = vtkVolumeRayCastMIPFunction::New();
52 //-------------------------------------------------------------------
53 vtkClipping3DDataViewer::~vtkClipping3DDataViewer()
56 for (i=0; i< VTKMPRDATA_MAXTISSUE ; i++){
58 _tissueStripper[i]->Delete();
59 _tissueMapper[i]->Delete();
60 _tissuePlanes[i]->Delete();
61 _tissueClipper[i]->Delete();
63 _outlineData->Delete();
64 _mapOutline->Delete();
69 _compositeFunction->Delete();
70 _volumeMapper->Delete();
71 _volumeProperty->Delete();
73 _volumePlanes->Delete();
75 for (i=0; i< VTKMPRDATA_MAXTISSUE ; i++){
76 _tissue[i]-> Delete();
77 _observerS[i]-> Delete();
79 _observerV-> Delete();
81 //-------------------------------------------------------------------
82 vtkActor* vtkClipping3DDataViewer::GetOutlineActor()
86 //-------------------------------------------------------------------
87 vtkClipPolyData* vtkClipping3DDataViewer::GetTissueClipper(int id)
89 return this->_tissueClipper[id];
91 //-------------------------------------------------------------------
92 vtkPolyDataMapper* vtkClipping3DDataViewer::GetTissueMapper(int id)
94 return _tissueMapper[id];
96 //-------------------------------------------------------------------
97 vtkPlanes* vtkClipping3DDataViewer::GetTissuePlanes(int id)
99 return _tissuePlanes[id];
101 //-------------------------------------------------------------------
102 vtkStripper* vtkClipping3DDataViewer::GetTissueStripper(int id)
104 return _tissueStripper[id];
106 //-------------------------------------------------------------------
107 void vtkClipping3DDataViewer::Refresh()
109 // _volumeMapper->SetClippingPlanes(_volumePlanes);
111 // this->_volumeMapper->Update();
112 // this->_newvol->Update();
114 // _newvol->VisibilityOn();
117 // _volumeMapper = vtkVolumeRayCastMapper::New();
118 // _volumeMapper->SetInput( this->GetVtkMPRBaseData()->GetImageData() );
119 // _volumeMapper->SetVolumeRayCastFunction(_compositeFunction);
120 // _volumeMapper->SetClippingPlanes( _volumePlanes );
121 // _newvol->SetMapper(_volumeMapper );
125 //-------------------------------------------------------------------
126 void vtkClipping3DDataViewer::RefreshSurface()
129 for (i=0; i< VTKMPRDATA_MAXTISSUE ; i++)
131 SetIsovalue(i, (int) (GetIsovalue(i)+1) );
132 // this->GetMCubes(i)->Update();
135 //-------------------------------------------------------------------
136 void vtkClipping3DDataViewer::SetVtkMPRBaseData(vtkMPRBaseData *vtkmprbasedata)
138 _vtkmprbasedata=vtkmprbasedata;
140 //-------------------------------------------------------------------
141 vtkMPRBaseData* vtkClipping3DDataViewer::GetVtkMPRBaseData()
143 return _vtkmprbasedata;
147 //-------------------------------------------------------------------
148 void vtkClipping3DDataViewer::SetVisibleTissue(int idTissue, bool visible)
150 _visibleTissue[idTissue]=visible;
152 //-------------------------------------------------------------------
153 bool vtkClipping3DDataViewer::GetVisibleTissue(int idTissue){
154 return _visibleTissue[idTissue];
156 //-------------------------------------------------------------------
157 void vtkClipping3DDataViewer::SetRepresentationType(int idTissue, bool representationType)
159 _representationType[idTissue]=representationType;
161 //-------------------------------------------------------------------
162 bool vtkClipping3DDataViewer::GetRepresentationType(int idTissue)
164 return _representationType[idTissue];
167 //-------------------------------------------------------------------
168 vtkActor* vtkClipping3DDataViewer::GetTissueActor(int id){
172 //-------------------------------------------------------------------
173 boxSurfaceObserver *vtkClipping3DDataViewer::GetObserverS(int idObserverS)
175 return _observerS[idObserverS];
177 //-------------------------------------------------------------------
178 boxSurfaceObserver *vtkClipping3DDataViewer::GetObserverV()
183 //-------------------------------------------------------------------
184 bool vtkClipping3DDataViewer::GetVisibleVolume()
186 return _visibleVolume;
188 //-------------------------------------------------------------------
189 void vtkClipping3DDataViewer::SetVisibleVolume(bool visiblevolume)
191 _visibleVolume = visiblevolume;
194 bool vtkClipping3DDataViewer::GetVisibleVolumeBox()
196 return _visibleVolumeBox;
198 //-------------------------------------------------------------------
199 void vtkClipping3DDataViewer::SetVisibleVolumeBox(bool visibleBox)
201 _visibleVolumeBox = visibleBox;
204 //-------------------------------------------------------------------
205 void vtkClipping3DDataViewer::Configure_Tissue()
210 for (i=0; i< VTKMPRDATA_MAXTISSUE ; i++){
211 // Visualisation - original volume
212 vtkImageData *imagedata=_vtkmprbasedata->GetImageData();
213 imagedata->GetScalarRange( range );
214 _mCubes[i] = vtkMarchingCubes::New( );
215 _mCubes[i]->SetInput( imagedata );
217 _mCubes[i]->SetValue( 0, range[1]*(4+i) / 8 );
218 // _mCubes[i]->SetValue( 0, 1500 );
220 _tissueStripper[i] = vtkStripper::New();
221 _tissueStripper[i]->SetInput( _mCubes[i]->GetOutput( ) );
225 _tissuePlanes[i] = vtkPlanes::New();
227 int x1,x2,y1,y2,z1,z2;
228 imagedata->GetExtent(x1,x2,y1,y2,z1,z2);
229 _tissuePlanes[i]->SetBounds (x1,x2,y1,y2,z1,z2);
231 _tissueClipper[i] = vtkClipPolyData::New();
232 _tissueClipper[i]->SetInput( _tissueStripper[i]->GetOutput() );
233 _tissueClipper[i]->SetClipFunction( _tissuePlanes[i] );
234 _tissueClipper[i]->InsideOutOn( );
236 _tissueMapper[i] = vtkPolyDataMapper::New( );
237 _tissueMapper[i]->SetInput( _tissueClipper[i]->GetOutput() );
238 _tissueMapper[i]->ScalarVisibilityOff( );
239 // _tissueMapper[i]->Update();
246 for (i=0; i< VTKMPRDATA_MAXTISSUE ; i++){
248 _tissue[i] = vtkActor::New();
249 _tissue[i]->SetMapper( GetTissueMapper(i) );
250 float cr=1,cg=0.5,cb=0.5;
251 _tissue[i]->GetProperty()->SetDiffuseColor(cr/255, cg/255 , cb/255 );
252 _tissue[i]->GetProperty()->SetSpecular(.3);
253 _tissue[i]->GetProperty()->SetSpecularPower(20);
254 _tissue[i]->GetProperty()->SetOpacity(0.5);
255 if (i==0) _tissue[i]->GetProperty()->SetColor(0.85, 0.85 , 0.85 );
256 if (i==1) _tissue[i]->GetProperty()->SetColor(0, 0 , 1 );
257 if (i==2) _tissue[i]->GetProperty()->SetColor(0.85, 0.20 , 0.20 );
258 if (i==3) _tissue[i]->GetProperty()->SetColor(0, 1 , 0 );
261 for (i=0; i< VTKMPRDATA_MAXTISSUE ; i++)
263 _observerS[i] = boxSurfaceObserver::New();
264 _observerS[i]->SetPlanes( GetTissuePlanes(i) );
265 _observerS[i]->SetActor( _tissue[i] );
270 //-----------------------------------------------------------------------------
272 void vtkClipping3DDataViewer::Configure_Volume()
276 /** if(_newvol != NULL)
279 _volumeMapper->Delete();
280 _volumeProperty->Delete();
283 _tfun = vtkPiecewiseFunction::New();
284 _ctfun = vtkColorTransferFunction::New();
287 this->_vtkmprbasedata->GetImageData()->GetScalarRange(range);
288 double max = range[1];
291 adding the poinst of the transference function
294 greyValuesTransferenceFVector.push_back(max * 0/2); // JPR ?? 0/2
295 greyValuesTransferenceFVector.push_back(max * 1/2); // JPR ?? division entiere?
296 greyValuesTransferenceFVector.push_back(max * 2/2);
298 intensityValuesTransferenceFVector.push_back(0.0);
299 intensityValuesTransferenceFVector.push_back(1.0);
300 intensityValuesTransferenceFVector.push_back(1.0);
302 _tfun->AddPoint(max * 0/2 , 0.0);
303 _tfun->AddPoint(max * 1/2 , 1.0);
304 _tfun->AddPoint(max * 2/2 , 1.0);
307 Adding the colors to the vectors
310 redColorsOfColorTransferenceFVector.push_back(0.0);
311 redColorsOfColorTransferenceFVector.push_back(1.0);
312 redColorsOfColorTransferenceFVector.push_back(0.0);
313 redColorsOfColorTransferenceFVector.push_back(0.0);
314 redColorsOfColorTransferenceFVector.push_back(0.0);
317 greenColorsOfColorTransferenceFVector.push_back(0.0);
318 greenColorsOfColorTransferenceFVector.push_back(0.0);
319 greenColorsOfColorTransferenceFVector.push_back(0.0);
320 greenColorsOfColorTransferenceFVector.push_back(1.0);
321 greenColorsOfColorTransferenceFVector.push_back(0.2);
324 blueColorsOfColorTransferenceFVector.push_back(0.0);
325 blueColorsOfColorTransferenceFVector.push_back(0.0);
326 blueColorsOfColorTransferenceFVector.push_back(1.0);
327 blueColorsOfColorTransferenceFVector.push_back(0.0);
328 blueColorsOfColorTransferenceFVector.push_back(0.0);
330 greyValueColorsOfColorTransferenceFVector.push_back(max*0/4);
331 greyValueColorsOfColorTransferenceFVector.push_back(max*1/4);
332 greyValueColorsOfColorTransferenceFVector.push_back(max*2/4);
333 greyValueColorsOfColorTransferenceFVector.push_back(max*3/4);
334 greyValueColorsOfColorTransferenceFVector.push_back(max*4/4);
336 _ctfun->AddRGBPoint( max*0/4 , 0.0, 0.0, 0.0);
337 _ctfun->AddRGBPoint( max*1/4 , 1.0, 0.0, 0.0);
338 _ctfun->AddRGBPoint( max*2/4 , 0.0, 0.0, 1.0);
339 _ctfun->AddRGBPoint( max*3/4 , 0.0, 1.0, 0.0);
340 _ctfun->AddRGBPoint( max*4/4 , 0.0, 0.2, 0.0);
342 _volumePlanes = vtkPlanes::New();
343 // int x1,x2,y1,y2,z1,z2;
344 // vtkImageData *imagedata=_vtkmprbasedata->GetImageData();
345 // imagedata->GetExtent(x1,x2,y1,y2,z1,z2);
346 // _volumePlanes->SetBounds(x1,x2,y1,y2,z1,z2);
350 // _volumeMapper = vtkVolumeRayCastMapper::New();
351 _volumeMapper->SetInput( this->GetVtkMPRBaseData()->GetImageData() );
353 _volumeMapper->SetVolumeRayCastFunction(_compositeFunction);
355 // _volumeMapper->SetVolumeRayCastFunction(_compositeFunctionMIP);
358 _volumeMapper->SetClippingPlanes( _volumePlanes );
359 _volumeMapper->AutoAdjustSampleDistancesOn();
361 _volumeProperty->SetInterpolationTypeToNearest();
362 //_volumeProperty = vtkVolumeProperty::New();
363 _volumeProperty->SetColor(_ctfun);
364 _volumeProperty->SetScalarOpacity( _tfun );
367 _volumeProperty->DisableGradientOpacityOn();
370 // _volumeProperty->SetInterpolationTypeToNearest();
371 // _volumeProperty->ShadeOff();
372 // _volumeProperty->SetAmbient(0.3);
373 // _volumeProperty->SetDiffuse(0.1);
374 // _volumeProperty->SetSpecular(0.8);
375 // _volumeProperty->DisableGradientOpacityOn();
377 // _newvol = vtkVolume::New();
378 _newvol->SetMapper(_volumeMapper );
379 _newvol->SetProperty(_volumeProperty );
381 _observerV = boxSurfaceObserver::New();
382 _observerV->SetPlanes( _volumePlanes );
383 _observerV->SetActor( _newvol );
384 _observerV->SetvtkVolumeRayCastMapper( _volumeMapper );
388 void vtkClipping3DDataViewer::Configure_VolumeBox()
390 _volumerendererdata->SetImageData(_vtkmprbasedata->GetImageData());
393 vector<double> *gv = this->GetGreyValuesTransferenceFVector();
394 vector<double> *op = this->GetIntensityValuesTransferenceFVector();
396 _volumerendererdata->SetLookUpTable((vtkLookupTable*)(_ctfun));
397 _volumerendererdata->OpacityChanged(*gv, *op);
399 //_wxvtkclipping3Dview->VisibleVolumeActor( false );
400 //_volumerendererdata->ShowVolume(event.IsChecked() );
401 //_volumerendererdata->BoundingBoxChanged(event.IsChecked() );
404 void vtkClipping3DDataViewer::SetRenderer(vtkRenderer* renderer)
406 _volumerendererdata->SetRenderer(renderer);
410 void vtkClipping3DDataViewer::SetInteractor(vtkRenderWindowInteractor* interactor)
413 _volumerendererdata->SetInteractor(interactor);
417 void vtkClipping3DDataViewer::BoxActorChanged(bool changed)
419 vector<double> *gv = this->GetGreyValuesTransferenceFVector();
420 vector<double> *op = this->GetIntensityValuesTransferenceFVector();
422 _volumerendererdata->ShowVolume(changed);
423 _volumerendererdata->OpacityChanged(*gv, *op);
424 _volumerendererdata->BoundingBoxChanged(changed);
428 void vtkClipping3DDataViewer::UpdateVolumeBox(vector<double> gf, vector<double> vf, vtkColorTransferFunction* ctfun)
430 _volumerendererdata->SetLookUpTable((vtkLookupTable*)(ctfun));
431 _volumerendererdata->OpacityChanged(gf, vf);
435 void vtkClipping3DDataViewer::updateVolume()
440 _volumeMapper->SetVolumeRayCastFunction(_compositeFunction);
441 _volumerendererdata->changeCompositeMIPFunction(0);
445 _volumeMapper->SetVolumeRayCastFunction(_compositeFunctionMIP);
446 _volumerendererdata->changeCompositeMIPFunction(1);
451 _volumeProperty->SetInterpolationTypeToLinear();
455 _volumeProperty->SetInterpolationTypeToNearest();
460 _volumeProperty->ShadeOn();
464 _volumeProperty->ShadeOff();
469 //-------------------------------------------------------------------
470 void vtkClipping3DDataViewer::Configure()
474 Configure_VolumeBox();
475 // An outline provides context around the data.
477 _outlineData = vtkOutlineFilter::New();
478 _outlineData->SetInput((vtkDataSet *) _vtkmprbasedata->GetImageData() );
479 _mapOutline = vtkPolyDataMapper::New();
480 _mapOutline->SetInput(_outlineData->GetOutput());
481 _outline = vtkActor::New();
482 _outline->SetMapper(_mapOutline);
483 _outline->GetProperty()->SetColor(0,0,0);
487 //-------------------------------------------------------------------
488 void vtkClipping3DDataViewer::SetIsovalue(int idTissue, int isoValue)
490 _mCubes[idTissue]->SetValue(0, isoValue);
492 //-------------------------------------------------------------------
493 double vtkClipping3DDataViewer::GetIsovalue(int idTissue)
495 return _mCubes[idTissue]->GetValue(0);
497 //-------------------------------------------------------------------
498 vtkVolume* vtkClipping3DDataViewer::GetVolumeActor()
502 //-------------------------------------------------------------------
503 vtkVolumeRayCastMapper* vtkClipping3DDataViewer::GetVolumeMapper(){
504 return _volumeMapper;
506 //-------------------------------------------------------------------
507 vtkPlanes* vtkClipping3DDataViewer::GetVolumePlanes()
509 return _volumePlanes;
512 //-------------------------------------------------------------------
513 vtkMarchingCubes *vtkClipping3DDataViewer::GetMCubes(int idTissue)
515 return _mCubes[idTissue];
517 //--------------------------------------------------------------------
518 //-------------------
520 //-------------------
522 std::vector<double>* vtkClipping3DDataViewer::GetGreyValuesTransferenceFVector()
524 return &greyValuesTransferenceFVector;
526 //--------------------------------------------------------------------
527 std::vector<double>* vtkClipping3DDataViewer::GetIntensityValuesTransferenceFVector()
529 return &intensityValuesTransferenceFVector;
531 //--------------------------------------------------------------------
532 std::vector<double>* vtkClipping3DDataViewer::GetRedColorsOfColorTransferenceFVector()
534 return &redColorsOfColorTransferenceFVector;
536 //--------------------------------------------------------------------
537 std::vector<double>* vtkClipping3DDataViewer::GetGreenColorsOfColorTransferenceFVector()
539 return &greenColorsOfColorTransferenceFVector;
541 //--------------------------------------------------------------------
542 std::vector<double>* vtkClipping3DDataViewer::GetBlueColorsOfColorTransferenceFVector()
544 return &blueColorsOfColorTransferenceFVector;
546 //--------------------------------------------------------------------
547 std::vector<double>* vtkClipping3DDataViewer::GetGreyValueColorsOfColorTransferenceFVector()
549 return &greyValueColorsOfColorTransferenceFVector;
551 //--------------------------------------------------------------------
552 //--------------------------------------
553 //Getters transference function
554 //and color of the transference function
555 //---------------------------------------
556 vtkPiecewiseFunction* vtkClipping3DDataViewer::GetTransferencefunction()
560 //--------------------------------------------------------------------
561 vtkColorTransferFunction* vtkClipping3DDataViewer::GetColorTransferenceFunction()
566 //-------------------------------------------------------------------
568 void vtkClipping3DDataViewer::ReadVolumeFunctions()
571 int i=0,xi,yi,r,g,b,gValue;
572 vtkImageData *imagedata = this->_vtkmprbasedata->GetImageData();
574 HistogramDialog* hDlg=new HistogramDialog(NULL,_T("Histogram Dialog"),imagedata);
578 int tfSize=this->greyValuesTransferenceFVector.size();
582 hDlg->erasePointsTransferenceFunction();
585 double g=greyValuesTransferenceFVector[i];
586 double in=intensityValuesTransferenceFVector[i];
587 hDlg->addPointToTransferenceFunction(g,in*100);
593 int ctfSize=this->redColorsOfColorTransferenceFVector.size();
599 double gr=greyValueColorsOfColorTransferenceFVector[i];
600 double r=redColorsOfColorTransferenceFVector[i];
601 double g=greenColorsOfColorTransferenceFVector[i];
602 double b=blueColorsOfColorTransferenceFVector[i];
603 hDlg->addColorPoint(gr,r*255,g*255,b*255);
607 //If it is smooth activate next line
608 //hDlg->updatePlotter();
609 //setting variables if the user wants to do refresh
610 hDlg->setCTF(_ctfun);
614 // when the user had changed the transference Function
616 if(hDlg->ShowModal()== wxID_OK )
618 // -- vtkPiecewiseFunction --
619 this->_tfun->RemoveAllPoints();
620 greyValuesTransferenceFVector.clear();
621 intensityValuesTransferenceFVector.clear();
623 int nTFPoints=hDlg->getSizeTransferenceFunction();
627 hDlg->getTransferenceFunctionPoint(i,xi,yi);
628 this->_tfun->AddPoint( xi , yi/100.0 );
629 greyValuesTransferenceFVector.push_back(xi);
630 intensityValuesTransferenceFVector.push_back(yi/100.0);
633 // -- vtkColorTransferFunction --
634 this->_ctfun->RemoveAllPoints ();
636 redColorsOfColorTransferenceFVector.clear();
637 greenColorsOfColorTransferenceFVector.clear();
638 blueColorsOfColorTransferenceFVector.clear();
639 greyValueColorsOfColorTransferenceFVector.clear();
641 int nCTFpoints=hDlg->getSizeBarColor();
645 hDlg->getDataBarColorPoint(i,xi,r,g,b);
646 this->_ctfun->AddRGBPoint(xi,r/255.0,g/255.0,b/255.0 );
647 redColorsOfColorTransferenceFVector.push_back(r/255.0);
648 greenColorsOfColorTransferenceFVector.push_back(g/255.0);
649 blueColorsOfColorTransferenceFVector.push_back(b/255.0);
650 greyValueColorsOfColorTransferenceFVector.push_back(xi);
654 this->_volumeMapper->Update();
655 this->_newvol->Update();
661 if(hDlg->getRefreshed())
664 //--Transference Function----
665 this->_tfun->RemoveAllPoints();
667 size=greyValuesTransferenceFVector.size();
670 double grey1=greyValuesTransferenceFVector[i];
671 double in2=intensityValuesTransferenceFVector[i];
672 this->_tfun->AddPoint( grey1 , in2 );
675 // -- vtkColorTransferFunction --
676 _ctfun->RemoveAllPoints ();
679 size=greyValueColorsOfColorTransferenceFVector.size();
682 double grey2=(greyValueColorsOfColorTransferenceFVector)[i];
683 double red =(redColorsOfColorTransferenceFVector)[i];
684 double green =(greenColorsOfColorTransferenceFVector)[i];
685 double blue = (blueColorsOfColorTransferenceFVector)[i];
686 _ctfun->AddRGBPoint(grey2,red,green,blue);
688 this->_volumeMapper->Update();
689 this->_newvol->Update();
697 void vtkClipping3DDataViewer::ReadVolumeFunctions(char *namefile)
704 FILE *ff = fopen ( namefile ,"r");
708 if (strcmp(tmp,"MAX")==0)
710 vtkImageData *vtkimagedata = this->_vtkmprbasedata->GetImageData();
711 vtkimagedata->GetScalarRange(range);
712 max = (int) (range[1]);
717 fscanf(ff,"%s",tmp); // --
719 // -- vtkPiecewiseFunction --
720 this->_tfun->RemoveAllPoints();
722 while ( strcmp(tmp,"--")!=0 )
727 this->_tfun->AddPoint( x*max , val );
731 this->_ctfun->RemoveAllPoints ();
732 // -- vtkColorTransferFunction --
743 this->_ctfun->AddRGBPoint( x*max , r,g,b );
747 this->_volumeMapper->Update();
748 this->_newvol->Update();
755 //-------------------------------------------------------------------
757 void vtkClipping3DDataViewer::ReadMeshVTK(char *namefile)
759 vtkDataSetReader *reader = vtkDataSetReader::New();
760 reader->SetFileName(namefile);
762 _tissueStripper[3]->SetInput( reader->GetPolyDataOutput() );
765 void vtkClipping3DDataViewer::setColorTransferFunction(vtkColorTransferFunction* colortable){
767 _volumeProperty->SetColor(colortable);
772 void vtkClipping3DDataViewer::SetRayCasting(bool active)
774 _isRayCasting = active;
778 void vtkClipping3DDataViewer::SetMIPActive(bool active)
783 void vtkClipping3DDataViewer::SetInterpolation(bool active)
785 _interpolation = active;
788 void vtkClipping3DDataViewer::SetShade(bool active)