ParaView
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 
29 #include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
31 
34 
35 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkSelectionRepresentation
37 {
38 public:
39  static vtkSelectionRepresentation* New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
47  void SetLabelRepresentation(vtkDataLabelRepresentation*);
48 
50 
55  virtual void SetInputConnection(int port, vtkAlgorithmOutput* input);
56  virtual void SetInputConnection(vtkAlgorithmOutput* input);
57  virtual void AddInputConnection(int port, vtkAlgorithmOutput* input);
58  virtual void AddInputConnection(vtkAlgorithmOutput* input);
59  virtual void RemoveInputConnection(int port, vtkAlgorithmOutput* input);
60  virtual void RemoveInputConnection(int port, int idx);
62 
69  virtual void MarkModified();
70 
72 
75  virtual void SetUpdateTime(double time);
76  virtual void SetForceUseCache(bool val);
77  virtual void SetForcedCacheKey(double val);
79 
85  virtual void SetVisibility(bool val);
86 
88 
91  void SetColor(double r, double g, double b);
92  void SetLineWidth(double val);
93  void SetOpacity(double val);
94  void SetPointSize(double val);
95  void SetRepresentation(int val);
96  void SetUseOutline(int);
98 
100 
103  void SetOrientation(double, double, double);
104  void SetOrigin(double, double, double);
105  void SetPosition(double, double, double);
106  void SetScale(double, double, double);
107  void SetUserTransform(const double[16]);
109 
111 
114  virtual void SetPointFieldDataArrayName(const char* val);
115  virtual void SetCellFieldDataArrayName(const char* val);
117 
122  virtual unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable);
123 
124 protected:
127 
128  virtual int FillInputPortInformation(int port, vtkInformation* info);
129 
135  virtual bool AddToView(vtkView* view);
136 
142  virtual bool RemoveFromView(vtkView* view);
143 
147  void TriggerUpdateDataEvent();
148 
151 
152 private:
153  vtkSelectionRepresentation(const vtkSelectionRepresentation&) VTK_DELETE_FUNCTION;
154  void operator=(const vtkSelectionRepresentation&) VTK_DELETE_FUNCTION;
155 };
156 
157 #endif
void PrintSelf(ostream &os, vtkIndent indent)
vtkPVDataRepresentation adds some ParaView specific API to data representations.
virtual void SetUpdateTime(double time)
Set the update time.
virtual void SetForceUseCache(bool val)
representation for showing cell and point labels.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual bool AddToView(vtkView *view)
Making these methods public.
representation for showing any datasets as external shell of polygons.
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...
vtkDataLabelRepresentation * LabelRepresentation
virtual void MarkModified()
This is one of the most important functions.
virtual void SetForcedCacheKey(double val)
Typically a representation decides whether to use cache based on the view's values for UseCache and C...
virtual bool RemoveFromView(vtkView *view)
Making these methods public.
vtkSelectionRepresentation is a representation to show the extracted cells.
vtkGeometryRepresentation * GeometryRepresentation