vtkContourWidget
vtk吧
全部回复
仅看楼主
level 3
zero9079 楼主
vtkSmartPointer<vtkContourWidget> distanceWidget =vtkSmartPointer<vtkContourWidget>::New();
distanceWidget->SetInteractor(renderWindowInteractor);
distanceWidget->CreateDefaultRepresentation();
vtkSmartPointer<vtkOrientedGlyphContourRepresentation> contourRepresentation =
vtkSmartPointer<vtkOrientedGlyphContourRepresentation>::New();
contourRepresentation->GetLinesProperty()->SetColor(1, 0, 0);//设置为红色
distanceWidget->SetRepresentation(contourRepresentation);
distanceWidget->EnabledOn();
renderWindowInteractor->Initialize();
renderWindow->Render();
renderWindowInteractor->Start();
2016年11月22日 12点11分 1
level 3
zero9079 楼主
2016年11月22日 12点11分 2
图片是DICOM格式的,不知道为什么线条显示不到图片前面,一直在后面,求教大神~
2016年11月22日 12点11分
解决了没
2016年11月24日 01点11分
没有[泪][泪]怎么弄啊~
2016年11月24日 13点11分
@zz187260382 vtkOrientedGlyphContourRepresentation类里面的那个AlwaysOnTopOn()没用啊~~~
2016年11月24日 13点11分
level 10
vtkOrientedGlyphFocalPlaneContourRepresentation你可以试试这个属性
2016年11月23日 11点11分 3
这个类应该怎么用呢?没太懂~[啊]~
2016年11月24日 13点11分
@zero9079 替换这个类啊vtkOrientedGlyphContourRepresentation
2016年11月25日 01点11分
level 1
实现了么?
2017年02月23日 12点02分 4
1