Back to index

salome-gui  6.5.0
Public Member Functions | Public Attributes
VTK::VTKVIEWER_EXPORT Struct Reference

This object should be used to avoid problems with recurring calls of GetActors() method of the vtkRenderer class. More...

#include <VTKViewer_Algorithm.h>

List of all members.

Public Member Functions

 ActorCollectionCopy (vtkActorCollection *theActorCollection)
 ~ActorCollectionCopy ()
vtkActorCollection * GetActors () const

Public Attributes

vtkActorCollection * myActorCollection

Detailed Description

This object should be used to avoid problems with recurring calls of GetActors() method of the vtkRenderer class.

Instead of the following instructions:

vtkRenderer* aRenderer = ...; vtkActorCollection* anActorCollection = aRenderer->GetActors(); DoSomething( anActorCollection ); // where GetActors() could be called again

A code like the following should be used:

vtkRenderer* aRenderer = ...; vtkActorCollection* anActorCollection = aRenderer->GetActors(); ActorCollectionCopy aCopy( anActorCollection ); DoSomething( aCopy.GetActors() );

Definition at line 54 of file VTKViewer_Algorithm.h.


Constructor & Destructor Documentation


Member Function Documentation

VTK::VTKVIEWER_EXPORT::ActorCollectionCopy ( vtkActorCollection *  theActorCollection)
vtkActorCollection* VTK::VTKVIEWER_EXPORT::GetActors ( ) const

Member Data Documentation

Definition at line 56 of file VTKViewer_Algorithm.h.


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