ParaView
vtkTextSourceRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkTextSourceRepresentation.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 vtkTextSourceRepresentation_h
25 #define vtkTextSourceRepresentation_h
26 
27 #include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
29 
31 class vtkPolyData;
32 class vtkPVCacheKeeper;
33 
34 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkTextSourceRepresentation
36 {
37 public:
38  static vtkTextSourceRepresentation* New();
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
46  void SetTextWidgetRepresentation(vtk3DWidgetRepresentation* widget);
47  vtkGetObjectMacro(TextWidgetRepresentation, vtk3DWidgetRepresentation);
49 
50  virtual void MarkModified();
51 
55  virtual void SetVisibility(bool);
56 
60  void SetInteractivity(bool);
61 
69  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
70 
71 protected:
74 
78  virtual int FillInputPortInformation(int port, vtkInformation* info);
79 
83  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
84 
90  virtual bool AddToView(vtkView* view);
91 
97  virtual bool RemoveFromView(vtkView* view);
98 
102  virtual bool IsCached(double cache_key);
103 
105  vtkPolyData* DummyPolyData;
107 
108 private:
109  vtkTextSourceRepresentation(const vtkTextSourceRepresentation&) VTK_DELETE_FUNCTION;
110  void operator=(const vtkTextSourceRepresentation&) VTK_DELETE_FUNCTION;
111 };
112 
113 #endif
void PrintSelf(ostream &os, vtkIndent indent)
vtk3DWidgetRepresentation * TextWidgetRepresentation
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.
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.
vtkTextSourceRepresentation is a representation to show text.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Overridden to invoke vtkCommand::UpdateDataEvent.