widget in viewport
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#include <vtkAxesActor.h>
|
||||
#include <vtkPlaneSource.h>
|
||||
#include <vtkActor.h>
|
||||
#include <vtkCellPicker.h>
|
||||
#include <vector>
|
||||
|
||||
class vtkProp;
|
||||
class vtk3DWidget;
|
||||
@@ -26,6 +28,8 @@ class vtkCamera;
|
||||
namespace uLib {
|
||||
namespace Vtk {
|
||||
|
||||
class vtkHandlerWidget;
|
||||
|
||||
/**
|
||||
* @class Viewport
|
||||
* @brief Base class for VTK viewports, providing core rendering and prop management.
|
||||
@@ -43,6 +47,7 @@ public:
|
||||
// Puppet / prop management
|
||||
void AddPuppet(Puppet &prop);
|
||||
void RemovePuppet(Puppet &prop);
|
||||
void SelectPuppet(Puppet *prop);
|
||||
void addProp(vtkProp *prop);
|
||||
void RemoveProp(vtkProp *prop);
|
||||
|
||||
@@ -72,6 +77,10 @@ protected:
|
||||
vtkSmartPointer<vtkActor> m_OriginAxesActor;
|
||||
|
||||
vtkSmartPointer<vtkNamedColors> m_Colors;
|
||||
|
||||
vtkSmartPointer<vtkHandlerWidget> m_HandlerWidget;
|
||||
std::vector<Puppet*> m_Puppets;
|
||||
vtkSmartPointer<vtkCellPicker> m_Picker;
|
||||
};
|
||||
|
||||
} // namespace Vtk
|
||||
|
||||
Reference in New Issue
Block a user