vtkPVGridAxes3DRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPVGridAxes3DRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
20 #ifndef vtkPVGridAxes3DRepresentation_h
21 #define vtkPVGridAxes3DRepresentation_h
22 
23 #include "vtkNew.h" // For vtkNew...
25 #include "vtkRemotingViewsModule.h" // For export macro
26 
27 class vtkOutlineFilter;
28 class vtkPolyData;
30 
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  void SetGridAxes(vtkPVGridAxes3DActor* gridAxes);
39  vtkGetObjectMacro(GridAxes, vtkPVGridAxes3DActor);
40 
41  void SetVisibility(bool) override;
42  void SetGridAxesVisibility(bool);
43  void SetPosition(double pos[3]);
44  void SetPosition(double x, double y, double z);
45  void SetScale(double scale[3]);
46  void SetScale(double x, double y, double z);
47 
49  vtkInformation* outInfo) override;
50 
51 protected:
54 
55  int FillInputPortInformation(int port, vtkInformation* info) override;
56  int RequestData(vtkInformation* req, vtkInformationVector** inInfoVec,
57  vtkInformationVector* outInfoVec) override;
58  bool AddToView(vtkView* view) override;
59  bool RemoveFromView(vtkView* view) override;
60  void UpdateVisibility();
61 
63 
64  // These are used to keep the axes up-to-date with actor transforms:
65  double Position[3];
66  double Scale[3];
67 
70 
71 private:
73  void operator=(const vtkPVGridAxes3DRepresentation&) = delete;
74 };
75 
76 #endif // vtkPVGridAxes3DRepresentation_h
#define VTKREMOTINGVIEWS_EXPORT
vtkPVDataRepresentation adds some ParaView specific API to data representations.
bool AddToView(vtkView *view) override
Making these methods public.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
virtual int FillInputPortInformation(int port, vtkInformation *info)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
bool RemoveFromView(vtkView *view) override
Making these methods public.
static vtkDataRepresentation * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Representation for vtkPVGridAxis3DActor.
ParaView extensions for vtkGridAxes3DActor.