Back to index

salome-gui  6.5.0
Public Member Functions | Public Attributes
SVTK::TErase Struct Reference
Collaboration diagram for SVTK::TErase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TErase ()
void operator() (SALOME_Actor *theActor)

Public Attributes

VTK::TSetFunction< vtkActor, int > mySetFunction

Detailed Description

Definition at line 468 of file SVTK_View.cxx.


Constructor & Destructor Documentation

SVTK::TErase::TErase ( ) [inline]

Definition at line 471 of file SVTK_View.cxx.

            :
      mySetFunction(&vtkActor::SetVisibility,false)
    {}

Member Function Documentation

void SVTK::TErase::operator() ( SALOME_Actor theActor) [inline]

Definition at line 475 of file SVTK_View.cxx.

    {
      theActor->SetVisibility(false);
      // Erase dependent actors
      vtkActorCollection* aCollection = vtkActorCollection::New(); 
      theActor->GetChildActors(aCollection);
      VTK::ForEach<vtkActor>(aCollection,mySetFunction);
      aCollection->Delete();
    }

Member Data Documentation

Definition at line 470 of file SVTK_View.cxx.


The documentation for this struct was generated from the following file: