refactor: rename Puppet class to Prop3D across the codebase
This commit is contained in:
@@ -46,10 +46,10 @@ public:
|
||||
void ZoomAuto();
|
||||
void ZoomSelected();
|
||||
|
||||
// Puppet / prop management
|
||||
void AddPuppet(Puppet &prop);
|
||||
void RemovePuppet(Puppet &prop);
|
||||
void SelectPuppet(Puppet *prop);
|
||||
// Prop3D / prop management
|
||||
void AddProp3D(Prop3D &prop);
|
||||
void RemoveProp3D(Prop3D &prop);
|
||||
void SelectProp3D(Prop3D *prop);
|
||||
void addProp(vtkProp *prop);
|
||||
void RemoveProp(vtkProp *prop);
|
||||
|
||||
@@ -63,8 +63,8 @@ public:
|
||||
vtkCornerAnnotation* GetAnnotation();
|
||||
vtkCameraOrientationWidget* GetCameraWidget();
|
||||
void DisableHandler();
|
||||
virtual void OnSelectionChanged(Puppet* p) {}
|
||||
const std::vector<Puppet*>& getPuppets() const { return m_Puppets; }
|
||||
virtual void OnSelectionChanged(Prop3D* p) {}
|
||||
const std::vector<Prop3D*>& getProp3Ds() const { return m_Prop3Ds; }
|
||||
|
||||
// Grid control
|
||||
void SetGridVisible(bool visible);
|
||||
@@ -83,15 +83,15 @@ protected:
|
||||
|
||||
void UpdateGrid();
|
||||
|
||||
// Internal puppet registration
|
||||
void RegisterPuppet(Puppet* p, bool isPart = false);
|
||||
void UnregisterPuppet(Puppet* p);
|
||||
// Internal Prop3D registration
|
||||
void RegisterProp3D(Prop3D* p, bool isPart = false);
|
||||
void UnregisterProp3D(Prop3D* p);
|
||||
void ObserveContext(ObjectsContext* ctx);
|
||||
|
||||
struct ViewportData *pv;
|
||||
Axis m_GridAxis;
|
||||
std::vector<Puppet*> m_Puppets;
|
||||
std::map<uLib::Object*, Puppet*> m_ObjectToPuppet;
|
||||
std::vector<Prop3D*> m_Prop3Ds;
|
||||
std::map<uLib::Object*, Prop3D*> m_ObjectToProp3D;
|
||||
};
|
||||
|
||||
} // namespace Vtk
|
||||
|
||||
Reference in New Issue
Block a user