ParaView
vtkChartSelectionRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkChartSelectionRepresentation.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 vtkChartSelectionRepresentation_h
30 #define vtkChartSelectionRepresentation_h
31 
32 #include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
34 #include "vtkSmartPointer.h" // needed for vtkWeakPointer.
35 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
36 
38 class vtkPVContextView;
39 
40 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkChartSelectionRepresentation
42 {
43 public:
44  static vtkChartSelectionRepresentation* New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
52  virtual void MarkModified() { this->Superclass::MarkModified(); }
53 
57  virtual void SetVisibility(bool visible);
58 
63  void SetChartRepresentation(vtkChartRepresentation* repr);
64 
65 protected:
68 
69  virtual int FillInputPortInformation(int port, vtkInformation* info);
70  virtual int RequestData(
71  vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector*);
72 
78  virtual bool AddToView(vtkView* view);
79 
85  virtual bool RemoveFromView(vtkView* view);
86 
87  vtkWeakPointer<vtkPVContextView> ContextView;
88  vtkWeakPointer<vtkChartRepresentation> ChartRepresentation;
89 
90  // Flag updated in AddToView to indicate if the configuration requires
91  // server-side rendering.
93 
94 private:
96  void operator=(const vtkChartSelectionRepresentation&) VTK_DELETE_FUNCTION;
97 };
98 
99 #endif
vtkWeakPointer< vtkPVContextView > ContextView
void PrintSelf(ostream &os, vtkIndent indent)
vtkPVDataRepresentation adds some ParaView specific API to data representations.
virtual void MarkModified()
This needs to be called on all instances of vtkChartSelectionRepresentation when the input is modifie...
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual bool AddToView(vtkView *view)
Making these methods public.
virtual bool RemoveFromView(vtkView *view)
Making these methods public.
vtkWeakPointer< vtkChartRepresentation > ChartRepresentation
vtkPVContextView adopts vtkContextView so that it can be used in ParaView configurations.
vtkChartRepresentation is the base representation for charting representations.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Overridden to invoke vtkCommand::UpdateDataEvent.
representation for showing selections in chart views.