vtkSelectionRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSelectionRepresentation.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 =========================================================================*/
26 #ifndef vtkSelectionRepresentation_h
27 #define vtkSelectionRepresentation_h
28 
30 #include "vtkRemotingViewsModule.h" //needed for exports
31 
34 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43  vtkInformation* outInfo) override;
44 
49  void SetLabelRepresentation(vtkDataLabelRepresentation*);
50 
52 
57  void SetInputConnection(int port, vtkAlgorithmOutput* input) override;
58  void SetInputConnection(vtkAlgorithmOutput* input) override;
59  void AddInputConnection(int port, vtkAlgorithmOutput* input) override;
60  void AddInputConnection(vtkAlgorithmOutput* input) override;
61  void RemoveInputConnection(int port, vtkAlgorithmOutput* input) override;
62  void RemoveInputConnection(int port, int idx) override;
64 
71  void MarkModified() override;
72 
74 
77  void SetUpdateTime(double time) override;
78  void SetForceUseCache(bool val) override;
79  void SetForcedCacheKey(double val) override;
81 
87  void SetVisibility(bool val) override;
88 
90 
93  void SetColor(double r, double g, double b);
94  void SetLineWidth(double val);
95  void SetOpacity(double val);
96  void SetPointSize(double val);
97  void SetRepresentation(int val);
98  void SetUseOutline(int);
99  void SetRenderPointsAsSpheres(bool);
100  void SetRenderLinesAsTubes(bool);
102 
104 
107  void SetOrientation(double, double, double);
108  void SetOrigin(double, double, double);
109  void SetPosition(double, double, double);
110  void SetScale(double, double, double);
111  void SetUserTransform(const double[16]);
113 
115 
118  virtual void SetPointFieldDataArrayName(const char* val);
119  virtual void SetCellFieldDataArrayName(const char* val);
121 
126  unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable) override;
127 
131  void SetLogName(const std::string&) override;
132 
133 protected:
135  ~vtkSelectionRepresentation() override;
136 
137  int FillInputPortInformation(int port, vtkInformation* info) override;
138 
144  bool AddToView(vtkView* view) override;
145 
151  bool RemoveFromView(vtkView* view) override;
152 
156  void TriggerUpdateDataEvent();
157 
160 
161 private:
163  void operator=(const vtkSelectionRepresentation&) = delete;
164 };
165 
166 #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)