VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
29 #ifndef __vtkPlaybackRepresentation_h
30 #define __vtkPlaybackRepresentation_h
31 
32 #include "vtkInteractionWidgetsModule.h" // For export macro
34 
35 class vtkRenderer;
36 class vtkRenderWindowInteractor;
37 class vtkPoints;
38 class vtkPolyData;
40 class vtkPolyDataMapper2D;
41 class vtkProperty2D;
42 class vtkActor2D;
43 
44 class VTKINTERACTIONWIDGETS_EXPORT vtkPlaybackRepresentation : public vtkBorderRepresentation
45 {
46 public:
49 
51 
53  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
59  vtkGetObjectMacro(Property,vtkProperty2D);
61 
63 
64  virtual void Play() {}
65  virtual void Stop() {}
66  virtual void ForwardOneFrame() {}
67  virtual void BackwardOneFrame() {}
68  virtual void JumpToBeginning() {}
69  virtual void JumpToEnd() {}
71 
73 
74  virtual void BuildRepresentation();
75  virtual void GetSize(double size[2])
76  {size[0]=12.0; size[1]=2.0;}
78 
80 
82  virtual void GetActors2D(vtkPropCollection*);
83  virtual void ReleaseGraphicsResources(vtkWindow*);
84  virtual int RenderOverlay(vtkViewport*);
85  virtual int RenderOpaqueGeometry(vtkViewport*);
86  virtual int RenderTranslucentPolygonalGeometry(vtkViewport*);
87  virtual int HasTranslucentPolygonalGeometry();
89 
90 protected:
93 
94  // representation geometry
95  vtkPoints *Points;
98  vtkPolyDataMapper2D *Mapper;
99  vtkProperty2D *Property;
100  vtkActor2D *Actor;
101 
102 private:
103  vtkPlaybackRepresentation(const vtkPlaybackRepresentation&); //Not implemented
104  void operator=(const vtkPlaybackRepresentation&); //Not implemented
105 };
106 
107 #endif
void PrintSelf(ostream &os, vtkIndent indent)
represent the vtkPlaybackWidget
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void GetActors2D(vtkPropCollection *)
transform points and associated normals and vectors for polygonal dataset
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:82
static vtkBorderRepresentation * New()
virtual int RenderOpaqueGeometry(vtkViewport *)
virtual void BuildRepresentation()
virtual int RenderOverlay(vtkViewport *)
represent a vtkBorderWidget
virtual void GetSize(double size[2])
vtkTransformPolyDataFilter * TransformFilter
virtual int HasTranslucentPolygonalGeometry()
virtual void ReleaseGraphicsResources(vtkWindow *)