Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VTK::ActorCollectionCopy Struct Reference

#include <VTKViewer_Algorithm.h>

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() );

Constructor & Destructor Documentation

VTK::ActorCollectionCopy::ActorCollectionCopy ( vtkActorCollection *  theActorCollection)

References myActorCollection.

VTK::ActorCollectionCopy::~ActorCollectionCopy ( )

References myActorCollection.

Member Function Documentation

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

References myActorCollection.

Member Data Documentation

vtkActorCollection* VTK::ActorCollectionCopy::myActorCollection

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