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 
33 #include "vtkRemotingViewsModule.h" //needed for exports
34 #include "vtkSmartPointer.h" // needed for vtkWeakPointer.
35 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
36 
38 class vtkPVContextView;
39 class vtkSelection;
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
52  void MarkModified() override { this->Superclass::MarkModified(); }
53 
57  void SetVisibility(bool visible) override;
58 
63  void SetChartRepresentation(vtkChartRepresentation* repr);
64 
66  vtkInformationRequestKey* request, vtkInformation* ininfo, vtkInformation* outinfo) override;
67 
68 protected:
71 
73  int RequestData(
74  vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector*) override;
75 
81  bool AddToView(vtkView* view) override;
82 
88  bool RemoveFromView(vtkView* view) override;
89 
92 
93  // Flag updated in AddToView to indicate if the configuration requires
94  // server-side rendering.
96 
98 
99 private:
101  void operator=(const vtkChartSelectionRepresentation&) = delete;
102 };
103 
104 #endif
vtkWeakPointer< vtkPVContextView > ContextView
#define VTKREMOTINGVIEWS_EXPORT
vtkPVDataRepresentation adds some ParaView specific API to data representations.
bool AddToView(vtkView *view) override
Making these methods public.
info
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.
void MarkModified() override
This needs to be called on all instances of vtkChartSelectionRepresentation when the input is modifie...
bool RemoveFromView(vtkView *view) override
Making these methods public.
vtkWeakPointer< vtkChartRepresentation > ChartRepresentation
static vtkDataRepresentation * New()
vtkPVContextView adopts vtkContextView so that it can be used in ParaView configurations.
vtkChartRepresentation is the base representation for charting representations.
void PrintSelf(ostream &os, vtkIndent indent) override
port
representation for showing selections in chart views.