ParaView
vtkPVCompositeOrthographicSliceRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVCompositeOrthographicSliceRepresentation.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 =========================================================================*/
24 #ifndef vtkPVCompositeOrthographicSliceRepresentation_h
25 #define vtkPVCompositeOrthographicSliceRepresentation_h
26 
28 #include "vtkSmartPointer.h" // needed for vtkSmartPointer.
29 
31 
32 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVCompositeOrthographicSliceRepresentation
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
40  void SetSliceRepresentation(int index, vtkGeometrySliceRepresentation*);
42  {
43  this->SetSliceRepresentation(0, repr);
44  }
46  {
47  this->SetSliceRepresentation(1, repr);
48  }
50  {
51  this->SetSliceRepresentation(2, repr);
52  }
53 
58  virtual void SetVisibility(bool visible);
59 
61 
66  virtual void SetInputConnection(int port, vtkAlgorithmOutput* input);
67  virtual void SetInputConnection(vtkAlgorithmOutput* input);
68  virtual void AddInputConnection(int port, vtkAlgorithmOutput* input);
69  virtual void AddInputConnection(vtkAlgorithmOutput* input);
70  virtual void RemoveInputConnection(int port, vtkAlgorithmOutput* input);
71  virtual void RemoveInputConnection(int port, int index);
73 
77  virtual void MarkModified();
78 
83  virtual unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable);
84 
85 protected:
88 
94  virtual bool AddToView(vtkView* view);
95 
101  virtual bool RemoveFromView(vtkView* view);
102 
103  vtkSmartPointer<vtkGeometrySliceRepresentation> SliceRepresentations[3];
104 
105 private:
107  const vtkPVCompositeOrthographicSliceRepresentation&) VTK_DELETE_FUNCTION;
108  void operator=(const vtkPVCompositeOrthographicSliceRepresentation&) VTK_DELETE_FUNCTION;
109 };
110 
111 #endif
virtual unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable)
Override because of internal composite representations that need to be initilized as well...
a data-representation used by ParaView.
virtual void MarkModified()
Propagate the modification to all internal representations.
void PrintSelf(ostream &os, vtkIndent indent)
virtual void RemoveInputConnection(int port, vtkAlgorithmOutput *input)
Overridden to simply pass the input to the internal representations.
virtual void SetVisibility(bool visible)
Set visibility of the representation.
static vtkPVCompositeRepresentation * New()
vtkPVCompositeOrthographicSliceRepresentation is designed for use with vtkPVOrthographicSliceView.
virtual void AddInputConnection(int port, vtkAlgorithmOutput *input)
Overridden to simply pass the input to the internal representations.
extends vtkGeometryRepresentation to add support for showing just specific slices from the dataset...
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Overridden to simply pass the input to the internal representations.
virtual bool AddToView(vtkView *view)
Adds the representation to the view.
virtual bool RemoveFromView(vtkView *view)
Removes the representation to the view.