38 #include <vtkRenderWindow.h>
79 mViews.push_back(wrapper->getView());
86 View* view = wrapper->getView().get();
89 connect(view, SIGNAL(mousePress(
int,
int, Qt::MouseButtons)),
this, SLOT(mouseClickInViewGroupSlot()));
90 connect(view, SIGNAL(focusChange(
bool, Qt::FocusReason)),
this, SLOT(mouseClickInViewGroupSlot()));
98 View* view = wrapper->getView().get();
101 disconnect(view, SIGNAL(mousePress(
int,
int, Qt::MouseButtons)),
this, SLOT(mouseClickInViewGroupSlot()));
102 disconnect(view, SIGNAL(focusChange(
bool, Qt::FocusReason)),
this, SLOT(mouseClickInViewGroupSlot()));
128 void ViewGroup::mouseClickInViewGroupSlot()
133 if (!std::count(images.begin(), images.end(),
mBackend->getPatientService()->getActiveImage()))
135 mBackend->getPatientService()->setActiveImage(images.front());
139 View* view =
static_cast<View*
>(this->sender());
172 for (
unsigned j = 0; j <
mViews.size(); ++j)
ViewGroupDataPtr mViewGroupData
CameraStylePtr mCameraStyle
std::vector< ViewPtr > mViews
boost::shared_ptr< class ViewWrapper > ViewWrapperPtr
Container for data shared between all members of a view group.
bool contains3DView() const
static DataViewProperties createFull()
std::vector< ViewWrapperPtr > mViewWrappers
virtual void parseXml(QDomNode dataNode)
load internal state info from dataNode
ViewWrapperPtr getViewWrapperFromViewUid(QString viewUid)
std::vector< ViewPtr > getViews() const
void syncOrientationMode(SyncedValuePtr val)
SyncedValuePtr mActiveView
boost::shared_ptr< class CoreServices > CoreServicesPtr
boost::shared_ptr< class SyncedValue > SyncedValuePtr
ViewGroup(CoreServicesPtr backend)
void addView(ViewWrapperPtr wrapper)
virtual void addXml(QDomNode &dataNode)
store internal state info in dataNode
void initializeActiveView(SyncedValuePtr val)