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 
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
#define VTKREMOTINGVIEWS_EXPORT
void AddInputConnection(int port, vtkAlgorithmOutput *input) override
Overridden to ensure that MarkModified is called.
virtual void SetLogName(const std::string &name)
This is solely intended to simplify debugging and use for any other purpose is vehemently discouraged...
vtkPVDataRepresentation adds some ParaView specific API to data representations.
virtual void SetUpdateTime(double time)
Set the update time.
bool AddToView(vtkView *view) override
Making these methods public.
virtual void SetForceUseCache(bool val)
Generally, caching is within the purview of the vtkPVView (and subclasses).
representation for showing cell and point labels.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
representation for showing any datasets as external shell of polygons.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
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...
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkDataLabelRepresentation * LabelRepresentation
void SetInputConnection(int port, vtkAlgorithmOutput *input) override
Overridden to ensure that MarkModified is called.
bool RemoveFromView(vtkView *view) override
Making these methods public.
virtual void MarkModified()
This is one of the most important functions.
virtual void SetForcedCacheKey(double val)
Generally, caching is within the purview of the vtkPVView (and subclasses).
static vtkDataRepresentation * New()
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSelectionRepresentation is a representation to show the extracted cells.
vtkGeometryRepresentation * GeometryRepresentation
virtual void RemoveInputConnection(int port, vtkAlgorithmOutput *input)