vtkChartSelectionRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkChartSelectionRepresentation_h
18 #define vtkChartSelectionRepresentation_h
19 
21 #include "vtkRemotingViewsModule.h" //needed for exports
22 #include "vtkSmartPointer.h" // needed for vtkWeakPointer.
23 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
24 
26 class vtkPVContextView;
27 class vtkSelection;
28 
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
40  void MarkModified() override { this->Superclass::MarkModified(); }
41 
45  void SetVisibility(bool visible) override;
46 
51  void SetChartRepresentation(vtkChartRepresentation* repr);
52 
54  vtkInformationRequestKey* request, vtkInformation* ininfo, vtkInformation* outinfo) override;
55 
56 protected:
59 
61  int RequestData(
62  vtkInformation*, vtkInformationVector** inputVector, vtkInformationVector*) override;
63 
69  bool AddToView(vtkView* view) override;
70 
76  bool RemoveFromView(vtkView* view) override;
77 
80 
81  // Flag updated in AddToView to indicate if the configuration requires
82  // server-side rendering.
84 
86 
87 private:
89  void operator=(const vtkChartSelectionRepresentation&) = delete;
90 };
91 
92 #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.