Free Electron
Raster.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __surface_Raster_h__
8 #define __surface_Raster_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Raster RecordView
17 
18  @ingroup surface
19 *//***************************************************************************/
20 class FE_DL_EXPORT Raster: virtual public RecordView
21 {
22  public:
23  Functor<SpatialVector> minimum;
24  Functor<SpatialVector> maximum;
25  Functor<Vector4i> span;
27 
28  Raster(void) { setName("Raster"); }
29 virtual void addFunctors(void)
30  {
31  add(minimum, FE_SPEC("surf:min",
32  ""));
33  add(maximum, FE_SPEC("surf:max",
34  ""));
35  add(span, FE_SPEC("surf:span",
36  ""));
37  add(data, FE_SPEC("surf:data",
38  ""));
39  }
40 virtual void initializeRecord(void)
41  {
42  feLog("Raster::initializeRecord\n");
43 
44  set(minimum());
45  set(maximum());
46  set(span());
47  }
48 };
49 
50 } /* namespace ext */
51 } /* namespace fe */
52 
53 #endif /* __surface_Raster_h__ */
54 
55 
56 
57 
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Raster.h:29
kernel
Definition: namespace.dox:3
Bound accessor in a RecordView.
Definition: RecordView.h:147
Raster RecordView.
Definition: Raster.h:20
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Raster.h:40
Bindable collection of accessor Functors.
Definition: RecordView.h:106