vtkGlyph3DRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkGlyph3DRepresentation.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 =========================================================================*/
24 #ifndef vtkGlyph3DRepresentation_h
25 #define vtkGlyph3DRepresentation_h
26 
28 #include "vtkRemotingViewsModule.h" //needed for exports
29 
30 class vtkGlyph3DMapper;
31 class vtkArrowSource;
32 
34 {
35 public:
36  static vtkGlyph3DRepresentation* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
47  vtkInformation* outInfo) override;
48 
53  void SetMeshVisibility(bool visible);
54 
59  void SetVisibility(bool) override;
60 
61  //**************************************************************************
62  // Forwarded to vtkGlyph3DMapper
63  void SetMaskArray(const char* val);
64  void SetScaleArray(const char* val);
65  void SetOrientationArray(const char* val);
66  void SetSourceIndexArray(const char* val);
67  void SetScaling(bool val);
68  void SetScaleMode(int val);
69  void SetScaleFactor(double val);
70  void SetOrient(bool val);
71  void SetOrientationMode(int val);
72  void SetMasking(bool val);
73  void SetSourceIndexing(bool val);
74  void SetUseSourceTableTree(bool val);
75  void SetUseCullingAndLOD(bool val);
76  void SetNumberOfLOD(int val);
77  void SetLODDistanceAndTargetReduction(int index, float dist, float reduc);
78  void SetColorByLODIndex(bool val);
79 
80  //***************************************************************************
81  // Overridden to forward to the vtkGlyph3DMapper.
82  void SetInterpolateScalarsBeforeMapping(int val) override;
83  void SetLookupTable(vtkScalarsToColors* val) override;
84  void SetMapScalars(int val) override;
85  void SetStatic(int val) override;
86 
87  //***************************************************************************
88  // Overridden to forward to the vtkActor used for the glyphs (GlyphActor)
89  void SetOrientation(double, double, double) override;
90  void SetOrigin(double, double, double) override;
91  void SetPickable(int val) override;
92  void SetPosition(double, double, double) override;
93  void SetScale(double, double, double) override;
94  void SetTexture(vtkTexture*) override;
95  void SetUserTransform(const double[16]) override;
96 
97 protected:
99  ~vtkGlyph3DRepresentation() override;
100 
104  int FillInputPortInformation(int port, vtkInformation* info) override;
105 
107 
111  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
112  vtkInformationVector* outputVector) override;
113 
119  bool AddToView(vtkView* view) override;
120 
126  bool RemoveFromView(vtkView* view) override;
127 
131  vtkPVLODActor* GetRenderedProp() override { return this->GlyphActor; }
132 
137  void UpdateColoringParameters() override;
138 
142  void ComputeGlyphBounds(double bounds[6]);
143 
145 
148 
151 
153 
154 private:
156  void operator=(const vtkGlyph3DRepresentation&) = delete;
157 };
158 
159 #endif
int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) override
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
virtual void SetScale(double, double, double)
virtual void SetPickable(int val)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill input port information.
virtual void SetUserTransform(const double[16])
vtkPVLODActor * GetRenderedProp() override
Used in ConvertSelection to locate the prop used for actual rendering.
#define VTKREMOTINGVIEWS_EXPORT
vtkGlyph3DRepresentation is a representation that uses the vtkGlyph3DMapper for rendering glyphs...
representation for showing any datasets as external shell of polygons.
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Overridden to request correct ghost-level to avoid internal surfaces.
static vtkGeometryRepresentation * New()
virtual void SetMapScalars(int val)
Sets if scalars are mapped through a color-map or are used directly as colors.
void SetVisibility(bool val) override
Get/Set the visibility for this representation.
virtual void SetTexture(vtkTexture *)
virtual void UpdateColoringParameters()
Passes on parameters to vtkProperty and vtkMapper.
virtual void SetLookupTable(vtkScalarsToColors *val)
virtual void SetOrientation(double, double, double)
bool AddToView(vtkView *view) override
Adds the representation to the view.
virtual void SetPosition(double, double, double)
virtual void SetOrigin(double, double, double)
bool RemoveFromView(vtkView *view) override
Removes the representation to the view.
an actor that supports multiple levels of detail
Definition: vtkPVLODActor.h:37
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses should override this to connect inputs to the internal pipeline as necessary.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void SetInterpolateScalarsBeforeMapping(int val)
virtual void SetStatic(int val)
Sets if scalars are mapped through a color-map or are used directly as colors.