Free Electron
DrawShape.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 __intelligence_DrawShape_h__
8 #define __intelligence_DrawShape_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Draw shapes conveniently
16 
17  @ingroup intelligence
18 *//***************************************************************************/
19 class FE_DL_EXPORT DrawShape
20 {
21  protected:
22  void draw(sp<DrawI> spDrawI,Record shape,const Color& color);
23  void drawSphere(sp<DrawI> spDrawI,const SpatialVector& location,
24  F32 radius,const Color& color);
25  void drawCircleXY(sp<DrawI> spDrawI,const SpatialVector& location,
26  F32 radius,const Color& color);
27 
28  private:
29  Cylinder m_cylinderRV;
30 
31  SpatialTransform m_transform;
32 };
33 
34 } /* namespace ext */
35 } /* namespace fe */
36 
37 #endif /* __intelligence_DrawShape_h__ */
kernel
Definition: namespace.dox:3
Cylinder RecordView.
Definition: Cylinder.h:27
Special vector for color (RGBA)
Definition: Color.h:21
Draw shapes conveniently.
Definition: DrawShape.h:19
Reference to an instance of a Layout.
Definition: RecordSB.h:35