fixed vtk containerbox handler
This commit is contained in:
@@ -36,9 +36,16 @@ int main() {
|
||||
BEGIN_TESTING(vtk ContainerBox Test);
|
||||
|
||||
ContainerBox box;
|
||||
box.SetSize(Vector3f(2, 3, 4));
|
||||
box.SetPosition(Vector3f(1, 2, 3));
|
||||
box.Scale(Vector3f(1,5,1));
|
||||
box.SetPosition(Vector3f(0,1,0));
|
||||
Vtk::vtkContainerBox v_box(&box);
|
||||
v_box.SetRepresentation(Vtk::Puppet::Surface);
|
||||
v_box.SetOpacity(0.5);
|
||||
v_box.SetSelectable(true);
|
||||
|
||||
box.findOrAddSignal(&ContainerBox::Updated)->connect([&box](){
|
||||
std::cout << "box updated: " << box.GetWorldPoint(HPoint3f(1,1,1)) << std::endl;
|
||||
});
|
||||
|
||||
if (std::getenv("CTEST_PROJECT_NAME") == nullptr) {
|
||||
Vtk::Viewer v_viewer;
|
||||
|
||||
Reference in New Issue
Block a user