38 #include <vtkRenderWindow.h>
83 mViews.push_back(wrapper->getView());
90 View* view = wrapper->getView().get();
102 View* view = wrapper->getView().get();
131 if(shouldUpdateActiveData(activeData->getActive<
Mesh>(), meshes))
132 activeData->setActive(meshes.front()->getUid());
133 if(shouldUpdateActiveData(activeData->getActive<
Image>(), images))
134 activeData->setActive(images.front()->getUid());
135 if(shouldUpdateActiveData(activeData->getActive<
TrackedStream>(), trackedStreams))
136 activeData->setActive(trackedStreams.front()->getUid());
138 View* view =
static_cast<View*
>(this->sender());
144 bool ViewGroup::shouldUpdateActiveData(T activeData, std::vector<T> datas)
const
146 bool activeDataExistsInGroup = std::find(datas.begin(), datas.end(), activeData) != datas.end();
147 return !activeDataExistsInGroup && !datas.empty();
177 for (
unsigned j = 0; j <
mViews.size(); ++j)
ViewGroupDataPtr mViewGroupData
CameraStylePtr mCameraStyle
std::vector< ViewPtr > mViews
boost::shared_ptr< class ViewWrapper > ViewWrapperPtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
Container for data shared between all members of a view group.
A data set for video streams (2D/3D).
void mouseClickInViewGroupSlot()
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)
virtual QString getUid()=0
Get a views unique id.
std::vector< ViewPtr > getViews() const
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)