Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

test_app.H

Go to the documentation of this file.
00001 
00002 #include "base_jotapp/base_jotapp.H"
00003 #include "sps.H"
00004 
00005 class TestSPSapp : public BaseJOTapp {
00006  public:
00007 
00008    //******** MANAGERS *******/
00009    TestSPSapp(int argc, char **argv) :
00010       BaseJOTapp(argc, argv) {
00011       assert(_instance == 0);
00012       _instance = this;
00013       _show_sample = false;
00014       _show_grid = false;
00015    }
00016 
00017    ~TestSPSapp() {
00018       _pts.clear();
00019       _balls.clear();
00020       _boxes.clear();
00021       _nodes.clear();
00022    }
00023 
00024    //******** KEYBOARD CALLBACKS ********
00025    static int toggle_sample_cb(const Event&, State *&);
00026    static int toggle_grid_cb(const Event&, State *&);
00027 
00028    //******** BaseJOTapp METHODS ********
00029 
00030  protected:
00031    virtual void load_scene();
00032    virtual void init_kbd(WINDOW &base_window);
00033    void create_grid(Wtransf ff);
00034    void visit(OctreeNode* node);
00035 
00036    //******** MEMBER DATA ********
00037 
00038    static TestSPSapp* _instance;
00039    ARRAY<Bvert_list> _pts;
00040    LIST<GEOMptr> _balls;
00041    LIST<GEOMptr> _boxes;
00042    ARRAY<OctreeNode*> _nodes;
00043    bool _show_sample;
00044    bool _show_grid;
00045 };
00046 
00047 // end of file test_app.H

Generated on Mon Sep 18 11:39:33 2006 for jot by  doxygen 1.4.4