Free Electron
Disk.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 __shape_Disk_h__
8 #define __shape_Disk_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Disk RecordView
17 
18  @ingroup shape
19 
20  Filled circle in 3D space.
21 *//***************************************************************************/
22 class FE_DL_EXPORT Disk: public Sphere
23 {
24  public:
25  Functor<SpatialVector> span;
26 
27  Disk(void) { setName("Disk"); }
28 virtual void addFunctors(void)
29  {
31 
32  add(span, FE_USE("bnd:span"));
33  }
34 virtual void initializeRecord(void)
35  {
37 
38  set(span(),0.0f,0.0f,1.0f);
39  }
40 };
41 
42 } /* namespace ext */
43 } /* namespace fe */
44 
45 #endif /* __shape_Disk_h__ */
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Sphere.h:36
kernel
Definition: namespace.dox:3
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Sphere.h:42
Disk RecordView.
Definition: Disk.h:22
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Disk.h:28
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Disk.h:34
Sphere RecordView.
Definition: Sphere.h:28