vtkSMBoxRepresentationProxy.h 2.04 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/*=========================================================================

  Program:   ParaView
  Module:    vtkSMBoxRepresentationProxy.h

  Copyright (c) Kitware, Inc.
  All rights reserved.
  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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.

=========================================================================*/
15 16 17 18 19
/**
 * @class   vtkSMBoxRepresentationProxy
 * @brief   proxy for vtkBoxRepresentation
 *
 * vtkSMBoxRepresentationProxy is a proxy for vtkBoxRepresentation. A
luz paz's avatar
luz paz committed
20
 * specialization is needed to set the transform on the vtkBoxRepresentation.
21 22 23 24
 * Since `vtkBoxRepresentation::SetTranform` is really akin to `ApplyTransform`,
 * the transform must be set each time the transform changes or the widget
 * is placed using PlaceWidget or something like that.
 */
25

26 27
#ifndef vtkSMBoxRepresentationProxy_h
#define vtkSMBoxRepresentationProxy_h
28

29
#include "vtkPVServerManagerRenderingModule.h" //needed for exports
30 31
#include "vtkSMWidgetRepresentationProxy.h"

32 33
class VTKPVSERVERMANAGERRENDERING_EXPORT vtkSMBoxRepresentationProxy
  : public vtkSMWidgetRepresentationProxy
34 35 36
{
public:
  static vtkSMBoxRepresentationProxy* New();
37
  vtkTypeMacro(vtkSMBoxRepresentationProxy, vtkSMWidgetRepresentationProxy);
38
  void PrintSelf(ostream& os, vtkIndent indent) override;
39

40 41 42
  void UpdateVTKObjects() override;
  void UpdatePropertyInformation() override;
  void UpdatePropertyInformation(vtkSMProperty* prop) override
43 44 45
  {
    this->Superclass::UpdatePropertyInformation(prop);
  }
46 47 48

protected:
  vtkSMBoxRepresentationProxy();
49
  ~vtkSMBoxRepresentationProxy() override;
50 51

  // This method is overridden to set the transform on the vtkWidgetRepresentation.
52
  void CreateVTKObjects() override;
53 54

private:
55 56
  vtkSMBoxRepresentationProxy(const vtkSMBoxRepresentationProxy&) = delete;
  void operator=(const vtkSMBoxRepresentationProxy&) = delete;
57 58 59
};

#endif