vtkGlyph3DRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkGlyph3DRepresentation_h
13 #define vtkGlyph3DRepresentation_h
14 
16 #include "vtkRemotingViewsModule.h" //needed for exports
17 
18 class vtkGlyph3DMapper;
19 class vtkArrowSource;
20 
22 {
23 public:
24  static vtkGlyph3DRepresentation* New();
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
35  vtkInformation* outInfo) override;
36 
41  void SetMeshVisibility(bool visible);
42 
47  void SetVisibility(bool) override;
48 
49  //**************************************************************************
50  // Forwarded to vtkGlyph3DMapper
51  void SetMaskArray(const char* val);
52  void SetScaleArray(const char* val);
53  void SetOrientationArray(const char* val);
54  void SetSourceIndexArray(const char* val);
55  void SetScaling(bool val);
56  void SetScaleMode(int val);
57  void SetScaleFactor(double val);
58  void SetOrient(bool val);
59  void SetOrientationMode(int val);
60  void SetMasking(bool val);
61  void SetSourceIndexing(bool val);
62  void SetUseSourceTableTree(bool val);
63  void SetUseCullingAndLOD(bool val);
64  void SetNumberOfLOD(int val);
65  void SetLODDistanceAndTargetReduction(int index, float dist, float reduc);
66  void SetColorByLODIndex(bool val);
67 
68  //***************************************************************************
69  // Overridden to forward to the vtkGlyph3DMapper.
70  void SetInterpolateScalarsBeforeMapping(int val) override;
71  void SetLookupTable(vtkScalarsToColors* val) override;
72  void SetMapScalars(int val) override;
73  void SetStatic(int val) override;
74 
75  //***************************************************************************
76  // Overridden to forward to the vtkActor used for the glyphs (GlyphActor)
77  void SetOrientation(double, double, double) override;
78  void SetOrigin(double, double, double) override;
79  void SetPickable(int val) override;
80  void SetPosition(double, double, double) override;
81  void SetScale(double, double, double) override;
82  void SetTexture(vtkTexture*) override;
83  void SetUserTransform(const double[16]) override;
84 
85 protected:
87  ~vtkGlyph3DRepresentation() override;
88 
89  void SetupDefaults() override;
90 
94  int FillInputPortInformation(int port, vtkInformation* info) override;
95 
97 
101  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
102  vtkInformationVector* outputVector) override;
103 
109  bool AddToView(vtkView* view) override;
110 
116  bool RemoveFromView(vtkView* view) override;
117 
121  vtkPVLODActor* GetRenderedProp() override { return this->GlyphActor; }
122 
127  void UpdateColoringParameters() override;
128 
132  void ComputeGlyphBounds(double bounds[6]);
133 
135 
138 
141 
143 
144 private:
146  void operator=(const vtkGlyph3DRepresentation&) = delete;
147 };
148 
149 #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])
virtual void SetupDefaults()
This method is called in the constructor.
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:25
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.