source: GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/ObjectPlacer.h @ 2693

Revision 2693, 1.2 KB checked in by mattausch, 16 years ago (diff)

started on dynamic object interaction

Line 
1 #ifndef OBJECTPLACER_H
2#define OBJECTPLACER_H
3
4namespace GtpVisibilityPreprocessor {
5
6class Vector3;
7
8
9/** A class for managing interactive object placement
10 */
11class ObjectPlacer
12{
13public:
14        ObjectPlacer();
15
16        /// sets library objects
17        //void SetLibrary(BranchGroup *library);
18        /// selects the next library object
19        void NextObject();
20        /// selects the previous library object
21        void PreviousObject();
22        /// adds an object at the indicated position
23        void AddObject(const Vector3 &p);
24        /// remove the last added object
25        void RemoveLastObject();
26
27        /// Clear all objects
28        void Clear();
29
30        /// Save the objects
31        /*void SaveObjects(const std::string &filename);
32
33        /// Get a node to visualize from the library
34        BranchGroup *GetLibraryVisualization();
35
36        /// Get the nodes that have already been placed
37        BranchGroup *GetPlacedNodeVisualization();
38
39*/     
40        virtual ~ObjectPlacer() {}
41
42protected:
43        /*SceneBasePtr<BranchGroup> mLibrary;
44        SceneBasePtr<BranchGroup> mPlacedNodes;
45        SceneBasePtr<BranchGroup> mLibraryViz;
46        int mCurrentLibaryObject;
47
48        /// Get a link to an object in the library
49        void UpdateLibraryViz();
50*/
51};
52
53}
54
55#endif // OBJECTPLACER_H
Note: See TracBrowser for help on using the repository browser.