vtkSorter.h

Go to the documentation of this file.
00001 /*=auto=========================================================================
00002 
00003   Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
00004 
00005   See Doc/copyright/copyright.txt
00006   or http://www.slicer.org/copyright/copyright.txt for details.
00007 
00008   Program:   3D Slicer
00009   Module:    $RCSfile: vtkSorter.h,v $
00010   Date:      $Date: 2006/05/26 19:59:44 $
00011   Version:   $Revision: 1.4 $
00012 
00013 =========================================================================auto=*/
00014 /*===========================================================
00015 
00016 Authors: Michael McKenna, David Small, Steve Pieper.
00017     Small Design Firm, Inc.,
00018     in association with Isomics, Inc.,
00019     and Partners Health Care.  MA, USA.
00020     June, 2004
00021 
00022 ===========================================================*/
00023 
00024 
00025 #ifndef __vtkSorter_h
00026 #define __vtkSorter_h
00027 
00028 
00029 #include "vtkObject.h"
00030 #include "vtkCollection.h"
00031 #include "vtkRenderer.h"
00032 
00033 
00034 #include <vtkQueryAtlasConfigure.h>
00035 
00036 #include <vtkTextureText.h>
00037 #include <vtkCard.h>
00038 
00039 class vtkCamera;
00040 
00041 
00042 // orig _vtkSortValues from vtkDepthSortPolyData:
00043 
00044 typedef struct _vtkSorterValues {
00045   vtkFloatingPointType z;
00046   vtkIdType cellId;
00047   int cellType;
00048 } vtkSorterValues;
00049 
00050 
00051 // strange issue /w vtkCommand not being a vtkObject - so we'll make the command a member - 2003-03-11
00052 
00053 class VTK_QUERYATLAS_EXPORT vtkSorter : public vtkObject
00054 {
00055 public:
00056     void PrintSelf(ostream& os, vtkIndent indent);
00057     vtkTypeRevisionMacro(vtkSorter, vtkObject);
00058 
00059     static vtkSorter *New();
00060 
00061     vtkSorterValues *LastDepth;
00062     int LastDepthNum;
00063 
00064     void SetSelectedItem(vtkObject *o);
00065 
00066     vtkGetMacro(AlwaysResort, int);  
00067     vtkSetMacro(AlwaysResort, int);  
00068 
00069     vtkSetObjectMacro(Renderer, vtkRenderer);
00070     vtkGetObjectMacro(Renderer, vtkRenderer);
00071 
00072     vtkGetObjectMacro(Cards, vtkCollection);  
00073     vtkGetObjectMacro(TextureTexts, vtkCollection);  
00074 
00075     void DepthSort();
00076 
00077 
00078 protected:
00079     vtkSorter();
00080     ~vtkSorter(); 
00081 
00082 
00083     int AlwaysResort;
00084 
00085 //BTX
00086     void ComputeProjectionVector(vtkCamera *c, vtkFloatingPointType vector[3], vtkFloatingPointType origin[3]);
00087 //ETX
00088 
00089     vtkCollection *Cards;
00090     vtkCollection *TextureTexts;
00091 
00092     vtkRenderer *Renderer;
00093 
00094     vtkObject *SelectedItem;
00095 };
00096 
00097 #endif

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1