API Documentation
Loading...
Searching...
No Matches
DesignObjectWidgetInterface.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/QTDesignObject.h>
3#include <NDEVR/Pointer.h>
4namespace NDEVR
5{
6 class DesignObjectInterface;
8 {
9 public:
12 void clearTargets();
13 void setTarget(const DynamicPointer<QTDesignObject>& object);
14 void setTargets(const Buffer<DynamicPointer<QTDesignObject>>& objects);
15 void setTargetID(const UUID& object);
16 void setTargetIDs(const Buffer<UUID>& objects);
17 virtual void removeTarget(const DynamicPointer<QTDesignObject>& object);
18 virtual void addTarget(const DynamicPointer<QTDesignObject>& object);
19 virtual Bounds<3, fltp08> bounds() const;
20 virtual void onTargetUpdated(UUID)
21 {}
22 Buffer<UUID> targetIDs() const;
23 Buffer<Model> models() const;
24 QTModelManager* manager() const;
25 protected:
28 };
29 class DesignObjectInterface : public QObject
30 {
31 Q_OBJECT
32 public:
34 virtual void removeTarget(const DynamicPointer<QTDesignObject>& object);
35 virtual void addTarget(const DynamicPointer<QTDesignObject>& object);
36 virtual Bounds<3, fltp08> bounds() const;
37 Buffer<UUID> targetIDs() const { return m_targets.keys(); }
38 Buffer<Model> models() const;
39 QTModelManager* manager() const;
41 protected slots:
47 protected:
50 };
51}
#define NDEVR_API
Definition DLLInfo.h:67
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:57
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition DesignObjectWidgetInterface.h:30
Buffer< Model > models() const
Definition DesignObjectWidgetInterface.cpp:46
virtual void removeTarget(const DynamicPointer< QTDesignObject > &object)
Definition DesignObjectWidgetInterface.cpp:10
Dictionary< UUID, DynamicPointer< QTDesignObject > > m_targets
Definition DesignObjectWidgetInterface.h:48
void onTargetDeletedSlot(UUID id)
Definition DesignObjectWidgetInterface.cpp:64
QTModelManager * manager() const
Definition DesignObjectWidgetInterface.cpp:56
Buffer< UUID > targetIDs() const
Definition DesignObjectWidgetInterface.h:37
void onTargetUpdatedSlot(UUID id)
Definition DesignObjectWidgetInterface.h:42
const Dictionary< UUID, DynamicPointer< QTDesignObject > > & targets() const
Definition DesignObjectWidgetInterface.h:40
virtual void addTarget(const DynamicPointer< QTDesignObject > &object)
Definition DesignObjectWidgetInterface.cpp:20
virtual Bounds< 3, fltp08 > bounds() const
Definition DesignObjectWidgetInterface.cpp:31
DesignObjectWidgetInterface * m_widget_interface
Definition DesignObjectWidgetInterface.h:49
DesignObjectInterface(DesignObjectWidgetInterface *widget_interface)
Definition DesignObjectWidgetInterface.cpp:7
Definition DesignObjectWidgetInterface.h:8
DesignObjectInterface * m_interface
Definition DesignObjectWidgetInterface.h:26
virtual void onTargetUpdated(UUID)
Definition DesignObjectWidgetInterface.h:20
Definition Dictionary.h:48
Definition Pointer.hpp:303
Definition QTModelManager.h:94
Definition UUID.h:66
Definition ACIColor.h:37