vtkGeometrySliceRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkGeometrySliceRepresentation_h
14 #define vtkGeometrySliceRepresentation_h
15 
17 
19 {
20 public:
23  void PrintSelf(ostream& os, vtkIndent indent) override;
24 
26  vtkInformation* outInfo) override;
27 
28  enum
29  {
33  ALL_SLICES
34  };
35  vtkSetClampMacro(Mode, int, X_SLICE_ONLY, ALL_SLICES);
36  vtkGetMacro(Mode, int);
37 
39 
42  vtkSetMacro(ShowOutline, bool);
43  vtkGetMacro(ShowOutline, bool);
45 
46 protected:
49 
50  void SetupDefaults() override;
51  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
52  vtkInformationVector* outputVector) override;
53 
54  bool AddToView(vtkView* view) override;
55  bool RemoveFromView(vtkView* view) override;
56 
57 private:
59  void operator=(const vtkGeometrySliceRepresentation&) = delete;
60 
61  class vtkInternals;
62  vtkInternals* Internals;
63  int Mode;
64  bool ShowOutline;
65 };
66 
67 #endif
int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) override
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
virtual void SetupDefaults()
This method is called in the constructor.
#define VTKREMOTINGVIEWS_EXPORT
representation for showing any datasets as external shell of polygons.
static vtkGeometryRepresentation * New()
bool AddToView(vtkView *view) override
Adds the representation to the view.
bool RemoveFromView(vtkView *view) override
Removes the representation to the view.
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
extends vtkGeometryRepresentation to add support for showing just specific slices from the dataset...