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 
20 class VTKREMOTINGVIEWS_EXPORT vtkPVGridAxes3DRepresentation : public vtkPVDataRepresentation
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
vtkDataRepresentation::New
static vtkDataRepresentation * New()
vtkPVDataRepresentation.h
vtkInformationVector
vtkPVDataRepresentation::AddToView
bool AddToView(vtkView *view) override
Making these methods public.
vtkPVDataRepresentation::SetVisibility
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
Definition: vtkPVDataRepresentation.h:89
vtkPVGridAxes3DRepresentation::GridAxesVisibility
bool GridAxesVisibility
Definition: vtkPVGridAxes3DRepresentation.h:51
vtkPVDataRepresentation::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
vtkPVGridAxes3DActor
ParaView extensions for vtkGridAxes3DActor.
Definition: vtkPVGridAxes3DActor.h:34
vtkPVDataRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
Making these methods public.
vtkPassInputTypeAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkPVGridAxes3DRepresentation
Representation for vtkPVGridAxis3DActor.
Definition: vtkPVGridAxes3DRepresentation.h:20
vtkView
vtkIndent
vtkPVDataRepresentation::ProcessViewRequest
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkInformationRequestKey
vtkNew< vtkPolyData >
vtkInformation
vtkNew.h
vtkPVDataRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPolyData
vtkOutlineFilter
vtkPVDataRepresentation
Definition: vtkPVDataRepresentation.h:23
vtkPVGridAxes3DRepresentation::DummyPolyData
vtkNew< vtkPolyData > DummyPolyData
Definition: vtkPVGridAxes3DRepresentation.h:57
vtkPVGridAxes3DRepresentation::GridAxes
vtkPVGridAxes3DActor * GridAxes
Definition: vtkPVGridAxes3DRepresentation.h:58