vtkSorter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
00043
00044 typedef struct _vtkSorterValues {
00045 vtkFloatingPointType z;
00046 vtkIdType cellId;
00047 int cellType;
00048 } vtkSorterValues;
00049
00050
00051
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
00086 void ComputeProjectionVector(vtkCamera *c, vtkFloatingPointType vector[3], vtkFloatingPointType origin[3]);
00087
00088
00089 vtkCollection *Cards;
00090 vtkCollection *TextureTexts;
00091
00092 vtkRenderer *Renderer;
00093
00094 vtkObject *SelectedItem;
00095 };
00096
00097 #endif