VTK  9.3.1
vtkPlaybackRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkPlaybackRepresentation_h
19 #define vtkPlaybackRepresentation_h
20 
22 #include "vtkInteractionWidgetsModule.h" // For export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkRenderer;
27 class vtkPoints;
28 class vtkPolyData;
31 class vtkProperty2D;
32 class vtkActor2D;
33 
34 class VTKINTERACTIONWIDGETS_EXPORT vtkPlaybackRepresentation : public vtkBorderRepresentation
35 {
36 public:
41 
43 
47  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
55  vtkGetObjectMacro(Property, vtkProperty2D);
57 
61  virtual void Play() {}
62  virtual void Stop() {}
63  virtual void ForwardOneFrame() {}
64  virtual void BackwardOneFrame() {}
65  virtual void JumpToBeginning() {}
66  virtual void JumpToEnd() {}
67 
71  void BuildRepresentation() override;
72  void GetSize(double size[2]) override
73  {
74  size[0] = 12.0;
75  size[1] = 2.0;
76  }
77 
79 
83  void GetActors2D(vtkPropCollection*) override;
84  void ReleaseGraphicsResources(vtkWindow*) override;
85  int RenderOverlay(vtkViewport*) override;
86  int RenderOpaqueGeometry(vtkViewport*) override;
90 
91 protected:
93  ~vtkPlaybackRepresentation() override;
94 
95  // representation geometry
102 
103 private:
105  void operator=(const vtkPlaybackRepresentation&) = delete;
106 };
107 
108 VTK_ABI_NAMESPACE_END
109 #endif
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
represent the vtkPlaybackWidget
abstract specification for Viewports
Definition: vtkViewport.h:44
virtual void Play()
Virtual callbacks that subclasses should implement.
a actor that draws 2D data
Definition: vtkActor2D.h:34
int RenderOpaqueGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
abstract specification for renderers
Definition: vtkRenderer.h:61
transform points and associated normals and vectors for polygonal dataset
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
static vtkBorderRepresentation * New()
Instantiate this class.
an ordered list of Props
void PrintSelf(ostream &os, vtkIndent indent) override
Define standard methods.
int vtkTypeBool
Definition: vtkABI.h:64
window superclass for vtkRenderWindow
Definition: vtkWindow.h:27
platform-independent render window interaction including picking and frame rate control.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void BuildRepresentation() override
Subclasses should implement these methods.
a simple class to control print indentation
Definition: vtkIndent.h:28
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
represent a vtkBorderWidget
void GetSize(double size[2]) override
Subclasses should implement these methods.
represent surface properties of a 2D image
Definition: vtkProperty2D.h:29
vtkTransformPolyDataFilter * TransformFilter
draw vtkPolyData onto the image plane
represent and manipulate 3D points
Definition: vtkPoints.h:28