implemented actor representation methods in viz3d
This commit is contained in:
parent
cf36b8f817
commit
4f416352e1
@ -57,6 +57,10 @@ namespace cv
|
|||||||
|
|
||||||
void setRenderingProperty(int property, double value, const String &id);
|
void setRenderingProperty(int property, double value, const String &id);
|
||||||
double getRenderingProperty(int property, const String &id);
|
double getRenderingProperty(int property, const String &id);
|
||||||
|
|
||||||
|
void setRepresentationToSurface();
|
||||||
|
void setRepresentationToWireframe();
|
||||||
|
void setRepresentationToPoints();
|
||||||
private:
|
private:
|
||||||
|
|
||||||
struct VizImpl;
|
struct VizImpl;
|
||||||
|
@ -76,3 +76,7 @@ cv::String cv::viz::Viz3d::getWindowName() const { return impl_->getWindowName()
|
|||||||
|
|
||||||
void cv::viz::Viz3d::setRenderingProperty(int property, double value, const String &id) { getWidget(id).setRenderingProperty(property, value); }
|
void cv::viz::Viz3d::setRenderingProperty(int property, double value, const String &id) { getWidget(id).setRenderingProperty(property, value); }
|
||||||
double cv::viz::Viz3d::getRenderingProperty(int property, const String &id) { return getWidget(id).getRenderingProperty(property); }
|
double cv::viz::Viz3d::getRenderingProperty(int property, const String &id) { return getWidget(id).getRenderingProperty(property); }
|
||||||
|
|
||||||
|
void cv::viz::Viz3d::setRepresentationToSurface() { impl_->setRepresentationToSurface(); }
|
||||||
|
void cv::viz::Viz3d::setRepresentationToWireframe() { impl_->setRepresentationToWireframe(); }
|
||||||
|
void cv::viz::Viz3d::setRepresentationToPoints() { impl_->setRepresentationToPoints(); }
|
||||||
|
@ -423,7 +423,7 @@ void cv::viz::Viz3d::VizImpl::resetCameraViewpoint (const std::string &id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
void cv::viz::Viz3d::VizImpl::setRepresentationToSurfaceForAllActors ()
|
void cv::viz::Viz3d::VizImpl::setRepresentationToSurface()
|
||||||
{
|
{
|
||||||
vtkActorCollection * actors = renderer_->GetActors();
|
vtkActorCollection * actors = renderer_->GetActors();
|
||||||
actors->InitTraversal();
|
actors->InitTraversal();
|
||||||
@ -433,7 +433,7 @@ void cv::viz::Viz3d::VizImpl::setRepresentationToSurfaceForAllActors ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
void cv::viz::Viz3d::VizImpl::setRepresentationToPointsForAllActors ()
|
void cv::viz::Viz3d::VizImpl::setRepresentationToPoints()
|
||||||
{
|
{
|
||||||
vtkActorCollection * actors = renderer_->GetActors();
|
vtkActorCollection * actors = renderer_->GetActors();
|
||||||
actors->InitTraversal();
|
actors->InitTraversal();
|
||||||
@ -443,7 +443,7 @@ void cv::viz::Viz3d::VizImpl::setRepresentationToPointsForAllActors ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
void cv::viz::Viz3d::VizImpl::setRepresentationToWireframeForAllActors ()
|
void cv::viz::Viz3d::VizImpl::setRepresentationToWireframe()
|
||||||
{
|
{
|
||||||
vtkActorCollection * actors = renderer_->GetActors();
|
vtkActorCollection * actors = renderer_->GetActors();
|
||||||
actors->InitTraversal();
|
actors->InitTraversal();
|
||||||
|
@ -39,16 +39,9 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// to implement in Viz3d with shorter name
|
void setRepresentationToSurface();
|
||||||
void setRepresentationToSurfaceForAllActors();
|
void setRepresentationToPoints();
|
||||||
void setRepresentationToPointsForAllActors();
|
void setRepresentationToWireframe();
|
||||||
void setRepresentationToWireframeForAllActors();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ////////////////////////////////////////////////////////////////////////////////////
|
// ////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user