6#include <QtGui/QPainter>
152 bool m_isBackgroundBufferActive;
153 bool m_isDoubleBufferActive;
158 bool m_isGridVisible;
160 double m_minGridDistance;
161 bool m_isDistanceMeasureToolActive;
162 bool m_isPointMeasureToolActive;
164 int m_calibrationLayerIndex;
165 int m_toolsLayerIndex;
177 if (m_isGridVisible != state){
178 m_isGridVisible = state;
186 if (m_minGridDistance != gridDistance){
187 m_minGridDistance = gridDistance;
188 if (m_isGridVisible){
197 if (m_isGridInMm != state){
198 m_isGridInMm = state;
206 return m_calibrationLayer;
218 return m_isGridVisible;
224 return m_minGridDistance;
236 return m_isDistanceMeasureToolActive;
243 m_isPointMeasureToolActive =
false;
246 if (m_isDistanceMeasureToolActive != state){
247 m_isDistanceMeasureToolActive = state;
256 return m_isPointMeasureToolActive;
263 m_isDistanceMeasureToolActive =
false;
266 if (m_isPointMeasureToolActive != state){
267 m_isPointMeasureToolActive = state;
278 return m_calibrationPtr;
Simple rectangle with integer bounds.
Interface for 2D calibration and coordinate transformation with unit information.
Common interface for an object, which delivers a 2D-calibration.
Set of change flags (its IDs).
Pointer wrapper providing activatable deleting pointed object during destruction.
Abstract base class for all calibrated view.
void SetBackgroundBufferActive(bool state=true)
virtual const i2d::ICalibration2d * GetCalibration() const override
Get access to transformation object, which transforms a local logical coordinate system to global one...
iview::CDrawBuffer & GetDoubleBuffer()
virtual void UpdateAllShapes(const istd::IChangeable::ChangeSet &changeSet) override
virtual double GetMinGridDistance() const override
Get minimal distance between grid lines.
const iview::IViewLayer & GetToolsLayer() const
Get default tools layer.
virtual void DrawToContext(QPaintDevice &nativeContext, QPainter &context, const i2d::CRect &invalidatedBox)
virtual void SetPointMeasureToolActive(bool state=true)
Set point measure tool active.
void SetDefaultColorSchema(const IColorSchema *colorSchemaPtr, bool releaseFlag=false)
Set default color schema object.
virtual const iview::IColorSchema & GetDefaultColorSchema() const override
const iview::CDrawBuffer & GetDoubleBuffer() const
virtual void ConnectToolShape(iview::IShape *shapePtr)
Connect visualisation shape for ruler object.
virtual void DrawBuffers(QPaintDevice &nativeContext, const i2d::CRect &clipRect)
void SetDisplayCalibration(const i2d::ICalibration2d *calibrationPtr)
Set calibration using to display logical coordinates.
virtual void ConnectCalibrationShape(iview::IShape *shapePtr)
Connect visualisation shape for calibration object.
virtual void InsertDefaultLayers() override
bool IsBackgroundBufferActive() const
void SetDoubleBufferActive(bool state=true)
void CheckResize()
Check if size size was changed and invalidation and OnResize() should be done.
virtual void SetGridVisible(bool state=true)
Set grid visibility state.
virtual int InsertLayer(iview::IViewLayer *layerPtr, int index=-1, int layerType=IViewLayer::LT_NONE) override
Insert layer to view.
const iview::IViewLayer & GetCalibrationLayer() const
Get default calibration layer.
bool IsDoubleBufferActive() const
virtual void OnResize()
Called if found that display area was resized.
virtual void InvalidateBackground()
Invalidate whole background buffer.
virtual bool IsPointMeasureToolActive() const override
Check if the point measuring is active.
virtual void SetDistanceMeasureToolActive(bool state=true)
Set distance measure tool active.
void SetGridInMm(bool state=true)
Set if grid should be shown in milimeter.
virtual bool IsGridInMm() const override
Check if grid should be shown in milimeter.
virtual void RemoveLayer(int index) override
Remove layer from view.
virtual bool IsDistanceMeasureToolActive() const override
Check if the distance measuring is active.
virtual bool IsGridVisible() const override
Check if grid is visible.
iview::CDrawBuffer & GetBackgroundBuffer()
void SetMinGridDistance(double gridDistance)
Set minimal grid size.
const iview::CDrawBuffer & GetBackgroundBuffer() const
virtual void SetBackgroundBufferValid(bool state=true)
Set validate flag of background buffer.
virtual void InvalidateBackground()
Invalidate whole background buffer.
Standard implementation of view layer.
Defines set of standard pens, brushes and simple management of unions.
Common interface for all display console shapes.
Interface for a logical layer in the console view.
@ LT_NONE
Layer type is not set.
Common interface for all objects which allow access to calibration info.
In this library is defined 2D view concept and standard visualisation objects.