vtkPVGridAxes3DRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
9 #ifndef vtkPVGridAxes3DRepresentation_h
10 #define vtkPVGridAxes3DRepresentation_h
11 
12 #include "vtkNew.h" // For vtkNew...
14 #include "vtkRemotingViewsModule.h" // For export macro
15 
16 class vtkOutlineFilter;
17 class vtkPolyData;
19 
21 {
22 public:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
27  void SetGridAxes(vtkPVGridAxes3DActor* gridAxes);
28  vtkGetObjectMacro(GridAxes, vtkPVGridAxes3DActor);
29 
30  void SetVisibility(bool) override;
31  void SetGridAxesVisibility(bool);
32  void SetPosition(double pos[3]);
33  void SetPosition(double x, double y, double z);
34  void SetScale(double scale[3]);
35  void SetScale(double x, double y, double z);
36 
38  vtkInformation* outInfo) override;
39 
40 protected:
43 
44  int FillInputPortInformation(int port, vtkInformation* info) override;
45  int RequestData(vtkInformation* req, vtkInformationVector** inInfoVec,
46  vtkInformationVector* outInfoVec) override;
47  bool AddToView(vtkView* view) override;
48  bool RemoveFromView(vtkView* view) override;
49  void UpdateVisibility();
50 
52 
53  // These are used to keep the axes up-to-date with actor transforms:
54  double Position[3];
55  double Scale[3];
56 
59 
60 private:
62  void operator=(const vtkPVGridAxes3DRepresentation&) = delete;
63 };
64 
65 #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.