Free Electron
SurfaceFile.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 __osg_SurfaceFile_h__
8 #define __osg_SurfaceFile_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief SurfaceFile RecordView
17 
18  @ingroup osg
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfaceFile:
21  virtual public RecordView,
22  public CastableAs<SurfaceFile>
23 {
24  public:
25  Functor<String> filename;
26 
27  SurfaceFile(void) { setName("SurfaceFile"); }
28 virtual void addFunctors(void)
29  {
30  add(filename, FE_SPEC("surf:filename",
31  "name of OpenSceneGraph compatible file"));
32  }
33 virtual void initializeRecord(void)
34  {
36  }
37 };
38 
39 } /* namespace ext */
40 } /* namespace fe */
41 
42 #endif /* __osg_SurfaceFile_h__ */
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: SurfaceFile.h:28
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: SurfaceFile.h:33
SurfaceFile RecordView.
Definition: SurfaceFile.h:20
Bindable collection of accessor Functors.
Definition: RecordView.h:106
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: RecordView.h:571
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192