OverlayAxisCross.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 "CeeVisualization/OverlayItem.h"
17 
18 namespace cee {
19 class Color3f;
20 class Str;
21 
22 namespace vis {
23 class Camera;
24 class Font;
25 
26 //==================================================================================================
27 //
28 //
29 //
30 //==================================================================================================
31 class CEE_VIS_EXPORT OverlayAxisCross : public OverlayItem
32 {
33 public:
34  OverlayAxisCross(Camera* camera, Font* font);
35  virtual ~OverlayAxisCross();
36 
37  virtual unsigned int width() const;
38  virtual unsigned int height() const;
39  void setSize(unsigned int width, unsigned int height);
40 
41  virtual int priority() const;
42  virtual void setPriority(int priority);
43 
44  Color3f textColor() const;
45  void setTextColor(const Color3f& color);
46 
47  Str xAxisLabel() const;
48  Str yAxisLabel() const;
49  Str zAxisLabel() const;
50  void setAxisLabels(const Str& xLabel, const Str& yLabel, const Str& zlabel);
51 
52  bool alwaysShowLabels() const;
53  void setAlwaysShowLabels(bool alwaysShow);
54 
55 private:
56  virtual cvf::OverlayItem* internal_cvfOverlayItem();
57 
58 private:
59  CEE_PRIVATE_IMPL(OverlayAxisCross);
60  CEE_DISALLOW_COPY_AND_ASSIGN(OverlayAxisCross);
61 };
62 
63 } // namespace vis
64 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
The camera configuration of a view.
Definition: Camera.h:33
A view overlay item showing an axis cross synchronized with current camera settings.
Definition: OverlayAxisCross.h:31
A general unicode based string class.
Definition: Str.h:28
Abstract interface for overlay items.
Definition: OverlayItem.h:31
Class for storing an RGB color triplet.
Definition: Color3f.h:25
A font used for text drawing.
Definition: Font.h:30