vtkGeometrySliceRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkGeometrySliceRepresentation.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
25 #ifndef vtkGeometrySliceRepresentation_h
26 #define vtkGeometrySliceRepresentation_h
27 
29 
30 class VTKREMOTINGVIEWS_EXPORT vtkGeometrySliceRepresentation : public vtkGeometryRepresentation
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38  vtkInformation* outInfo) override;
39 
40  enum
41  {
45  ALL_SLICES
46  };
47  vtkSetClampMacro(Mode, int, X_SLICE_ONLY, ALL_SLICES);
48  vtkGetMacro(Mode, int);
49 
51 
54  vtkSetMacro(ShowOutline, bool);
55  vtkGetMacro(ShowOutline, bool);
57 
58 protected:
61 
62  void SetupDefaults() override;
63  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
64  vtkInformationVector* outputVector) override;
65 
66  bool AddToView(vtkView* view) override;
67  bool RemoveFromView(vtkView* view) override;
68 
69 private:
71  void operator=(const vtkGeometrySliceRepresentation&) = delete;
72 
73  class vtkInternals;
74  vtkInternals* Internals;
75  int Mode;
76  bool ShowOutline;
77 };
78 
79 #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.
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...