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 
29 class VTKREMOTINGVIEWS_EXPORT vtkChartSelectionRepresentation : public vtkPVDataRepresentation
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 
60  int FillInputPortInformation(int port, vtkInformation* info) override;
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
vtkDataRepresentation::New
static vtkDataRepresentation * New()
vtkPVDataRepresentation.h
vtkInformationVector
vtkPVDataRepresentation::AddToView
bool AddToView(vtkView *view) override
Making these methods public.
vtkSmartPointer< vtkSelection >
vtkPVContextView
Definition: vtkPVContextView.h:29
vtkPVDataRepresentation::SetVisibility
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
Definition: vtkPVDataRepresentation.h:89
vtkSelection
vtkChartSelectionRepresentation::Cache
vtkSmartPointer< vtkSelection > Cache
Definition: vtkChartSelectionRepresentation.h:85
vtkChartSelectionRepresentation::ChartRepresentation
vtkWeakPointer< vtkChartRepresentation > ChartRepresentation
Definition: vtkChartSelectionRepresentation.h:79
vtkPVDataRepresentation::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
vtkChartSelectionRepresentation
representation for showing selections in chart views.
Definition: vtkChartSelectionRepresentation.h:29
vtkPVDataRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
Making these methods public.
vtkPassInputTypeAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkView
vtkIndent
vtkPVDataRepresentation::ProcessViewRequest
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkSmartPointer.h
vtkInformationRequestKey
vtkWeakPointer.h
vtkChartSelectionRepresentation::MarkModified
void MarkModified() override
This needs to be called on all instances of vtkChartSelectionRepresentation when the input is modifie...
Definition: vtkChartSelectionRepresentation.h:40
vtkInformation
vtkPVDataRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPVDataRepresentation
Definition: vtkPVDataRepresentation.h:23
vtkChartRepresentation
Definition: vtkChartRepresentation.h:33
vtkChartSelectionRepresentation::ContextView
vtkWeakPointer< vtkPVContextView > ContextView
Definition: vtkChartSelectionRepresentation.h:78
vtkChartSelectionRepresentation::EnableServerSideRendering
bool EnableServerSideRendering
Definition: vtkChartSelectionRepresentation.h:83
vtkWeakPointer< vtkPVContextView >