www.cemf.ir
selectBox.hpp
Go to the documentation of this file.
1 /*------------------------------- phasicFlow ---------------------------------
2  O C enter of
3  O O E ngineering and
4  O O M ultiscale modeling of
5  OOOOOOO F luid flow
6 ------------------------------------------------------------------------------
7  Copyright (C): www.cemf.ir
8  email: hamid.r.norouzi AT gmail.com
9 ------------------------------------------------------------------------------
10 Licence:
11  This file is part of phasicFlow code. It is a free software for simulating
12  granular and multiphase flows. You can redistribute it and/or modify it under
13  the terms of GNU General Public License v3 or any other later versions.
14 
15  phasicFlow is distributed to help others in their research in the field of
16  granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 -----------------------------------------------------------------------------*/
20 
21 
22 #ifndef __selectBox_hpp__
23 #define __selectBox_hpp__
24 
25 #include "pStructSelector.hpp"
26 #include "pointStructure.hpp"
27 #include "box.hpp"
28 
29 
30 namespace pFlow
31 {
32 
33 class dictionary;
34 
35 class selectBox
36 :
37  public pStructSelector
38 {
39 protected:
40 
42 
44 
45  void selectAllPointsInBox();
46 
47 public:
48 
49  // - type info
50  TypeInfo("selectBox");
51 
52 
53  selectBox(const pointStructure& pStruct, const dictionary& dict);
54 
55  add_vCtor
56  (
58  selectBox,
60  );
61 
62  virtual ~selectBox() = default;
63 
65 
66  const uint32Vector& selectedPoints()const override
67  {
68  return selectedPoints_;
69  }
70 
72  {
73  return selectedPoints_;
74  }
75 
76 };
77 
78 } // pFlow
79 
80 
81 #endif //__pStructSelector_hpp__
pFlow::selectBox::box_
box box_
Definition: selectBox.hpp:43
pFlow::selectBox
Definition: selectBox.hpp:35
box.hpp
pFlow
Definition: demGeometry.hpp:27
pStructSelector.hpp
pFlow::selectBox::TypeInfo
TypeInfo("selectBox")
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::selectBox::selectBox
selectBox(const pointStructure &pStruct, const dictionary &dict)
Definition: selectBox.cpp:43
pFlow::pStructSelector::pStruct
const pointStructure & pStruct() const
Definition: pStructSelector.cpp:45
pFlow::selectBox::~selectBox
virtual ~selectBox()=default
pFlow::pStructSelector
Definition: pStructSelector.hpp:36
pFlow::box
Definition: box.hpp:32
pFlow::selectBox::selectedPoints_
uint32Vector selectedPoints_
Definition: selectBox.hpp:41
pFlow::selectBox::add_vCtor
add_vCtor(pStructSelector, selectBox, dictionary)
pFlow::Vector< uint32 >
pointStructure.hpp
pFlow::selectBox::selectedPoints
uint32Vector & selectedPoints() override
Definition: selectBox.hpp:71
pFlow::selectBox::selectedPoints
const uint32Vector & selectedPoints() const override
Definition: selectBox.hpp:66
pFlow::selectBox::selectAllPointsInBox
void selectAllPointsInBox()
Definition: selectBox.cpp:25
pFlow::dictionary
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
Definition: dictionary.hpp:67