helper to defer firing of vtkCommand::DomainModifiedEvent. More...
#include <vtkSMDomain.h>
Public Member Functions | |
DeferDomainModifiedEvents (vtkSMDomain *self) | |
~DeferDomainModifiedEvents () | |
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.
Definition at line 262 of file vtkSMDomain.h.
vtkSMDomain::DeferDomainModifiedEvents::DeferDomainModifiedEvents | ( | vtkSMDomain * | self | ) |
vtkSMDomain::DeferDomainModifiedEvents::~DeferDomainModifiedEvents | ( | ) |