ParaView
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 VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkGeometrySliceRepresentation
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
38  virtual int ProcessViewRequest(
39  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
40 
41  enum
42  {
46  ALL_SLICES
47  };
48  vtkSetClampMacro(Mode, int, X_SLICE_ONLY, ALL_SLICES);
49  vtkGetMacro(Mode, int);
50 
52 
55  vtkSetMacro(ShowOutline, bool);
56  vtkGetMacro(ShowOutline, bool);
58 
59 protected:
62 
63  virtual void SetupDefaults();
64  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
65  vtkInformationVector* outputVector);
66 
67  virtual bool AddToView(vtkView* view);
68  virtual bool RemoveFromView(vtkView* view);
69 
70 private:
72  void operator=(const vtkGeometrySliceRepresentation&) VTK_DELETE_FUNCTION;
73 
74  class vtkInternals;
75  vtkInternals* Internals;
76  int Mode;
77  bool ShowOutline;
78 };
79 
80 #endif
virtual void SetupDefaults()
This method is called in the constructor.
representation for showing any datasets as external shell of polygons.
static vtkGeometryRepresentation * New()
virtual bool RemoveFromView(vtkView *view)
Removes the representation to the view.
virtual bool AddToView(vtkView *view)
Adds the representation to the view.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses should override this to connect inputs to the internal pipeline as necessary.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
extends vtkGeometryRepresentation to add support for showing just specific slices from the dataset...