vtkSelectionRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkSelectionRepresentation_h
15 #define vtkSelectionRepresentation_h
16 
18 #include "vtkRemotingViewsModule.h" //needed for exports
19 
22 
23 class VTKREMOTINGVIEWS_EXPORT vtkSelectionRepresentation : public vtkPVDataRepresentation
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31  vtkInformation* outInfo) override;
32 
37  void SetLabelRepresentation(vtkDataLabelRepresentation*);
38 
40 
45  void SetInputConnection(int port, vtkAlgorithmOutput* input) override;
46  void SetInputConnection(vtkAlgorithmOutput* input) override;
47  void AddInputConnection(int port, vtkAlgorithmOutput* input) override;
48  void AddInputConnection(vtkAlgorithmOutput* input) override;
49  void RemoveInputConnection(int port, vtkAlgorithmOutput* input) override;
50  void RemoveInputConnection(int port, int idx) override;
52 
59  void MarkModified() override;
60 
62 
65  void SetUpdateTime(double time) override;
66  void SetForceUseCache(bool val) override;
67  void SetForcedCacheKey(double val) override;
69 
75  void SetVisibility(bool val) override;
76 
78 
81  void SetColor(double r, double g, double b);
82  void SetLineWidth(double val);
83  void SetOpacity(double val);
84  void SetPointSize(double val);
85  void SetRepresentation(int val);
86  void SetUseOutline(int);
87  void SetRenderPointsAsSpheres(bool);
88  void SetRenderLinesAsTubes(bool);
90 
92 
95  void SetOrientation(double, double, double);
96  void SetOrigin(double, double, double);
97  void SetPosition(double, double, double);
98  void SetScale(double, double, double);
99  void SetUserTransform(const double[16]);
101 
103 
106  virtual void SetPointFieldDataArrayName(const char* val);
107  virtual void SetCellFieldDataArrayName(const char* val);
109 
114  unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable) override;
115 
119  void SetLogName(const std::string&) override;
120 
121 protected:
123  ~vtkSelectionRepresentation() override;
124 
125  int FillInputPortInformation(int port, vtkInformation* info) override;
126 
132  bool AddToView(vtkView* view) override;
133 
139  bool RemoveFromView(vtkView* view) override;
140 
144  virtual void TriggerUpdateDataEvent();
145 
148 
149 private:
151  void operator=(const vtkSelectionRepresentation&) = delete;
152 };
153 
154 #endif
vtkDataRepresentation::New
static vtkDataRepresentation * New()
vtkGeometryRepresentation
representation for showing any datasets as external shell of polygons.
Definition: vtkGeometryRepresentation.h:43
vtkPVDataRepresentation::SetLogName
virtual void SetLogName(const std::string &name)
This is solely intended to simplify debugging and use for any other purpose is vehemently discouraged...
Definition: vtkPVDataRepresentation.h:175
vtkPVDataRepresentation::SetForceUseCache
virtual void SetForceUseCache(bool val)
Generally, caching is within the purview of the vtkPVView (and subclasses).
Definition: vtkPVDataRepresentation.h:126
vtkAlgorithm::RemoveInputConnection
virtual void RemoveInputConnection(int port, vtkAlgorithmOutput *input)
vtkPVDataRepresentation.h
vtkPVDataRepresentation::AddToView
bool AddToView(vtkView *view) override
Making these methods public.
vtkPVDataRepresentation::SetUpdateTime
virtual void SetUpdateTime(double time)
Set the update time.
vtkPVDataRepresentation::SetVisibility
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
Definition: vtkPVDataRepresentation.h:89
vtkPVDataRepresentation::Initialize
virtual unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable)
Initialize the representation with an identifier range so each internal representation can own a uniq...
vtkPVDataRepresentation::SetInputConnection
void SetInputConnection(int port, vtkAlgorithmOutput *input) override
Overridden to ensure that MarkModified is called.
vtkPVDataRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
Making these methods public.
vtkDataLabelRepresentation
representation for showing cell and point labels.
Definition: vtkDataLabelRepresentation.h:36
vtkPVDataRepresentation::SetForcedCacheKey
virtual void SetForcedCacheKey(double val)
Generally, caching is within the purview of the vtkPVView (and subclasses).
Definition: vtkPVDataRepresentation.h:125
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.
vtkSelectionRepresentation
Definition: vtkSelectionRepresentation.h:23
vtkInformationRequestKey
vtkInformation
vtkSelectionRepresentation::LabelRepresentation
vtkDataLabelRepresentation * LabelRepresentation
Definition: vtkSelectionRepresentation.h:147
vtkPVDataRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkAlgorithmOutput
vtkPVDataRepresentation::MarkModified
virtual void MarkModified()
This is one of the most important functions.
vtkPVDataRepresentation
Definition: vtkPVDataRepresentation.h:23
vtkPVDataRepresentation::AddInputConnection
void AddInputConnection(int port, vtkAlgorithmOutput *input) override
Overridden to ensure that MarkModified is called.
vtkSelectionRepresentation::GeometryRepresentation
vtkGeometryRepresentation * GeometryRepresentation
Definition: vtkSelectionRepresentation.h:146