OverlayItem.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Visualization
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeVisualization/Base.h"
16 #include "CeeCore/RefCountedObject.h"
17 
18 namespace cvf
19 {
20  class OverlayItem;
21 }
22 
23 namespace cee {
24 namespace vis {
25 
26 //==================================================================================================
27 //
28 //
29 //
30 //==================================================================================================
31 class CEE_VIS_EXPORT OverlayItem : public RefCountedObject
32 {
33 public:
36  {
43  BOTTOM_CENTER
44  };
45 
50  {
53  ABSOLUTE_POSITION
54  };
55 
56 public:
57  virtual unsigned int width() const = 0;
58  virtual unsigned int height() const = 0;
59  virtual void setSize(unsigned int width, unsigned int height) = 0;
60 
61  virtual int priority() const = 0;
62  virtual void setPriority(int priority) = 0;
63 
64  bool visible() const;
65  void setVisible(bool visible);
66 
67  int absolutePositionX() const;
68  int absolutePositionY() const;
69  void setAbsolutePosition(int x, int y);
70 
71 
72 private:
73  virtual cvf::OverlayItem* internal_cvfOverlayItem() = 0;
74 
75 private:
76  CEE_PRIVATE_F(Overlay);
77 };
78 
79 } // namespace vis
80 } // namespace cee
LayoutDirection
Enumerator for horizontal or vertical orientation of layout items. Describes which direction addition...
Definition: OverlayItem.h:49
Definition: LogEvent.h:19
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Top left corner.
Definition: OverlayItem.h:37
Horizontal layout direction.
Definition: OverlayItem.h:51
LayoutCorner
Enumerator for the different locations/"corners" of the view.
Definition: OverlayItem.h:35
Abstract interface for overlay items.
Definition: OverlayItem.h:31
Vertical layout direction.
Definition: OverlayItem.h:52
Center of the view.
Definition: OverlayItem.h:41
Bottom left corner.
Definition: OverlayItem.h:39
Top right corner.
Definition: OverlayItem.h:38
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
Bottom right corner.
Definition: OverlayItem.h:40
Top centered.
Definition: OverlayItem.h:42
Overlay items are visual item presented overlaying the models in the View, for instance a color legen...
Definition: Overlay.h:28