vtkChartTextRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkChartTextRepresentation.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 =========================================================================*/
29 #ifndef vtkChartTextRepresentation_h
30 #define vtkChartTextRepresentation_h
31 
32 #include "vtkNew.h" // for vtkNew
34 
35 class vtkBlockItem;
36 class vtkPolyData;
37 class vtkTextProperty;
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47  enum
48  {
49  AnyLocation = 0,
55  UpperCenter
56  };
57  void SetLabelLocation(int location);
59 
61 
64  vtkGetVector2Macro(Position, double);
65  vtkSetVector2Macro(Position, double);
67 
69 
72  void SetInteractivity(bool);
74 
76 
79  void SetTextProperty(vtkTextProperty*);
81 
83  // Superclass overrides
84  void SetVisibility(bool val) override;
86  vtkInformation* outInfo) override;
88 
89 protected:
92 
96  int FillInputPortInformation(int port, vtkInformation* info) override;
97 
102 
108  bool AddToView(vtkView* view) override;
109 
115  bool RemoveFromView(vtkView* view) override;
116 
117 private:
119  void operator=(const vtkChartTextRepresentation&) = delete;
120 
121  void OnInteractionEvent();
122 
123  vtkNew<vtkBlockItem> BlockItem;
124  vtkNew<vtkTable> PreparedData;
125  double Position[2];
126  int LabelLocation;
127 };
128 
129 #endif
#define VTKREMOTINGVIEWS_EXPORT
vtkPVDataRepresentation adds some ParaView specific API to data representations.
bool AddToView(vtkView *view) override
Making these methods public.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
virtual int FillInputPortInformation(int port, vtkInformation *info)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
bool RemoveFromView(vtkView *view) override
Making these methods public.
static vtkDataRepresentation * New()
representation to add text to vtkPVContextView
void PrintSelf(ostream &os, vtkIndent indent) override