OSDN Git Service

Please enter the commit message for your changes. Lines starting
[eos/base.git] / include / eosStereoRenderer.hh
1 #ifndef EOS_STEREO_RENDERER_HH
2 #define EOS_STEREO_RENDERER_HH
3
4 #include <vtkActor.h> 
5 #include <vtkRenderer.h>
6 #include <stdio.h>
7 #include <math.h>
8
9 #include "tcl.h" 
10 #include "tk.h"
11 #include "vtkVolumeCollection.h" // Needed for access in inline members 
12 #include "vtkActorCollection.h" // Needed for access in inline members 
13 #include "vtkAssemblyPath.h"
14 #include "vtkProp.h"
15 #include "vtkAssembly.h"
16 #include "vtkFollower.h"
17
18 extern int Vtktcl_SafeInit(Tcl_Interp *interp);
19 class VTK_RENDERING_EXPORT eosStereoRenderer
20 {
21 public:
22         static eosStereoRenderer* New();
23
24         eosStereoRenderer();
25         ~eosStereoRenderer();
26
27         void AddLight(vtkLight*);
28         void RemoveLight(vtkLight*);
29         //vtkLightCollection* GetLights();
30
31         //vtkVolumeCollection* GetVolumes();
32
33         //vtkActorCollection* GetActors();
34
35         //void SetActiveCamera(vtkCamera*);
36         vtkCamera* GetActiveCamera();
37     //vtkCamera* GetActiveCameraRight();
38     //vtkCamera* GetActiveCameraLeft();
39
40         //void Clear();
41
42         void SetBackground(int,int,int);
43
44         //void ResetCameraClippingRange();
45         //void ResetCameraClippingRange(float bounds[6]);
46         //void ResetCameraClippingRange(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax);
47         void ResetCamera();
48         //void ResetCamera(float bounds[6]);
49         //void ResetCamera(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax);
50
51         //vtkAssemblyPath* PickProp(float selectionX, float selectionY);
52     //vtkAssemblyPath* PickPropRight(float selectionX, float selectionY);
53     //vtkAssemblyPath* PickPropLeft(float selectionX, float selectionY);
54         
55     vtkRenderer* GetMainRenderer();
56         vtkRenderer* GetRightRenderer();
57         vtkRenderer* GetLeftRenderer(); 
58         
59         void AddActor(vtkActor*);
60         //void AddVolume(vtkActor*);
61         void RemoveActor(vtkActor*);
62         void AddActor2D(vtkActor2D*);
63         void RemoveActor2D(vtkActor2D*);
64         void AddActor(vtkAssembly*);
65         void RemoveActor(vtkAssembly*);
66         void RemoveActor(vtkFollower*);
67         
68     //void SetLightFollowCamera (int);
69     //int  GetLightFollowCamera ();
70     //int  GetLightFollowCameraRight ();
71     //int  GetLightFollowCameraLeft ();
72     //void LightFollowCameraOn ();
73     //void LightFollowCameraOff();
74
75         //void SetInteractive (int);
76         //int  GetInteractive ();
77         //void InteractiveOn();
78         //void InteractiveOff();
79         
80 protected:
81         vtkRenderer *Ren,*RenRight,*RenLeft;
82 private:
83
84 };
85
86 #endif
87
88