Free Electron
SurfacePoint.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_SurfacePoint_h__
8 #define __surface_SurfacePoint_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief SurfacePoint RecordView
17 
18  @ingroup surface
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfacePoint:
21  virtual public RecordView,
22  public CastableAs<SurfacePoint>
23 {
24  public:
28  Functor<Color> color;
29 
30  SurfacePoint(void) { setName("SurfacePoint"); }
31 virtual void addFunctors(void)
32  {
33  add(up, FE_SPEC("spc:up",
34  "Orientation up from direction"));
35  add(at, FE_USE("spc:at"));
36  add(uvw, FE_SPEC("surf:uvw",
37  "Texture Coordinate"));
38  add(color, FE_SPEC("surf:color",
39  "RGB Color"));
40  }
41 virtual void initializeRecord(void)
42  {
43  }
44 };
45 
46 } /* namespace ext */
47 } /* namespace fe */
48 
49 #endif /* __surface_SurfacePoint_h__ */
50 
51 
52 
53 
kernel
Definition: namespace.dox:3
Bound accessor in a RecordView.
Definition: RecordView.h:147
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: SurfacePoint.h:41
SurfacePoint RecordView.
Definition: SurfacePoint.h:20
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: SurfacePoint.h:31
Bindable collection of accessor Functors.
Definition: RecordView.h:106
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192