You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.0 KiB
C
65 lines
2.0 KiB
C
3 weeks ago
|
/*=========================================================================
|
||
|
|
||
|
Program: Visualization Toolkit
|
||
|
Module: vtkViewUpdater.h
|
||
|
|
||
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
||
|
All rights reserved.
|
||
|
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
|
||
|
|
||
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||
|
PURPOSE. See the above copyright notice for more information.
|
||
|
|
||
|
=========================================================================*/
|
||
|
/*-------------------------------------------------------------------------
|
||
|
Copyright 2008 Sandia Corporation.
|
||
|
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
|
||
|
the U.S. Government retains certain rights in this software.
|
||
|
-------------------------------------------------------------------------*/
|
||
|
/**
|
||
|
* @class vtkViewUpdater
|
||
|
* @brief Updates views automatically
|
||
|
*
|
||
|
*
|
||
|
* vtkViewUpdater registers with annotation change events for a set of
|
||
|
* annotation links, and updates all views when an annotation link fires an
|
||
|
* annotation changed event. This is often needed when multiple views share
|
||
|
* a selection with vtkAnnotationLink.
|
||
|
*/
|
||
|
|
||
|
#ifndef vtkViewUpdater_h
|
||
|
#define vtkViewUpdater_h
|
||
|
|
||
|
#include "vtkObject.h"
|
||
|
#include "vtkViewsInfovisModule.h" // For export macro
|
||
|
|
||
|
class vtkAnnotationLink;
|
||
|
class vtkView;
|
||
|
|
||
|
class VTKVIEWSINFOVIS_EXPORT vtkViewUpdater : public vtkObject
|
||
|
{
|
||
|
public:
|
||
|
static vtkViewUpdater* New();
|
||
|
vtkTypeMacro(vtkViewUpdater, vtkObject);
|
||
|
void PrintSelf(ostream& os, vtkIndent indent) override;
|
||
|
|
||
|
void AddView(vtkView* view);
|
||
|
void RemoveView(vtkView* view);
|
||
|
|
||
|
void AddAnnotationLink(vtkAnnotationLink* link);
|
||
|
|
||
|
protected:
|
||
|
vtkViewUpdater();
|
||
|
~vtkViewUpdater() override;
|
||
|
|
||
|
private:
|
||
|
vtkViewUpdater(const vtkViewUpdater&) = delete;
|
||
|
void operator=(const vtkViewUpdater&) = delete;
|
||
|
|
||
|
class vtkViewUpdaterInternals;
|
||
|
vtkViewUpdaterInternals* Internals;
|
||
|
};
|
||
|
|
||
|
#endif
|