|
Viewer
A plugin-based viewer for learning Computer Graphics and OpenGL
|
00001 #ifndef BOX_H 00002 #define BOX_H 00003 00004 #include "point.h" 00005 00015 class CORE_EXPORT Box 00016 { 00017 public: 00018 00022 Box(const Point& point=Point()); 00023 00027 Box(const Point& minimum, const Point& maximum); 00028 00032 void expand(const Point& p); 00033 00037 void expand(const Box& b); 00038 00042 void render(); 00043 00047 Point center() const; 00048 00052 float radius() const; 00053 00054 private: 00055 Point pmin, pmax; // min, max corners of the box 00056 00057 }; 00058 00059 #endif 00060
1.7.6.1