Version: 6.3.1
Public Member Functions | Data Fields

VTK.ActorCollectionCopy Struct Reference

#include <VTKViewer_Algorithm.h>

Public Member Functions

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

Data Fields

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)
VTK.ActorCollectionCopy::~ActorCollectionCopy ( )

Member Function Documentation

vtkActorCollection * VTK.ActorCollectionCopy::GetActors ( ) const

Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS