GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vtkViewImage2DCollectionCommand.h
Go to the documentation of this file.
1 /*=========================================================================
2  Author: $Author:$ // Author of last commit
3  Version: $Rev:$ // Revision of last commit
4  Date: $Date:$ // Date of last commit
5 =========================================================================*/
6 
7 /*=========================================================================
8  Authors: The GoFigure Dev. Team.
9  at Megason Lab, Systems biology, Harvard Medical school, 2009-11
10 
11  Copyright (c) 2009-11, President and Fellows of Harvard College.
12  All rights reserved.
13 
14  Redistribution and use in source and binary forms, with or without
15  modification, are permitted provided that the following conditions are met:
16 
17  Redistributions of source code must retain the above copyright notice,
18  this list of conditions and the following disclaimer.
19  Redistributions in binary form must reproduce the above copyright notice,
20  this list of conditions and the following disclaimer in the documentation
21  and/or other materials provided with the distribution.
22  Neither the name of the President and Fellows of Harvard College
23  nor the names of its contributors may be used to endorse or promote
24  products derived from this software without specific prior written
25  permission.
26 
27  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
29  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
31  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
32  OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
33  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
34  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
35  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
36  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 
39 =========================================================================*/
40 #ifndef __vtkViewImage2DCollectionCommand_h
41 #define __vtkViewImage2DCollectionCommand_h
42 
43 #include "vtkCommand.h"
44 #include "vtkObject.h"
45 #include "MegaVTK2Configure.h"
46 
47 #include <list>
48 
50 class vtkProp3D;
51 
58 class VTK_RENDERINGADDON2_EXPORT vtkViewImage2DCollectionCommand:
59  public vtkCommand
60 {
61 public:
65  static vtkViewImage2DCollectionCommand * New();
66 
71  vtkViewImage2DCollection * GetCollection();
72 
77  void SetCollection(vtkViewImage2DCollection *p);
78 
83  void SynchronizeViews( bool iSynchronizeViews);
84 
85  // Description:
86  // Satisfy the superclass API for callbacks. Recall that the caller is
87  // the instance invoking the event; eid is the event id (see
88  // vtkCommand.h); and calldata is information sent when the callback
89  // was invoked (e.g., progress value in the vtkCommand::ProgressEvent).
90  virtual void Execute( vtkObject * caller, unsigned long event,
91  void *vtkNotUsed(callData) );
92 protected:
95 private:
97 
98  double InitialWindow;
99  double InitialLevel;
100 
102 };
103 
104 #endif
Manage events occuring in a 2D view and apply it to a collection.
Manage a collection of 2D views.