12 #include <vtkCallbackCommand.h>
13 #include <vtkObject.h>
14 #include <vtkTextActor.h>
15 #include <vtkRenderer.h>
16 #include <vtkRenderWindow.h>
17 #include <vtkSmartPointer.h>
39 renderer_->SetActiveCamera (vtkCamera::SafeDownCast (camera->
getCamera ()));
40 camera_hud_actor_->SetInput (camera->
getName ().c_str ());
41 renderer_->ResetCamera ();
49 viewportModifiedCallback (vtkObject* caller,
unsigned long int vtkNotUsed(eventId),
void* vtkNotUsed(clientData),
50 void* vtkNotUsed(callData));
56 viewportActorUpdateCallback (vtkObject* caller,
unsigned long int vtkNotUsed(eventId),
void* vtkNotUsed(clientData),
57 void* vtkNotUsed(callData));
60 viewportActorUpdate ();
63 viewportHudUpdateCallback (vtkObject* caller,
unsigned long int vtkNotUsed(eventId),
void* vtkNotUsed(clientData),
64 void* vtkNotUsed(callData));
vtkSmartPointer< vtkCamera > getCamera() const
std::string getName() const
void setCamera(Camera *camera)
vtkSmartPointer< vtkRenderer > getRenderer() const
Viewport(vtkSmartPointer< vtkRenderWindow > window, double xmin=0.0, double ymin=0.0, double xmax=1.0, double ymax=1.0)