VTK
vtkPlaybackRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlaybackRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef vtkPlaybackRepresentation_h
28 #define vtkPlaybackRepresentation_h
29 
30 #include "vtkInteractionWidgetsModule.h" // For export macro
32 
33 class vtkRenderer;
35 class vtkPoints;
36 class vtkPolyData;
39 class vtkProperty2D;
40 class vtkActor2D;
41 
42 class VTKINTERACTIONWIDGETS_EXPORT vtkPlaybackRepresentation : public vtkBorderRepresentation
43 {
44 public:
49 
51 
55  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
63  vtkGetObjectMacro(Property,vtkProperty2D);
65 
69  virtual void Play() {}
70  virtual void Stop() {}
71  virtual void ForwardOneFrame() {}
72  virtual void BackwardOneFrame() {}
73  virtual void JumpToBeginning() {}
74  virtual void JumpToEnd() {}
75 
79  void BuildRepresentation() override;
80  void GetSize(double size[2]) override
81  {size[0]=12.0; size[1]=2.0;}
82 
84 
88  void GetActors2D(vtkPropCollection*) override;
89  void ReleaseGraphicsResources(vtkWindow*) override;
90  int RenderOverlay(vtkViewport*) override;
91  int RenderOpaqueGeometry(vtkViewport*) override;
93  int HasTranslucentPolygonalGeometry() override;
95 
96 protected:
98  ~vtkPlaybackRepresentation() override;
99 
100  // representation geometry
107 
108 private:
110  void operator=(const vtkPlaybackRepresentation&) = delete;
111 };
112 
113 #endif
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
int 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:39
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:57
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.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
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:33
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:37
vtkTransformPolyDataFilter * TransformFilter
draw vtkPolyData onto the image plane
represent and manipulate 3D points
Definition: vtkPoints.h:33