Free Electron
SplatterI.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 __moa_SplatterI_h__
8 #define __moa_SplatterI_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /// @brief Interface to attach a 2D splat
16 class FE_DL_EXPORT SplatterI
17  : virtual public Component,
18  public CastableAs<SplatterI>
19 {
20  public:
21  SplatterI(void) { }
22  /** Write an image file for the splat */
23 virtual void image(void) = 0;
24 };
25 
26 
27 /// @brief Interface to attach a SurfaceI
28 class FE_DL_EXPORT GroundI
29  : virtual public Component,
30  public CastableAs<GroundI>
31 {
32  public:
33  GroundI(void) { }
34 virtual void setSurface(sp<SurfaceI> a_spSurface) = 0;
35 virtual void setTransform(const SpatialTransform &a_xform) = 0;
36 };
37 
38 } /* namespace ext */
39 } /* namespace fe */
40 
41 #endif /* __moa_SplatterI_h__ */
42 
Interface to attach a 2D splat.
Definition: SplatterI.h:16
Interface to attach a SurfaceI.
Definition: SplatterI.h:28
kernel
Definition: namespace.dox:3
Base for all interfacable components.
Definition: Component.h:20
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192