forked from daviddoria/vtkFrameRateWidget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkFrameRateRepresentation.h
83 lines (66 loc) · 2.88 KB
/
vtkFrameRateRepresentation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile: vtkFrameRateRepresentation.h,v $
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkFrameRateRepresentation - a class defining the representation for the vtkFrameRateWidget
// .SECTION Description
// This class is a concrete representation for the vtkFrameRateWidget. It
// represents a TextActor.
//
#ifndef __vtkFrameRateRepresentation_h
#define __vtkFrameRateRepresentation_h
#include "vtkWidgetRepresentation.h"
#include "vtkSmartPointer.h"
class vtkActor;
class vtkPolyDataMapper;
class vtkProperty;
class vtkTextActor;
class vtkTextProperty;
class VTK_WIDGETS_EXPORT vtkFrameRateRepresentation : public vtkWidgetRepresentation
{
public:
// Description:
// Instantiate the class.
static vtkFrameRateRepresentation *New();
// Description:
// Standard methods for the class.
vtkTypeRevisionMacro(vtkFrameRateRepresentation,vtkWidgetRepresentation);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// These are methods that satisfy vtkWidgetRepresentation's API.
//virtual void PlaceWidget(double bounds[6]);
virtual void BuildRepresentation();
//virtual int ComputeInteractionState(int X, int Y, int modify=0);
//virtual void StartWidgetInteraction(double e[2]);
//virtual void WidgetInteraction(double e[2]);
//virtual double *GetBounds();
// Description:
// Methods supporting, and required by, the rendering process.
virtual void ReleaseGraphicsResources(vtkWindow*);
virtual int RenderOpaqueGeometry(vtkViewport*);
virtual int RenderTranslucentPolygonalGeometry(vtkViewport*);
virtual int HasTranslucentPolygonalGeometry();
// Description:
// The interaction state may be set from a widget (e.g., vtkBoxWidget2) or
// other object. This controls how the interaction with the widget
// proceeds. Normally this method is used as part of a handshaking
// process with the widget: First ComputeInteractionState() is invoked that
// returns a state based on geometric considerations (i.e., cursor near a
// widget feature), then based on events, the widget may modify this
// further.
void SetInteractionState(int state);
protected:
vtkFrameRateRepresentation();
~vtkFrameRateRepresentation();
private:
vtkFrameRateRepresentation(const vtkFrameRateRepresentation&); //Not implemented
void operator=(const vtkFrameRateRepresentation&); //Not implemented
vtkSmartPointer<vtkTextActor> TextActor;
};
#endif