DataPartVisibility.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
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 "CeeUnstructGrid/Base.h"
16 
17 #include "CeeCore/RefCountedObject.h"
18 
19 #include <vector>
20 
21 namespace cee {
22 namespace ug {
23 
24 
25 //==================================================================================================
26 //
27 //
28 //
29 //==================================================================================================
30 class CEE_UG_EXPORT DataPartVisibility : public RefCountedObject
31 {
32 public:
34  virtual ~DataPartVisibility();
35 
36  size_t count() const;
37  bool value(size_t index) const;
38  const bool* rawValuePointer() const;
39  bool* rawValuePointer();
40 
41  void resize(size_t count);
42  void setValue(size_t index, bool visible);
43 
44  void setValues(const std::vector<bool>& values);
45  void setValues(const bool values[], size_t elementCount);
46 
47 private:
48  CEE_PRIVATE_F(DataResultVisibility);
49  CEE_PRIVATE_IMPL(DataPartVisibility);
50  CEE_DISALLOW_COPY_AND_ASSIGN(DataPartVisibility);
51 };
52 
53 
54 } // namespace ug
55 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Visibility result for all parts in the geometry for one data state.
Definition: DataResultVisibility.h:27
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
Per element visibility result for a part.
Definition: DataPartVisibility.h:30