Go to the documentation of this file.
6#ifndef iview_TVisualObjects_included
7#define iview_TVisualObjects_included
21template<
class Object,
class Shape>
30 std::unique_ptr<PositionModel>
model;
34template<
class Object,
class Shape>
37 model = std::make_unique<PositionModel>();
39 BaseClass::SetEditablePosition(editable);
40 BaseClass::SetEditableRadius(editable);
42 model->AttachObserver(
this);
48template<
class Object,
class BitmapShape = iview::CImageShape>
55 std::unique_ptr<ImageModel>
model;
56 std::unique_ptr<BitmapShape>
shape;
60template<
class Object,
class BitmapShape>
64 if (imagePtr !=
nullptr){
65 model->SetBaseObject(*imagePtr);
68 shape.SetPtr(
new BitmapShape);
70 model->AttachObserver(shape.get());
This model wrapper provides a simple connection between a concrete istd::IChangeable implementation a...
In this library is defined 2D view concept and standard visualisation objects.
std::unique_ptr< BitmapShape > shape
std::unique_ptr< ImageModel > model
imod::TModelWrap< Object > ImageModel
TBitmapVisualObject(const Object *imagePtr=nullptr)
imod::TModelWrap< Object > PositionModel
TVisualObject(bool editable=false)
std::unique_ptr< PositionModel > model
© Witold Gantzke and Kirill Lepskiy