remove redundant methods, implement assignment operator for widget

This commit is contained in:
ozantonkal
2013-07-03 22:27:09 +03:00
parent c8d2b5ff44
commit daa2a205a4
3 changed files with 19 additions and 13 deletions

View File

@@ -75,17 +75,6 @@ public:
return Affine3f(matrix_cv);
}
void setActorMapperInput(const vtkSmartPointer<vtkDataSet> &data)
{
vtkSmartPointer<vtkDataSetMapper> mapper = reinterpret_cast<vtkDataSetMapper*>(actor->GetMapper ());
if (mapper == 0)
{
mapper = vtkSmartPointer<vtkDataSetMapper>::New ();
actor->SetMapper(mapper);
}
mapper->SetInput (data);
}
protected:
vtkSmartPointer<vtkMatrix4x4> convertToVtkMatrix (const cv::Matx44f &m) const
@@ -115,6 +104,18 @@ temp_viz::Widget::Widget(const Widget &other)
impl_ = other.impl_;
}
temp_viz::Widget& temp_viz::Widget::operator =(const Widget &other)
{
if (this != &other)
impl_ = other.impl_;
return *this;
}
void temp_viz::Widget::copyTo(Widget &dst)
{
// TODO Deep copy the data if there is any
}
void temp_viz::Widget::setColor(const Color &color)
{
impl_->setColor(color);