ParaView
vtkProgressBarSourceRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkProgressBarSourceRepresentation.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
24 #ifndef vtkProgressBarSourceRepresentation_h
25 #define vtkProgressBarSourceRepresentation_h
26 
27 #include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
29 #include "vtkSmartPointer.h" // for DummyPolyData
30 
32 class vtkPolyData;
33 class vtkPVCacheKeeper;
34 
35 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkProgressBarSourceRepresentation
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
47  void SetProgressBarWidgetRepresentation(vtk3DWidgetRepresentation* widget);
48  vtkGetObjectMacro(ProgressBarWidgetRepresentation, vtk3DWidgetRepresentation);
50 
51  virtual void MarkModified();
52 
56  virtual void SetVisibility(bool);
57 
61  void SetInteractivity(bool);
62 
70  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
71 
72  // BTX
73 protected:
76 
80  virtual int FillInputPortInformation(int port, vtkInformation* info);
81 
85  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
86 
92  virtual bool AddToView(vtkView* view);
93 
99  virtual bool RemoveFromView(vtkView* view);
100 
104  virtual bool IsCached(double cache_key);
105 
107  vtkSmartPointer<vtkPolyData> DummyPolyData;
109 
110 private:
112  void operator=(const vtkProgressBarSourceRepresentation&) VTK_DELETE_FUNCTION;
113  // ETX
114 };
115 
116 #endif
void PrintSelf(ostream &os, vtkIndent indent)
vtkPVDataRepresentation adds some ParaView specific API to data representations.
virtual bool IsCached(double cache_key)
Subclasses should override this method when they support caching to indicate if the particular key is...
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual bool AddToView(vtkView *view)
Making these methods public.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkProgressBarSourceRepresentation is a representation to show ProgressBar.
vtk3DWidgetRepresentation is a vtkDataRepresentation subclass for 3D widgets and their representation...
virtual void MarkModified()
This is one of the most important functions.
virtual bool RemoveFromView(vtkView *view)
Making these methods public.
manages data cache for flip book animations.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Overridden to invoke vtkCommand::UpdateDataEvent.