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 =========================================================================*/
30 #ifndef vtkPlaybackRepresentation_h
31 #define vtkPlaybackRepresentation_h
32 
33 #include "vtkInteractionWidgetsModule.h" // For export macro
35 
36 class vtkRenderer;
38 class vtkPoints;
39 class vtkPolyData;
42 class vtkProperty2D;
43 class vtkActor2D;
44 
45 class VTKINTERACTIONWIDGETS_EXPORT vtkPlaybackRepresentation : public vtkBorderRepresentation
46 {
47 public:
52 
54 
58  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
66  vtkGetObjectMacro(Property,vtkProperty2D);
68 
72  virtual void Play() {}
73  virtual void Stop() {}
74  virtual void ForwardOneFrame() {}
75  virtual void BackwardOneFrame() {}
76  virtual void JumpToBeginning() {}
77  virtual void JumpToEnd() {}
78 
82  void BuildRepresentation() override;
83  void GetSize(double size[2]) override
84  {size[0]=12.0; size[1]=2.0;}
85 
87 
91  void GetActors2D(vtkPropCollection*) override;
93  int RenderOverlay(vtkViewport*) override;
98 
99 protected:
102 
103  // representation geometry
110 
111 private:
113  void operator=(const vtkPlaybackRepresentation&) = delete;
114 };
115 
116 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkPlaybackRepresentation::TransformFilter
vtkTransformPolyDataFilter * TransformFilter
Definition: vtkPlaybackRepresentation.h:106
vtkPlaybackRepresentation::JumpToEnd
virtual void JumpToEnd()
Definition: vtkPlaybackRepresentation.h:77
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:52
vtkPlaybackRepresentation::RenderOverlay
int RenderOverlay(vtkViewport *) override
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:59
vtkPlaybackRepresentation::~vtkPlaybackRepresentation
~vtkPlaybackRepresentation() override
vtkPlaybackRepresentation::PolyData
vtkPolyData * PolyData
Definition: vtkPlaybackRepresentation.h:105
vtkPlaybackRepresentation::Stop
virtual void Stop()
Definition: vtkPlaybackRepresentation.h:73
vtkPlaybackRepresentation
represent the vtkPlaybackWidget
Definition: vtkPlaybackRepresentation.h:46
vtkPlaybackRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPlaybackRepresentation::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkPlaybackRepresentation::JumpToBeginning
virtual void JumpToBeginning()
Definition: vtkPlaybackRepresentation.h:76
vtkPlaybackRepresentation::BackwardOneFrame
virtual void BackwardOneFrame()
Definition: vtkPlaybackRepresentation.h:75
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkPlaybackRepresentation::vtkPlaybackRepresentation
vtkPlaybackRepresentation()
vtkPlaybackRepresentation::Play
virtual void Play()
Virtual callbacks that subclasses should implement.
Definition: vtkPlaybackRepresentation.h:72
vtkPlaybackRepresentation::Points
vtkPoints * Points
Definition: vtkPlaybackRepresentation.h:104
vtkPlaybackRepresentation::GetSize
void GetSize(double size[2]) override
Definition: vtkPlaybackRepresentation.h:83
vtkPlaybackRepresentation::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
vtkPlaybackRepresentation::BuildRepresentation
void BuildRepresentation() override
Satisfy the superclasses' API.
vtkBorderRepresentation.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPlaybackRepresentation::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkPlaybackRepresentation::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkTransformPolyDataFilter
transform points and associated normals and vectors for polygonal dataset
Definition: vtkTransformPolyDataFilter.h:52
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:79
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:46
vtkPlaybackRepresentation::New
static vtkPlaybackRepresentation * New()
Instantiate this class.
vtkPlaybackRepresentation::GetActors2D
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkPlaybackRepresentation::Actor
vtkActor2D * Actor
Definition: vtkPlaybackRepresentation.h:109
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPlaybackRepresentation::Mapper
vtkPolyDataMapper2D * Mapper
Definition: vtkPlaybackRepresentation.h:107
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkPlaybackRepresentation::ForwardOneFrame
virtual void ForwardOneFrame()
Definition: vtkPlaybackRepresentation.h:74
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:42
vtkPlaybackRepresentation::Property
vtkProperty2D * Property
Definition: vtkPlaybackRepresentation.h:108
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69