ContourLines.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2019, 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 "CeeUnstructGrid/Base.h"
16 
17 #include "CeeCore/RefCountedObject.h"
18 #include "CeeCore/Color3f.h"
19 #include "CeeCore/Str.h"
20 
21 
22 namespace cee {
23 namespace ug {
24 
25 //==================================================================================================
26 //
27 //
28 //
29 //==================================================================================================
30 class CEE_UG_EXPORT ContourLines : public RefCountedObject
31 {
32 public:
34  enum ColorMode
35  {
37  COLOR_BY_SCALAR
38  };
39 
40 public:
41  virtual ~ContourLines();
42 
43  size_t levelCount() const;
44  void setLevelCount(size_t count);
45 
46  unsigned int lineWidth() const;
47  void setLineWidth(unsigned int width);
48 
49  ColorMode colorMode() const;
50  void setColorMode(ColorMode mode);
51 
52  cee::Color3f singleColor() const;
53  void setSingleColor(const Color3f& color);
54 
55 private:
56  ContourLines();
57  CEE_PRIVATE_F(ScalarSettings);
58  CEE_PRIVATE_IMPL(ContourLines);
59  CEE_DISALLOW_COPY_AND_ASSIGN(ContourLines);
60 };
61 
62 } // namespace ug
63 } // namespace cee
64 
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
ColorMode
Color scheme used for coloring the contour lines.
Definition: ContourLines.h:34
Single color.
Definition: ContourLines.h:36
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
Class for storing an RGB color triplet.
Definition: Color3f.h:25
Controlling how the contour lines are drawn.
Definition: ContourLines.h:30
Settings for a specific scalar result.
Definition: ScalarSettings.h:34