VTK  9.3.20240416
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;
85  int RenderOverlay(vtkViewport*) override;
90 
91 protected:
94 
95  // representation geometry
102 
103 private:
105  void operator=(const vtkPlaybackRepresentation&) = delete;
106 };
107 
108 VTK_ABI_NAMESPACE_END
109 #endif
a actor that draws 2D data
Definition: vtkActor2D.h:145
represent a vtkBorderWidget
a simple class to control print indentation
Definition: vtkIndent.h:108
represent the vtkPlaybackWidget
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
static vtkPlaybackRepresentation * New()
Instantiate this class.
void GetSize(double size[2]) override
Subclasses should implement these methods.
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
int RenderOpaqueGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void BuildRepresentation() override
Satisfy the superclasses' API.
int RenderTranslucentPolygonalGeometry(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.
virtual void Play()
Virtual callbacks that subclasses should implement.
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods.
vtkTransformPolyDataFilter * TransformFilter
~vtkPlaybackRepresentation() override
represent and manipulate 3D points
Definition: vtkPoints.h:139
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:181
an ordered list of Props
represent surface properties of a 2D image
platform-independent render window interaction including picking and frame rate control.
abstract specification for renderers
Definition: vtkRenderer.h:172
transform points and associated normals and vectors for polygonal dataset
abstract specification for Viewports
Definition: vtkViewport.h:65
window superclass for vtkRenderWindow
Definition: vtkWindow.h:48
@ size
Definition: vtkX3D.h:253
int vtkTypeBool
Definition: vtkABI.h:64