MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoView2D/View2DDraw.h
Go to the documentation of this file.
00001 #ifndef __View2DDraw_H
00002 #define __View2DDraw_H
00003 //----------------------------------------------------------------------------------
00004 // **InsertLicense** code
00005 //----------------------------------------------------------------------------------
00007 
00013 //----------------------------------------------------------------------------------
00014 
00015 #ifndef __SoView2DSystem_H
00016 #include "SoView2DSystem.h"
00017 #endif
00018 #ifndef __mlLinearAlgebra_H
00019 #include "mlLinearAlgebra.h"
00020 #endif
00021 #include <vector>
00022 
00024 class SOVIEW2D_API View2DDraw {
00025 public:
00028   static void drawCircle(ml::vec2 c, double r, int n = 50, bool fill = false);
00029 
00033   static void drawEllipse(ml::vec2 c, ml::vec2 r1, ml::vec2 r2, int n = 50, bool fill = false);
00034 
00041   static void drawEllipseBand(ml::vec2 c, ml::vec2 r1, ml::vec2 r2, double b1, double b2, int n = 50, bool fill = false);
00042 
00057   static void drawHalfEllipse(ml::vec2 c, ml::vec2 r1, ml::vec2 r2, double b1, double b2, int n = 50, bool fill = false,  bool stippled = false);
00058 
00061   static void drawRing(ml::vec2 c, double r1, double r2, int n = 50);
00062 
00065   static void drawCross(ml::vec2 c, double r);
00066 
00067 protected:
00069   static ml::vec2 vecCosSin(int i, int n = 50);
00070 };
00071 
00072 #endif