ParaView
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 "vtkPVClientServerCoreRenderingModule.h" //needed for exports
29 
30 class vtkGlyph3DMapper;
31 class vtkPVArrowSource;
32 
33 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkGlyph3DRepresentation
35 {
36 public:
37  static vtkGlyph3DRepresentation* New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
47  virtual int ProcessViewRequest(
48  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
49 
54  void SetMeshVisibility(bool visible);
55 
60  virtual void SetVisibility(bool);
61 
62  //**************************************************************************
63  // Forwarded to vtkGlyph3DMapper
64  void SetMaskArray(const char* val);
65  void SetScaleArray(const char* val);
66  void SetOrientationArray(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 
74  //***************************************************************************
75  // Overridden to forward to the vtkGlyph3DMapper.
76  virtual void SetInterpolateScalarsBeforeMapping(int val);
77  virtual void SetLookupTable(vtkScalarsToColors* val);
78  virtual void SetMapScalars(int val);
79  virtual void SetStatic(int val);
80 
81  //***************************************************************************
82  // Overridden to forward to the vtkActor used for the glyphs (GlyphActor)
83  virtual void SetOrientation(double, double, double);
84  virtual void SetOrigin(double, double, double);
85  virtual void SetPickable(int val);
86  virtual void SetPosition(double, double, double);
87  virtual void SetScale(double, double, double);
88  virtual void SetTexture(vtkTexture*);
89  virtual void SetUserTransform(const double[16]);
90 
91 protected:
94 
98  virtual int FillInputPortInformation(int port, vtkInformation* info);
99 
100  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
101 
105  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
106  vtkInformationVector* outputVector) VTK_OVERRIDE;
107 
113  virtual bool AddToView(vtkView* view);
114 
120  virtual bool RemoveFromView(vtkView* view);
121 
125  virtual vtkPVLODActor* GetRenderedProp() { return this->GlyphActor; }
126 
131  virtual void UpdateColoringParameters();
132 
136  void ComputeGlyphBounds(double bounds[6]);
137 
138  vtkGlyph3DMapper* GlyphMapper;
139  vtkGlyph3DMapper* LODGlyphMapper;
140 
143 
145 
146 private:
147  vtkGlyph3DRepresentation(const vtkGlyph3DRepresentation&) VTK_DELETE_FUNCTION;
148  void operator=(const vtkGlyph3DRepresentation&) VTK_DELETE_FUNCTION;
149 };
150 
151 #endif
virtual void SetScale(double, double, double)
virtual void SetPickable(int val)
virtual void SetUserTransform(const double[16])
vtkGlyph3DRepresentation is a representation that uses the vtkGlyph3DMapper for rendering glyphs...
representation for showing any datasets as external shell of polygons.
A quick fix for a bug.
static vtkGeometryRepresentation * New()
virtual void SetMapScalars(int val)
Sets if scalars are mapped through a color-map or are used directly as colors.
virtual bool RemoveFromView(vtkView *view)
Removes the representation to the view.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill input port information.
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Overridden to request correct ghost-level to avoid internal surfaces.
virtual bool AddToView(vtkView *view)
Adds the representation to the view.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual void SetTexture(vtkTexture *)
virtual void UpdateColoringParameters()
Passes on parameters to vtkProperty and vtkMapper.
void PrintSelf(ostream &os, vtkIndent indent)
virtual void SetLookupTable(vtkScalarsToColors *val)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses should override this to connect inputs to the internal pipeline as necessary.
virtual void SetOrientation(double, double, double)
virtual void SetPosition(double, double, double)
virtual vtkPVLODActor * GetRenderedProp()
Used in ConvertSelection to locate the prop used for actual rendering.
virtual void SetOrigin(double, double, double)
an actor that supports multiple levels of detail
Definition: vtkPVLODActor.h:37
virtual void SetInterpolateScalarsBeforeMapping(int val)
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
virtual void SetStatic(int val)
Sets if scalars are mapped through a color-map or are used directly as colors.