Exemplo n.º 1
0
void MainWindowActions::togglePointPickerActionSlot()
{
	ViewGroupDataPtr data = viewService()->getGroup(0);
	ViewGroupData::Options options = data->getOptions();
	options.mShowPointPickerProbe = !options.mShowPointPickerProbe;
	data->setOptions(options);
}
Exemplo n.º 2
0
void ViewWrapper2D::setViewGroup(ViewGroupDataPtr group)
{
	ViewWrapper::setViewGroup(group);

	mZoom2D->setGroupData(group);
	connect(group.get(), SIGNAL(optionsChanged()), this, SLOT(optionChangedSlot()));
	this->optionChangedSlot();
}
void ViewGroupPropertiesWidget::setupUI()
{
	if (mWidget) // already created
		return;

	ViewGroupDataPtr viewGroup = this->getViewGroup();
	StringListSelectWidget* slices3D = new StringListSelectWidget(this, viewGroup->getSliceDefinitionProperty());
//	slices3D->showLabel(false);
//	slices3D->setIcon(QIcon(":/icons/open_icon_library/eye.png.png"));
	mLayout->addWidget(slices3D);

	mLayout->addWidget(new QLabel("view group props"));
	mLayout->addStretch();

	connect(mSelector.get(), &DoublePropertyBase::changed, this, &ViewGroupPropertiesWidget::onSelectorChanged);

	this->onSelectorChanged();
}
Exemplo n.º 4
0
void ViewWrapper3D::setViewGroup(ViewGroupDataPtr group)
{
	ViewWrapper::setViewGroup(group);

	connect(group.get(), SIGNAL(initialized()), this, SLOT(resetCameraActionSlot()));
	connect(group.get(), SIGNAL(optionsChanged()), this, SLOT(optionChangedSlot()));
	mView->getRenderer()->SetActiveCamera(mGroupData->getCamera3D()->getCamera());

	// Set eye angle after camera change. Maybe create a cameraChangedSlot instead
	this->setStereoEyeAngle(settings()->value("View3D/eyeAngle").toDouble());
	this->optionChangedSlot();

}