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 
18 class VTKREMOTINGVIEWS_EXPORT vtkGeometrySliceRepresentation : public vtkGeometryRepresentation
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
vtkGeometryRepresentation
representation for showing any datasets as external shell of polygons.
Definition: vtkGeometryRepresentation.h:43
vtkGeometryRepresentation::AddToView
bool AddToView(vtkView *view) override
Adds the representation to the view.
vtkGeometryRepresentation::ProcessViewRequest
int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) override
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkGeometrySliceRepresentation::X_SLICE_ONLY
@ X_SLICE_ONLY
Definition: vtkGeometrySliceRepresentation.h:30
vtkInformationVector
vtkGeometryRepresentation::SetupDefaults
virtual void SetupDefaults()
This method is called in the constructor.
vtkView
vtkIndent
vtkGeometryRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
Removes the representation to the view.
vtkInformationRequestKey
vtkGeometryRepresentation::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses should override this to connect inputs to the internal pipeline as necessary.
vtkGeometryRepresentation::New
static vtkGeometryRepresentation * New()
vtkInformation
vtkGeometrySliceRepresentation::Z_SLICE_ONLY
@ Z_SLICE_ONLY
Definition: vtkGeometrySliceRepresentation.h:32
vtkGeometrySliceRepresentation::Y_SLICE_ONLY
@ Y_SLICE_ONLY
Definition: vtkGeometrySliceRepresentation.h:31
vtkGeometrySliceRepresentation
extends vtkGeometryRepresentation to add support for showing just specific slices from the dataset.
Definition: vtkGeometrySliceRepresentation.h:18
vtkGeometryRepresentation.h
vtkGeometryRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override