示例#1
0
void ViewWrapper2D::setViewGroup(ViewGroupDataPtr group)
{
	ViewWrapper::setViewGroup(group);

	mZoom2D->setGroupData(group);
	connect(group.get(), SIGNAL(optionsChanged()), this, SLOT(optionChangedSlot()));
	this->optionChangedSlot();
}
示例#2
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();

}