Public Member Functions | List of all members
vtkSMDomain::DeferDomainModifiedEvents Class Reference

helper to defer firing of vtkCommand::DomainModifiedEvent. More...

#include <vtkSMDomain.h>

Public Member Functions

 DeferDomainModifiedEvents (vtkSMDomain *self)
 ~DeferDomainModifiedEvents ()

Detailed Description

helper to defer firing of vtkCommand::DomainModifiedEvent.

When sub-classing vtkSMDomain, we need to ensure that the domain fires vtkCommand::DomainModifiedEvent if and only if the domain has been modified. Oftentimes we may have to defer domain modified events till all modifications have been done. This helper class helps us to that.

For example, in the following code, the DomainModifiedEvent will only be fired once if something_changed or something_else_changed are true when defer goes out of scope.

void ...::Update(...)
if (something_changed)
if (something_else_changed)

Definition at line 262 of file vtkSMDomain.h.

Constructor & Destructor Documentation

◆ DeferDomainModifiedEvents()

vtkSMDomain::DeferDomainModifiedEvents::DeferDomainModifiedEvents ( vtkSMDomain self)

◆ ~DeferDomainModifiedEvents()

vtkSMDomain::DeferDomainModifiedEvents::~DeferDomainModifiedEvents ( )

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